// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/models/simple_combobox_model.h"
namespace ui {
SimpleComboboxModel::SimpleComboboxModel(
const std::vector<base::string16>& items)
: items_(items) {
}
SimpleComboboxModel::~SimpleComboboxModel() {
}
int SimpleComboboxModel::GetItemCount() const {
return items_.size();
}
base::string16 SimpleComboboxModel::GetItemAt(int index) {
return items_[index];
}
bool SimpleComboboxModel::IsItemSeparatorAt(int index) {
return items_[index].empty();
}
int SimpleComboboxModel::GetDefaultIndex() const {
return 0;
}
} // namespace ui