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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { | 586 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { |
587 ++renderer_frame_number_; | 587 ++renderer_frame_number_; |
588 } | 588 } |
589 | 589 |
590 void RenderWidgetHostViewBase::FlushInput() { | 590 void RenderWidgetHostViewBase::FlushInput() { |
591 RenderWidgetHostImpl* impl = NULL; | 591 RenderWidgetHostImpl* impl = NULL; |
592 if (GetRenderWidgetHost()) | 592 if (GetRenderWidgetHost()) |
593 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 593 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
594 if (!impl) | 594 if (!impl) |
595 return; | 595 return; |
596 impl->FlushInput(); | 596 impl->FlushInput(base::TimeTicks::Now()); |
597 } | 597 } |
598 | 598 |
599 SkColorType RenderWidgetHostViewBase::PreferredReadbackFormat() { | 599 SkColorType RenderWidgetHostViewBase::PreferredReadbackFormat() { |
600 return kN32_SkColorType; | 600 return kN32_SkColorType; |
601 } | 601 } |
602 | 602 |
603 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { | 603 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { |
604 return GetViewBounds().size(); | 604 return GetViewBounds().size(); |
605 } | 605 } |
606 | 606 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 ? blink::WebScreenOrientationPortraitPrimary | 663 ? blink::WebScreenOrientationPortraitPrimary |
664 : blink::WebScreenOrientationPortraitSecondary; | 664 : blink::WebScreenOrientationPortraitSecondary; |
665 } | 665 } |
666 | 666 |
667 return primary_landscape_angle == angle | 667 return primary_landscape_angle == angle |
668 ? blink::WebScreenOrientationLandscapePrimary | 668 ? blink::WebScreenOrientationLandscapePrimary |
669 : blink::WebScreenOrientationLandscapeSecondary; | 669 : blink::WebScreenOrientationLandscapeSecondary; |
670 } | 670 } |
671 | 671 |
672 } // namespace content | 672 } // namespace content |
OLD | NEW |