Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Side by Side Diff: ui/views/controls/combobox/combobox.h

Issue 2944083004: MacViews a11y: Support the "Show menu" action in Textfield and Combobox. (Closed)
Patch Set: base off crrev/2946783003 Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Overridden from View: 93 // Overridden from View:
94 gfx::Size CalculatePreferredSize() const override; 94 gfx::Size CalculatePreferredSize() const override;
95 const char* GetClassName() const override; 95 const char* GetClassName() const override;
96 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) override; 96 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) override;
97 bool OnKeyPressed(const ui::KeyEvent& e) override; 97 bool OnKeyPressed(const ui::KeyEvent& e) override;
98 bool OnKeyReleased(const ui::KeyEvent& e) override; 98 bool OnKeyReleased(const ui::KeyEvent& e) override;
99 void OnPaint(gfx::Canvas* canvas) override; 99 void OnPaint(gfx::Canvas* canvas) override;
100 void OnFocus() override; 100 void OnFocus() override;
101 void OnBlur() override; 101 void OnBlur() override;
102 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 102 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
103 bool HandleAccessibleAction(const ui::AXActionData& action_data) override;
103 void Layout() override; 104 void Layout() override;
104 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 105 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
105 106
106 // Overridden from PrefixDelegate: 107 // Overridden from PrefixDelegate:
107 int GetRowCount() override; 108 int GetRowCount() override;
108 int GetSelectedRow() override; 109 int GetSelectedRow() override;
109 void SetSelectedRow(int row) override; 110 void SetSelectedRow(int row) override;
110 base::string16 GetTextForRow(int row) override; 111 base::string16 GetTextForRow(int row) override;
111 112
112 // Overriden from ButtonListener: 113 // Overriden from ButtonListener:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 231
231 // Used for making calbacks. 232 // Used for making calbacks.
232 base::WeakPtrFactory<Combobox> weak_ptr_factory_; 233 base::WeakPtrFactory<Combobox> weak_ptr_factory_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(Combobox); 235 DISALLOW_COPY_AND_ASSIGN(Combobox);
235 }; 236 };
236 237
237 } // namespace views 238 } // namespace views
238 239
239 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ 240 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698