16bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines// Copyright (c) 2012 The Chromium Authors. All rights reserved. 26bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines// Use of this source code is governed by a BSD-style license that can be 36bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines// found in the LICENSE file. 46bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines 56bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines#ifndef UI_VIEWS_EXAMPLES_EXAMPLE_COMBOBOX_MODEL_H_ 66bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines#define UI_VIEWS_EXAMPLES_EXAMPLE_COMBOBOX_MODEL_H_ 76bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines 86bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines#include "base/macros.h" 96bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines#include "ui/base/models/combobox_model.h" 106bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines 116bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hinesnamespace views { 126bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hinesnamespace examples { 136bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89Stephen Hines 14class ExampleComboboxModel : public ui::ComboboxModel { 15 public: 16 ExampleComboboxModel(const char** strings, int count); 17 virtual ~ExampleComboboxModel(); 18 19 // ui::ComboboxModel: 20 virtual int GetItemCount() const OVERRIDE; 21 virtual base::string16 GetItemAt(int index) OVERRIDE; 22 23 private: 24 const char** strings_; 25 int count_; 26 27 DISALLOW_COPY_AND_ASSIGN(ExampleComboboxModel); 28}; 29 30} // namespace examples 31} // namespace views 32 33#endif // UI_VIEWS_EXAMPLES_EXAMPLE_COMBOBOX_MODEL_H_ 34