| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 6705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6716 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect))); | 6716 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect))); |
| 6717 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_, | 6717 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_, |
| 6718 physical_window_zoom_rect, | 6718 physical_window_zoom_rect, |
| 6719 canvas_size, | 6719 canvas_size, |
| 6720 transport_dib->id())); | 6720 transport_dib->id())); |
| 6721 | 6721 |
| 6722 return true; | 6722 return true; |
| 6723 } | 6723 } |
| 6724 | 6724 |
| 6725 skia::RefPtr<SkPicture> RenderViewImpl::CapturePicture() { | 6725 skia::RefPtr<SkPicture> RenderViewImpl::CapturePicture() { |
| 6726 return compositor_ ? compositor_->layer_tree_host()->capturePicture() : | 6726 return compositor_ ? compositor_->CapturePicture() : |
| 6727 skia::RefPtr<SkPicture>(); | 6727 skia::RefPtr<SkPicture>(); |
| 6728 } | 6728 } |
| 6729 #endif | 6729 #endif |
| 6730 | 6730 |
| 6731 unsigned RenderViewImpl::GetLocalSessionHistoryLengthForTesting() const { | 6731 unsigned RenderViewImpl::GetLocalSessionHistoryLengthForTesting() const { |
| 6732 return history_list_length_; | 6732 return history_list_length_; |
| 6733 } | 6733 } |
| 6734 | 6734 |
| 6735 void RenderViewImpl::SetFocusAndActivateForTesting(bool enable) { | 6735 void RenderViewImpl::SetFocusAndActivateForTesting(bool enable) { |
| 6736 if (enable) { | 6736 if (enable) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6751 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6751 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6752 RenderProcess::current()->ReleaseTransportDIB(dib); | 6752 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6753 } | 6753 } |
| 6754 | 6754 |
| 6755 void RenderViewImpl::DidCommitCompositorFrame() { | 6755 void RenderViewImpl::DidCommitCompositorFrame() { |
| 6756 RenderWidget::DidCommitCompositorFrame(); | 6756 RenderWidget::DidCommitCompositorFrame(); |
| 6757 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); | 6757 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); |
| 6758 } | 6758 } |
| 6759 | 6759 |
| 6760 } // namespace content | 6760 } // namespace content |
| OLD | NEW |