| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMBOBOX_COMBOBOX_H_ | 5 #ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; | 71 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; |
| 72 } | 72 } |
| 73 NativeComboboxWrapper* native_wrapper() const { | 73 NativeComboboxWrapper* native_wrapper() const { |
| 74 return native_wrapper_; | 74 return native_wrapper_; |
| 75 } | 75 } |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 // Overridden from View: | 78 // Overridden from View: |
| 79 virtual gfx::Size GetPreferredSize() OVERRIDE; | 79 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 80 virtual void Layout() OVERRIDE; | 80 virtual void Layout() OVERRIDE; |
| 81 virtual void SetEnabled(bool enabled) OVERRIDE; | 81 virtual void OnEnabledChanged() OVERRIDE; |
| 82 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; | 82 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; |
| 83 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 83 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
| 84 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; | 84 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; |
| 85 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; | 85 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; |
| 86 virtual void OnFocus() OVERRIDE; | 86 virtual void OnFocus() OVERRIDE; |
| 87 virtual void OnBlur() OVERRIDE; | 87 virtual void OnBlur() OVERRIDE; |
| 88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 89 | 89 |
| 90 protected: | 90 protected: |
| 91 // Overridden from View: | 91 // Overridden from View: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 108 | 108 |
| 109 // The accessible name of the text field. | 109 // The accessible name of the text field. |
| 110 string16 accessible_name_; | 110 string16 accessible_name_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(Combobox); | 112 DISALLOW_COPY_AND_ASSIGN(Combobox); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace views | 115 } // namespace views |
| 116 | 116 |
| 117 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 117 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| OLD | NEW |