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

Side by Side Diff: content/browser/accessibility/browser_accessibility.cc

Issue 2955073002: Manky attempt with TextInputClient
Patch Set: Created 3 years, 5 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 #include "content/browser/accessibility/browser_accessibility.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 gfx::Rect BrowserAccessibility::GetScreenBoundsRect() const { 1122 gfx::Rect BrowserAccessibility::GetScreenBoundsRect() const {
1123 gfx::Rect bounds = GetPageBoundsRect(); 1123 gfx::Rect bounds = GetPageBoundsRect();
1124 1124
1125 // Adjust the bounds by the top left corner of the containing view's bounds 1125 // Adjust the bounds by the top left corner of the containing view's bounds
1126 // in screen coordinates. 1126 // in screen coordinates.
1127 bounds.Offset(manager_->GetViewBounds().OffsetFromOrigin()); 1127 bounds.Offset(manager_->GetViewBounds().OffsetFromOrigin());
1128 1128
1129 return bounds; 1129 return bounds;
1130 } 1130 }
1131 1131
1132 ui::TextInputClient* BrowserAccessibility::GetTextInputClient() const {
1133 return nullptr; // Could BlinkAXTreeSource implement TextInputClient?
1134 }
1135
1132 gfx::NativeViewAccessible BrowserAccessibility::HitTestSync(int x, int y) { 1136 gfx::NativeViewAccessible BrowserAccessibility::HitTestSync(int x, int y) {
1133 auto* accessible = manager_->CachingAsyncHitTest(gfx::Point(x, y)); 1137 auto* accessible = manager_->CachingAsyncHitTest(gfx::Point(x, y));
1134 if (!accessible) 1138 if (!accessible)
1135 return nullptr; 1139 return nullptr;
1136 1140
1137 return accessible->GetNativeViewAccessible(); 1141 return accessible->GetNativeViewAccessible();
1138 } 1142 }
1139 1143
1140 gfx::NativeViewAccessible BrowserAccessibility::GetFocus() { 1144 gfx::NativeViewAccessible BrowserAccessibility::GetFocus() {
1141 auto* focused = manager()->GetFocus(); 1145 auto* focused = manager()->GetFocus();
(...skipping 21 matching lines...) Expand all
1163 1167
1164 if (data.action == ui::AX_ACTION_FOCUS) { 1168 if (data.action == ui::AX_ACTION_FOCUS) {
1165 manager_->SetFocus(*this); 1169 manager_->SetFocus(*this);
1166 return true; 1170 return true;
1167 } 1171 }
1168 1172
1169 return false; 1173 return false;
1170 } 1174 }
1171 1175
1172 } // namespace content 1176 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.h ('k') | ui/accessibility/platform/ax_platform_node_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698