OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 5 #ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 #include "views/controls/combobox/native_combobox_wrapper.h" | 12 #include "views/controls/combobox/native_combobox_wrapper.h" |
13 #include "views/view.h" | 13 #include "views/view.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 class ComboboxModel; | 16 class ComboboxModel; |
17 } | 17 } |
18 using ui::ComboboxModel; | 18 using ui::ComboboxModel; |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 | 21 |
22 // A non-editable combo-box (aka a drop-down list) | 22 // A non-editable combo-box (aka a drop-down list) |
23 class VIEWS_API Combobox : public View { | 23 class VIEWS_EXPORT Combobox : public View { |
24 public: | 24 public: |
25 // The combobox's class name. | 25 // The combobox's class name. |
26 static const char kViewClassName[]; | 26 static const char kViewClassName[]; |
27 | 27 |
28 class Listener { | 28 class Listener { |
29 public: | 29 public: |
30 // This is invoked once the selected item changed. | 30 // This is invoked once the selected item changed. |
31 virtual void ItemChanged(Combobox* combo_box, | 31 virtual void ItemChanged(Combobox* combo_box, |
32 int prev_index, | 32 int prev_index, |
33 int new_index) = 0; | 33 int new_index) = 0; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // The accessible name of the text field. | 103 // The accessible name of the text field. |
104 string16 accessible_name_; | 104 string16 accessible_name_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(Combobox); | 106 DISALLOW_COPY_AND_ASSIGN(Combobox); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace views | 109 } // namespace views |
110 | 110 |
111 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 111 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
OLD | NEW |