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

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

Issue 2572573002: Hook up make visible action for views (Closed)
Patch Set: Hook up make visible action for views Created 4 years 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 | « chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js ('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_node_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"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 view_->OnMouseReleased(ui::MouseEvent( 72 view_->OnMouseReleased(ui::MouseEvent(
73 ui::ET_MOUSE_RELEASED, center, center, ui::EventTimeForNow(), 73 ui::ET_MOUSE_RELEASED, center, center, ui::EventTimeForNow(),
74 ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON)); 74 ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON));
75 } 75 }
76 76
77 void AXViewObjWrapper::Focus() { 77 void AXViewObjWrapper::Focus() {
78 view_->RequestFocus(); 78 view_->RequestFocus();
79 } 79 }
80 80
81 void AXViewObjWrapper::MakeVisible() { 81 void AXViewObjWrapper::MakeVisible() {
82 // TODO(dtseng): Implement. 82 view_->ScrollRectToVisible(view_->GetLocalBounds());
83 } 83 }
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 } // namespace views 94 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698