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"
9 SimpleComboboxModel::SimpleComboboxModel(
10 const std::vector
<base::string16
>& items
)
14 SimpleComboboxModel::~SimpleComboboxModel() {
17 int SimpleComboboxModel::GetItemCount() const {
21 base::string16
SimpleComboboxModel::GetItemAt(int index
) {
25 bool SimpleComboboxModel::IsItemSeparatorAt(int index
) {
26 return items_
[index
].empty();
29 int SimpleComboboxModel::GetDefaultIndex() const {