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

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

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/native_view_accessibility_auralinux.h" 5 #include "ui/views/accessibility/native_view_accessibility_auralinux.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 gfx::NativeViewAccessible ChildAtIndex(int index) override { 85 gfx::NativeViewAccessible ChildAtIndex(int index) override {
86 if (index < 0 || index >= GetChildCount()) 86 if (index < 0 || index >= GetChildCount())
87 return nullptr; 87 return nullptr;
88 88
89 Widget* widget = widgets_[index]; 89 Widget* widget = widgets_[index];
90 CHECK(widget); 90 CHECK(widget);
91 return widget->GetRootView()->GetNativeViewAccessible(); 91 return widget->GetRootView()->GetNativeViewAccessible();
92 } 92 }
93 93
94 gfx::Vector2d GetGlobalCoordinateOffset() override { 94 gfx::Rect GetScreenBoundsRect() const override { return gfx::Rect(); }
dmazzoni 2017/04/07 18:24:40 nit: delete this - no need to override, the inheri
95 return gfx::Vector2d();
96 }
97 95
98 gfx::NativeViewAccessible HitTestSync(int x, int y) override { 96 gfx::NativeViewAccessible HitTestSync(int x, int y) override {
99 return nullptr; 97 return nullptr;
100 } 98 }
101 99
102 gfx::NativeViewAccessible GetFocus() override { 100 gfx::NativeViewAccessible GetFocus() override {
103 return nullptr; 101 return nullptr;
104 } 102 }
105 103
106 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { 104 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 159 }
162 160
163 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 161 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
164 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); 162 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent();
165 if (!parent) 163 if (!parent)
166 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 164 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
167 return parent; 165 return parent;
168 } 166 }
169 167
170 } // namespace views 168 } // namespace views
OLDNEW
« no previous file with comments | « ui/accessibility/platform/test_ax_node_wrapper.cc ('k') | ui/views/accessibility/native_view_accessibility_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698