| OLD | NEW |
| 1 // Copyright (c) 2011 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_COMBOBOX_H_ | 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 NativeComboboxWrapper* GetNativeWrapperForTesting() const { | 58 NativeComboboxWrapper* GetNativeWrapperForTesting() const { |
| 59 return native_wrapper_; | 59 return native_wrapper_; |
| 60 } | 60 } |
| 61 | 61 |
| 62 // Overridden from View: | 62 // Overridden from View: |
| 63 virtual gfx::Size GetPreferredSize() OVERRIDE; | 63 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 64 virtual void Layout() OVERRIDE; | 64 virtual void Layout() OVERRIDE; |
| 65 virtual void OnEnabledChanged() OVERRIDE; | 65 virtual void OnEnabledChanged() OVERRIDE; |
| 66 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; | 66 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; |
| 67 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 67 virtual void OnPaintFocusBorder(gfx::CanvasSkia* canvas) OVERRIDE; |
| 68 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; | 68 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; |
| 69 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; | 69 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; |
| 70 virtual void OnFocus() OVERRIDE; | 70 virtual void OnFocus() OVERRIDE; |
| 71 virtual void OnBlur() OVERRIDE; | 71 virtual void OnBlur() OVERRIDE; |
| 72 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 72 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 73 | 73 |
| 74 protected: | 74 protected: |
| 75 // Overridden from View: | 75 // Overridden from View: |
| 76 virtual void ViewHierarchyChanged(bool is_add, | 76 virtual void ViewHierarchyChanged(bool is_add, |
| 77 View* parent, | 77 View* parent, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 93 | 93 |
| 94 // The accessible name of the text field. | 94 // The accessible name of the text field. |
| 95 string16 accessible_name_; | 95 string16 accessible_name_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(Combobox); | 97 DISALLOW_COPY_AND_ASSIGN(Combobox); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace views | 100 } // namespace views |
| 101 | 101 |
| 102 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 102 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| OLD | NEW |