| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 #include "views/controls/listbox/listbox.h" | 11 #include "views/controls/listbox/listbox.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 // An interface implemented by an object that provides a platform-native | 15 // An interface implemented by an object that provides a platform-native |
| 16 // listbox. | 16 // listbox. |
| 17 class NativeListboxWrapper { | 17 class NativeListboxWrapper { |
| 18 public: | 18 public: |
| 19 // Returns the number of rows in the table. | 19 // Returns the number of rows in the table. |
| 20 virtual int GetRowCount() const = 0; | 20 virtual int GetRowCount() const = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 const std::vector<string16>& strings, | 34 const std::vector<string16>& strings, |
| 35 Listbox::Listener* listener); | 35 Listbox::Listener* listener); |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 virtual ~NativeListboxWrapper() {} | 38 virtual ~NativeListboxWrapper() {} |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace views | 41 } // namespace views |
| 42 | 42 |
| 43 #endif // VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ | 43 #endif // VIEWS_CONTROLS_LISTBOX_NATIVE_LISTBOX_WRAPPER_H_ |
| OLD | NEW |