summaryrefslogtreecommitdiff
path: root/chromium/ui/base/models/combobox_model.cc
blob: a6a311fc465abfe4de2830bd229fab68c1114d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2012 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/combobox_model.h"

#include "ui/base/models/image_model.h"

namespace ui {

base::string16 ComboboxModel::GetDropDownTextAt(int index) const {
  return GetItemAt(index);
}

base::string16 ComboboxModel::GetDropDownSecondaryTextAt(int index) const {
  return base::string16();
}

ImageModel ComboboxModel::GetIconAt(int index) const {
  return ui::ImageModel();
}

ImageModel ComboboxModel::GetDropDownIconAt(int index) const {
  return GetIconAt(index);
}

bool ComboboxModel::IsItemSeparatorAt(int index) const {
  return false;
}

int ComboboxModel::GetDefaultIndex() const {
  return 0;
}

bool ComboboxModel::IsItemEnabledAt(int index) const {
  return true;
}

}  // namespace ui