| 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 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 void RenderWidgetHostImpl::AccessibilityHitTest(const gfx::Point& point) { | 2008 void RenderWidgetHostImpl::AccessibilityHitTest(const gfx::Point& point) { |
| 2009 Send(new AccessibilityMsg_HitTest(GetRoutingID(), point)); | 2009 Send(new AccessibilityMsg_HitTest(GetRoutingID(), point)); |
| 2010 } | 2010 } |
| 2011 | 2011 |
| 2012 void RenderWidgetHostImpl::AccessibilityFatalError() { | 2012 void RenderWidgetHostImpl::AccessibilityFatalError() { |
| 2013 Send(new AccessibilityMsg_FatalError(GetRoutingID())); | 2013 Send(new AccessibilityMsg_FatalError(GetRoutingID())); |
| 2014 view_->SetBrowserAccessibilityManager(NULL); | 2014 view_->SetBrowserAccessibilityManager(NULL); |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 #if defined(OS_WIN) | 2017 #if defined(OS_WIN) |
| 2018 void RenderWidgetHostImpl::SetParentNativeViewAccessible( | 2018 HWND RenderWidgetHostImpl::GetAccessibleParentHWND() const { |
| 2019 gfx::NativeViewAccessible accessible_parent) { | 2019 return view_->GetAccessibleParentHWND(); |
| 2020 if (view_) | |
| 2021 view_->SetParentNativeViewAccessible(accessible_parent); | |
| 2022 } | 2020 } |
| 2023 | 2021 |
| 2024 gfx::NativeViewAccessible | 2022 IAccessible* RenderWidgetHostImpl::GetParentIAccessible() const { |
| 2025 RenderWidgetHostImpl::GetParentNativeViewAccessible() const { | 2023 return view_->GetParentIAccessible(); |
| 2026 return delegate_->GetParentNativeViewAccessible(); | |
| 2027 } | 2024 } |
| 2028 #endif | 2025 #endif // defined(OS_WIN) |
| 2029 | 2026 |
| 2030 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, | 2027 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, |
| 2031 const std::string& value) { | 2028 const std::string& value) { |
| 2032 Send(new InputMsg_ExecuteEditCommand(GetRoutingID(), command, value)); | 2029 Send(new InputMsg_ExecuteEditCommand(GetRoutingID(), command, value)); |
| 2033 } | 2030 } |
| 2034 | 2031 |
| 2035 void RenderWidgetHostImpl::ScrollFocusedEditableNodeIntoRect( | 2032 void RenderWidgetHostImpl::ScrollFocusedEditableNodeIntoRect( |
| 2036 const gfx::Rect& rect) { | 2033 const gfx::Rect& rect) { |
| 2037 Send(new InputMsg_ScrollFocusedEditableNodeIntoRect(GetRoutingID(), rect)); | 2034 Send(new InputMsg_ScrollFocusedEditableNodeIntoRect(GetRoutingID(), rect)); |
| 2038 } | 2035 } |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2307 } | 2304 } |
| 2308 } | 2305 } |
| 2309 | 2306 |
| 2310 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2307 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2311 if (view_) | 2308 if (view_) |
| 2312 return view_->PreferredReadbackFormat(); | 2309 return view_->PreferredReadbackFormat(); |
| 2313 return SkBitmap::kARGB_8888_Config; | 2310 return SkBitmap::kARGB_8888_Config; |
| 2314 } | 2311 } |
| 2315 | 2312 |
| 2316 } // namespace content | 2313 } // namespace content |
| OLD | NEW |