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

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: Remove unused function 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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 2015
2016 gfx::Rect RenderWidgetHostImpl::AccessibilityGetViewBounds() const { 2016 gfx::Rect RenderWidgetHostImpl::AccessibilityGetViewBounds() const {
2017 return view_->GetViewBounds(); 2017 return view_->GetViewBounds();
2018 } 2018 }
2019 2019
2020 gfx::Point RenderWidgetHostImpl::AccessibilityOriginInScreen( 2020 gfx::Point RenderWidgetHostImpl::AccessibilityOriginInScreen(
2021 const gfx::Rect& bounds) const { 2021 const gfx::Rect& bounds) const {
2022 return view_->AccessibilityOriginInScreen(bounds); 2022 return view_->AccessibilityOriginInScreen(bounds);
2023 } 2023 }
2024 2024
2025 void RenderWidgetHostImpl::AccessibilityHitTest(const gfx::Point& point) {
2026 Send(new AccessibilityMsg_HitTest(GetRoutingID(), point));
2027 }
2028
2025 void RenderWidgetHostImpl::AccessibilityFatalError() { 2029 void RenderWidgetHostImpl::AccessibilityFatalError() {
2026 Send(new AccessibilityMsg_FatalError(GetRoutingID())); 2030 Send(new AccessibilityMsg_FatalError(GetRoutingID()));
2027 view_->SetBrowserAccessibilityManager(NULL); 2031 view_->SetBrowserAccessibilityManager(NULL);
2028 } 2032 }
2029 2033
2030 #if defined(OS_WIN) 2034 #if defined(OS_WIN)
2031 void RenderWidgetHostImpl::SetParentNativeViewAccessible( 2035 void RenderWidgetHostImpl::SetParentNativeViewAccessible(
2032 gfx::NativeViewAccessible accessible_parent) { 2036 gfx::NativeViewAccessible accessible_parent) {
2033 if (view_) 2037 if (view_)
2034 view_->SetParentNativeViewAccessible(accessible_parent); 2038 view_->SetParentNativeViewAccessible(accessible_parent);
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 } 2324 }
2321 } 2325 }
2322 2326
2323 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2327 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2324 if (view_) 2328 if (view_)
2325 return view_->PreferredReadbackFormat(); 2329 return view_->PreferredReadbackFormat();
2326 return SkBitmap::kARGB_8888_Config; 2330 return SkBitmap::kARGB_8888_Config;
2327 } 2331 }
2328 2332
2329 } // namespace content 2333 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698