Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / base / models / simple_combobox_model.cc
blobedf339de741e33c108620f7b493d24fb784ec6c4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/models/simple_combobox_model.h"
7 namespace ui {
9 SimpleComboboxModel::SimpleComboboxModel(
10 const std::vector<base::string16>& items)
11 : items_(items) {
14 SimpleComboboxModel::~SimpleComboboxModel() {
17 int SimpleComboboxModel::GetItemCount() const {
18 return items_.size();
21 base::string16 SimpleComboboxModel::GetItemAt(int index) {
22 return items_[index];
25 bool SimpleComboboxModel::IsItemSeparatorAt(int index) {
26 return items_[index].empty();
29 int SimpleComboboxModel::GetDefaultIndex() const {
30 return 0;
33 } // namespace ui