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_view_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 9 #include "content/browser/accessibility/browser_accessibility_manager.h" |
10 #include "content/browser/gpu/gpu_data_manager_impl.h" | 10 #include "content/browser/gpu/gpu_data_manager_impl.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 NOTREACHED(); | 222 NOTREACHED(); |
223 return NULL; | 223 return NULL; |
224 } | 224 } |
225 | 225 |
226 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { | 226 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { |
227 RenderWidgetHostImpl* impl = NULL; | 227 RenderWidgetHostImpl* impl = NULL; |
228 if (GetRenderWidgetHost()) | 228 if (GetRenderWidgetHost()) |
229 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 229 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
230 | 230 |
231 if (impl) | 231 if (impl) |
232 impl->ShowContextMenuAtPoint(point); | 232 impl->ShowContextMenuAtPoint(point, false); |
233 } | 233 } |
234 | 234 |
235 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( | 235 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( |
236 const gfx::Rect& bounds) { | 236 const gfx::Rect& bounds) { |
237 return bounds.origin(); | 237 return bounds.origin(); |
238 } | 238 } |
239 | 239 |
240 gfx::AcceleratedWidget | 240 gfx::AcceleratedWidget |
241 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() { | 241 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() { |
242 return gfx::kNullAcceleratedWidget; | 242 return gfx::kNullAcceleratedWidget; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 499 |
500 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 500 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
501 return false; | 501 return false; |
502 } | 502 } |
503 | 503 |
504 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 504 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
505 return cc::SurfaceId(); | 505 return cc::SurfaceId(); |
506 } | 506 } |
507 | 507 |
508 } // namespace content | 508 } // namespace content |
OLD | NEW |