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

Side by Side Diff: ui/views/accessibility/ax_view_obj_wrapper.cc

Issue 2767143007: Try |View::HandleAccessibleAction| before falling back to fixed actions. (Closed)
Patch Set: fix build Created 3 years, 8 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
« no previous file with comments | « ui/views/accessibility/ax_view_obj_wrapper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/views/accessibility/ax_view_obj_wrapper.h" 5 #include "ui/views/accessibility/ax_view_obj_wrapper.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/accessibility/ax_node_data.h" 8 #include "ui/accessibility/ax_action_data.h"
9 #include "ui/accessibility/ax_node_data.h" 9 #include "ui/accessibility/ax_node_data.h"
10 #include "ui/events/event_utils.h" 10 #include "ui/events/event_utils.h"
11 #include "ui/views/accessibility/ax_aura_obj_cache.h" 11 #include "ui/views/accessibility/ax_aura_obj_cache.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 AXViewObjWrapper::AXViewObjWrapper(View* view) : view_(view) { 17 AXViewObjWrapper::AXViewObjWrapper(View* view) : view_(view) {
18 if (view->GetWidget()) 18 if (view->GetWidget())
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void AXViewObjWrapper::SetSelection(int32_t start, int32_t end) { 85 void AXViewObjWrapper::SetSelection(int32_t start, int32_t end) {
86 // TODO(dtseng): Implement. 86 // TODO(dtseng): Implement.
87 } 87 }
88 88
89 void AXViewObjWrapper::ShowContextMenu() { 89 void AXViewObjWrapper::ShowContextMenu() {
90 view_->ShowContextMenu(view_->bounds().CenterPoint(), 90 view_->ShowContextMenu(view_->bounds().CenterPoint(),
91 ui::MENU_SOURCE_KEYBOARD); 91 ui::MENU_SOURCE_KEYBOARD);
92 } 92 }
93 93
94 bool AXViewObjWrapper::HandleAccessibleAction(const ui::AXActionData& action) {
95 return view_->HandleAccessibleAction(action);
96 }
97
94 } // namespace views 98 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/accessibility/ax_view_obj_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698