summaryrefslogtreecommitdiffstats
path: root/app/combobox_model.h
blob: 514e71230472b5584148c01699c9c9f71e95ff5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2009 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.

#ifndef APP_COMBOBOX_MODEL_H_
#define APP_COMBOBOX_MODEL_H_

#include <string>

// The interface for models backing a combobox.
class ComboboxModel {
 public:
  virtual ~ComboboxModel() {}

  // Return the number of items in the combo box.
  virtual int GetItemCount() = 0;

  // Return the string that should be used to represent a given item.
  virtual std::wstring GetItemAt(int index) = 0;
};

#endif  // APP_COMBOBOX_MODEL_H_