| 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_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 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const char* GetClassName() const override; | 91 const char* GetClassName() const override; |
| 92 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) override; | 92 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) override; |
| 93 bool OnKeyPressed(const ui::KeyEvent& e) override; | 93 bool OnKeyPressed(const ui::KeyEvent& e) override; |
| 94 bool OnKeyReleased(const ui::KeyEvent& e) override; | 94 bool OnKeyReleased(const ui::KeyEvent& e) override; |
| 95 void OnPaint(gfx::Canvas* canvas) override; | 95 void OnPaint(gfx::Canvas* canvas) override; |
| 96 void OnFocus() override; | 96 void OnFocus() override; |
| 97 void OnBlur() override; | 97 void OnBlur() override; |
| 98 void GetAccessibleState(ui::AXViewState* state) override; | 98 void GetAccessibleState(ui::AXViewState* state) override; |
| 99 void Layout() override; | 99 void Layout() override; |
| 100 void OnEnabledChanged() override; | 100 void OnEnabledChanged() override; |
| 101 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 101 | 102 |
| 102 // Overridden from PrefixDelegate: | 103 // Overridden from PrefixDelegate: |
| 103 int GetRowCount() override; | 104 int GetRowCount() override; |
| 104 int GetSelectedRow() override; | 105 int GetSelectedRow() override; |
| 105 void SetSelectedRow(int row) override; | 106 void SetSelectedRow(int row) override; |
| 106 base::string16 GetTextForRow(int row) override; | 107 base::string16 GetTextForRow(int row) override; |
| 107 | 108 |
| 108 // Overriden from ButtonListener: | 109 // Overriden from ButtonListener: |
| 109 void ButtonPressed(Button* sender, const ui::Event& event) override; | 110 void ButtonPressed(Button* sender, const ui::Event& event) override; |
| 110 | 111 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 // Used for making calbacks. | 225 // Used for making calbacks. |
| 225 base::WeakPtrFactory<Combobox> weak_ptr_factory_; | 226 base::WeakPtrFactory<Combobox> weak_ptr_factory_; |
| 226 | 227 |
| 227 DISALLOW_COPY_AND_ASSIGN(Combobox); | 228 DISALLOW_COPY_AND_ASSIGN(Combobox); |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace views | 231 } // namespace views |
| 231 | 232 |
| 232 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 233 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| OLD | NEW |