| 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 22 matching lines...) Expand all Loading... |
| 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 bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE; | 36 virtual bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE; |
| 37 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE; | 37 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE; |
| 38 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 38 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 39 virtual void OnFocus() OVERRIDE; | 39 virtual void OnFocus() OVERRIDE; |
| 40 virtual void OnBlur() OVERRIDE; | 40 virtual void OnBlur() OVERRIDE; |
| 41 | 41 |
| 42 // ui::EventHandler overrides: | 42 // ui::EventHandler overrides: |
| 43 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE; | 43 virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE; |
| 44 | 44 |
| 45 // NativeComboboxWrapper overrides: | 45 // NativeComboboxWrapper overrides: |
| 46 virtual void UpdateFromModel() OVERRIDE; | 46 virtual void UpdateFromModel() OVERRIDE; |
| 47 virtual void UpdateSelectedIndex() OVERRIDE; | 47 virtual void UpdateSelectedIndex() OVERRIDE; |
| 48 virtual void UpdateEnabled() OVERRIDE; | 48 virtual void UpdateEnabled() OVERRIDE; |
| 49 virtual int GetSelectedIndex() const OVERRIDE; | 49 virtual int GetSelectedIndex() const OVERRIDE; |
| 50 virtual bool IsDropdownOpen() const OVERRIDE; | 50 virtual bool IsDropdownOpen() const OVERRIDE; |
| 51 virtual gfx::Size GetPreferredSize() OVERRIDE; | 51 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 52 virtual View* GetView() OVERRIDE; | 52 virtual View* GetView() OVERRIDE; |
| 53 virtual void SetFocus() OVERRIDE; | 53 virtual void SetFocus() OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // The maximum dimensions of the content in the dropdown | 96 // The maximum dimensions of the content in the dropdown |
| 97 int content_width_; | 97 int content_width_; |
| 98 int content_height_; | 98 int content_height_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); | 100 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace views | 103 } // namespace views |
| 104 | 104 |
| 105 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 105 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
| OLD | NEW |