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 "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
9 #include "content/browser/gpu/gpu_data_manager_impl.h" | 9 #include "content/browser/gpu/gpu_data_manager_impl.h" |
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 } | 491 } |
492 | 492 |
493 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { | 493 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { |
494 } | 494 } |
495 | 495 |
496 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( | 496 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( |
497 const gfx::Rect& bounds) { | 497 const gfx::Rect& bounds) { |
498 return bounds.origin(); | 498 return bounds.origin(); |
499 } | 499 } |
500 | 500 |
| 501 gfx::AcceleratedWidget |
| 502 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() { |
| 503 return gfx::kNullAcceleratedWidget; |
| 504 } |
| 505 |
| 506 gfx::NativeViewAccessible |
| 507 RenderWidgetHostViewBase::AccessibilityGetNativeViewAccessible() { |
| 508 return NULL; |
| 509 } |
| 510 |
501 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { | 511 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { |
502 RenderWidgetHostImpl* impl = NULL; | 512 RenderWidgetHostImpl* impl = NULL; |
503 if (GetRenderWidgetHost()) | 513 if (GetRenderWidgetHost()) |
504 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 514 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
505 | 515 |
506 if (impl) | 516 if (impl) |
507 impl->SendScreenRects(); | 517 impl->SendScreenRects(); |
508 | 518 |
509 if (HasDisplayPropertyChanged(view) && impl) | 519 if (HasDisplayPropertyChanged(view) && impl) |
510 impl->NotifyScreenInfoChanged(); | 520 impl->NotifyScreenInfoChanged(); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 ? blink::WebScreenOrientationPortraitPrimary | 663 ? blink::WebScreenOrientationPortraitPrimary |
654 : blink::WebScreenOrientationPortraitSecondary; | 664 : blink::WebScreenOrientationPortraitSecondary; |
655 } | 665 } |
656 | 666 |
657 return primary_landscape_angle == angle | 667 return primary_landscape_angle == angle |
658 ? blink::WebScreenOrientationLandscapePrimary | 668 ? blink::WebScreenOrientationLandscapePrimary |
659 : blink::WebScreenOrientationLandscapeSecondary; | 669 : blink::WebScreenOrientationLandscapeSecondary; |
660 } | 670 } |
661 | 671 |
662 } // namespace content | 672 } // namespace content |
OLD | NEW |