OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ |
7 | 7 |
8 #include "gfx/native_widget_types.h" | 8 #include "gfx/native_widget_types.h" |
9 #include "gfx/rect.h" | 9 #include "gfx/rect.h" |
10 #include "views/controls/listbox/listbox.h" | 10 #include "views/controls/listbox/listbox.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual void SelectRow(int row) = 0; | 25 virtual void SelectRow(int row) = 0; |
26 | 26 |
27 // Retrieves the views::View that hosts the native control. | 27 // Retrieves the views::View that hosts the native control. |
28 virtual View* GetView() = 0; | 28 virtual View* GetView() = 0; |
29 | 29 |
30 // Creates an appropriate NativeListboxWrapper for the platform. | 30 // Creates an appropriate NativeListboxWrapper for the platform. |
31 static NativeListboxWrapper* CreateNativeWrapper( | 31 static NativeListboxWrapper* CreateNativeWrapper( |
32 Listbox* listbox, | 32 Listbox* listbox, |
33 const std::vector<string16>& strings, | 33 const std::vector<string16>& strings, |
34 Listbox::Listener* listener); | 34 Listbox::Listener* listener); |
| 35 |
| 36 protected: |
| 37 virtual ~NativeListboxWrapper() {} |
35 }; | 38 }; |
36 | 39 |
37 } // namespace views | 40 } // namespace views |
38 | 41 |
39 #endif // VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ | 42 #endif // VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ |
OLD | NEW |