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_NATIVE_COMBOBOX_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "views/views_api.h" | 10 #include "views/views_export.h" |
11 | 11 |
12 namespace gfx{ | 12 namespace gfx{ |
13 class Size; | 13 class Size; |
14 } | 14 } |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 | 17 |
18 class Combobox; | 18 class Combobox; |
19 class KeyEvent; | 19 class KeyEvent; |
20 class View; | 20 class View; |
21 | 21 |
22 class VIEWS_API NativeComboboxWrapper { | 22 class VIEWS_EXPORT NativeComboboxWrapper { |
23 public: | 23 public: |
24 // Updates the combobox's content from its model. | 24 // Updates the combobox's content from its model. |
25 virtual void UpdateFromModel() = 0; | 25 virtual void UpdateFromModel() = 0; |
26 | 26 |
27 // Updates the displayed selected item from the associated Combobox. | 27 // Updates the displayed selected item from the associated Combobox. |
28 virtual void UpdateSelectedItem() = 0; | 28 virtual void UpdateSelectedItem() = 0; |
29 | 29 |
30 // Updates the enabled state of the combobox from the associated view. | 30 // Updates the enabled state of the combobox from the associated view. |
31 virtual void UpdateEnabled() = 0; | 31 virtual void UpdateEnabled() = 0; |
32 | 32 |
(...skipping 29 matching lines...) Expand all Loading... |
62 | 62 |
63 static NativeComboboxWrapper* CreateWrapper(Combobox* combobox); | 63 static NativeComboboxWrapper* CreateWrapper(Combobox* combobox); |
64 | 64 |
65 protected: | 65 protected: |
66 virtual ~NativeComboboxWrapper() {} | 66 virtual ~NativeComboboxWrapper() {} |
67 }; | 67 }; |
68 | 68 |
69 } // namespace views | 69 } // namespace views |
70 | 70 |
71 #endif // VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WRAPPER_H_ | 71 #endif // VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WRAPPER_H_ |
OLD | NEW |