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 "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 | 603 |
604 void RenderWidgetHostViewBase::FlushInput() { | 604 void RenderWidgetHostViewBase::FlushInput() { |
605 RenderWidgetHostImpl* impl = NULL; | 605 RenderWidgetHostImpl* impl = NULL; |
606 if (GetRenderWidgetHost()) | 606 if (GetRenderWidgetHost()) |
607 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 607 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
608 if (!impl) | 608 if (!impl) |
609 return; | 609 return; |
610 impl->FlushInput(); | 610 impl->FlushInput(); |
611 } | 611 } |
612 | 612 |
613 SkColorType RenderWidgetHostViewBase::PreferredReadbackFormat() { | |
614 return kN32_SkColorType; | |
615 } | |
616 | |
617 void RenderWidgetHostViewBase::OnTextSurroundingSelectionResponse( | 613 void RenderWidgetHostViewBase::OnTextSurroundingSelectionResponse( |
618 const base::string16& content, | 614 const base::string16& content, |
619 size_t start_offset, | 615 size_t start_offset, |
620 size_t end_offset) { | 616 size_t end_offset) { |
621 NOTIMPLEMENTED(); | 617 NOTIMPLEMENTED(); |
622 } | 618 } |
623 | 619 |
624 void RenderWidgetHostViewBase::ShowDisambiguationPopup( | 620 void RenderWidgetHostViewBase::ShowDisambiguationPopup( |
625 const gfx::Rect& rect_pixels, | 621 const gfx::Rect& rect_pixels, |
626 const SkBitmap& zoomed_bitmap) { | 622 const SkBitmap& zoomed_bitmap) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 | 689 |
694 return primary_landscape_angle == angle | 690 return primary_landscape_angle == angle |
695 ? blink::WebScreenOrientationLandscapePrimary | 691 ? blink::WebScreenOrientationLandscapePrimary |
696 : blink::WebScreenOrientationLandscapeSecondary; | 692 : blink::WebScreenOrientationLandscapeSecondary; |
697 } | 693 } |
698 | 694 |
699 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() { | 695 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() { |
700 } | 696 } |
701 | 697 |
702 } // namespace content | 698 } // namespace content |
OLD | NEW |