| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
| 6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
| 7 | 7 |
| 8 #include "ui/views/controls/combobox/native_combobox_wrapper.h" | 8 #include "ui/views/controls/combobox/native_combobox_wrapper.h" |
| 9 #include "ui/views/controls/menu/menu_delegate.h" | 9 #include "ui/views/controls/menu/menu_delegate.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public views::MenuDelegate { | 26 public views::MenuDelegate { |
| 27 public: | 27 public: |
| 28 static const char kViewClassName[]; | 28 static const char kViewClassName[]; |
| 29 | 29 |
| 30 explicit NativeComboboxViews(Combobox* combobox); | 30 explicit NativeComboboxViews(Combobox* combobox); |
| 31 virtual ~NativeComboboxViews(); | 31 virtual ~NativeComboboxViews(); |
| 32 | 32 |
| 33 // views::View overrides: | 33 // views::View overrides: |
| 34 virtual bool OnMousePressed(const ui::MouseEvent& mouse_event) OVERRIDE; | 34 virtual bool OnMousePressed(const ui::MouseEvent& mouse_event) OVERRIDE; |
| 35 virtual bool OnMouseDragged(const ui::MouseEvent& mouse_event) OVERRIDE; | 35 virtual bool OnMouseDragged(const ui::MouseEvent& mouse_event) OVERRIDE; |
| 36 virtual ui::GestureStatus OnGestureEvent( | 36 virtual ui::EventResult OnGestureEvent( |
| 37 const ui::GestureEvent& gesture_event) OVERRIDE; | 37 const ui::GestureEvent& gesture_event) OVERRIDE; |
| 38 virtual bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE; | 38 virtual bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE; |
| 39 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE; | 39 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE; |
| 40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 41 virtual void OnFocus() OVERRIDE; | 41 virtual void OnFocus() OVERRIDE; |
| 42 virtual void OnBlur() OVERRIDE; | 42 virtual void OnBlur() OVERRIDE; |
| 43 | 43 |
| 44 // NativeComboboxWrapper overrides: | 44 // NativeComboboxWrapper overrides: |
| 45 virtual void UpdateFromModel() OVERRIDE; | 45 virtual void UpdateFromModel() OVERRIDE; |
| 46 virtual void UpdateSelectedIndex() OVERRIDE; | 46 virtual void UpdateSelectedIndex() OVERRIDE; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // The maximum dimensions of the content in the dropdown | 95 // The maximum dimensions of the content in the dropdown |
| 96 int content_width_; | 96 int content_width_; |
| 97 int content_height_; | 97 int content_height_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); | 99 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace views | 102 } // namespace views |
| 103 | 103 |
| 104 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 104 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
| OLD | NEW |