diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/app.gyp | 1 | ||||
-rw-r--r-- | app/combobox_model.h | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/app.gyp b/app/app.gyp index 0a36bd5..902efde 100644 --- a/app/app.gyp +++ b/app/app.gyp @@ -63,6 +63,7 @@ 'app_paths.cc', 'app_switches.h', 'app_switches.cc', + 'combobox_model.h', 'drag_drop_types_gtk.cc', 'drag_drop_types_win.cc', 'drag_drop_types.h', diff --git a/app/combobox_model.h b/app/combobox_model.h new file mode 100644 index 0000000..680f1e8 --- /dev/null +++ b/app/combobox_model.h @@ -0,0 +1,20 @@ +// 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_ + +// 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_ |