OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |