summaryrefslogtreecommitdiffstats
path: root/ui/base/models/combobox_model.h
blob: 81fb048da571ab547b95e568a9aa6603a2c1744e (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
// 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.

#ifndef UI_BASE_MODELS_COMBOBOX_MODEL_H_
#define UI_BASE_MODELS_COMBOBOX_MODEL_H_
#pragma once

#include "base/string16.h"

namespace ui {

// A data model for a combo box.
class ComboboxModel {
 public:
  // Returns the number of items in the combo box.
  virtual int GetItemCount() const = 0;

  // Returns the string at the specified index.
  virtual string16 GetItemAt(int index) = 0;

 protected:
  virtual ~ComboboxModel() {}
};

}  // namespace ui

#endif  // UI_BASE_MODELS_COMBOBOX_MODEL_H_