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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@better_logging_2
Patch Set: Tweak to algorithm to find highest leaf ancestor Created 6 years, 7 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/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 2031
2032 gfx::Rect RenderWidgetHostImpl::AccessibilityGetViewBounds() const { 2032 gfx::Rect RenderWidgetHostImpl::AccessibilityGetViewBounds() const {
2033 return view_->GetViewBounds(); 2033 return view_->GetViewBounds();
2034 } 2034 }
2035 2035
2036 gfx::Point RenderWidgetHostImpl::AccessibilityOriginInScreen( 2036 gfx::Point RenderWidgetHostImpl::AccessibilityOriginInScreen(
2037 const gfx::Rect& bounds) const { 2037 const gfx::Rect& bounds) const {
2038 return view_->AccessibilityOriginInScreen(bounds); 2038 return view_->AccessibilityOriginInScreen(bounds);
2039 } 2039 }
2040 2040
2041 void RenderWidgetHostImpl::AccessibilityHitTest(const gfx::Point& point) {
2042 Send(new AccessibilityMsg_HitTest(GetRoutingID(), point));
jam 2014/05/20 04:31:14 nit: routing_id_ (I know there are examples of the
2043 }
2044
2041 void RenderWidgetHostImpl::AccessibilityFatalError() { 2045 void RenderWidgetHostImpl::AccessibilityFatalError() {
2042 Send(new AccessibilityMsg_FatalError(GetRoutingID())); 2046 Send(new AccessibilityMsg_FatalError(GetRoutingID()));
2043 view_->SetBrowserAccessibilityManager(NULL); 2047 view_->SetBrowserAccessibilityManager(NULL);
2044 } 2048 }
2045 2049
2046 #if defined(OS_WIN) 2050 #if defined(OS_WIN)
2047 void RenderWidgetHostImpl::SetParentNativeViewAccessible( 2051 void RenderWidgetHostImpl::SetParentNativeViewAccessible(
2048 gfx::NativeViewAccessible accessible_parent) { 2052 gfx::NativeViewAccessible accessible_parent) {
2049 if (view_) 2053 if (view_)
2050 view_->SetParentNativeViewAccessible(accessible_parent); 2054 view_->SetParentNativeViewAccessible(accessible_parent);
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 } 2340 }
2337 } 2341 }
2338 2342
2339 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2343 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2340 if (view_) 2344 if (view_)
2341 return view_->PreferredReadbackFormat(); 2345 return view_->PreferredReadbackFormat();
2342 return SkBitmap::kARGB_8888_Config; 2346 return SkBitmap::kARGB_8888_Config;
2343 } 2347 }
2344 2348
2345 } // namespace content 2349 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698