Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: content/renderer/render_widget.cc

Issue 1771043002: Separate RenderView from RenderWidget, part 4: Painting calls in the delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_owner_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 1685
1686 if (owner_delegate_) 1686 if (owner_delegate_)
1687 owner_delegate_->RenderWidgetDidSetColorProfile(color_profile); 1687 owner_delegate_->RenderWidgetDidSetColorProfile(color_profile);
1688 1688
1689 return true; 1689 return true;
1690 } 1690 }
1691 1691
1692 void RenderWidget::OnOrientationChange() { 1692 void RenderWidget::OnOrientationChange() {
1693 } 1693 }
1694 1694
1695 void RenderWidget::DidInitiatePaint() {
1696 if (owner_delegate_)
1697 owner_delegate_->RenderWidgetDidCommitAndDrawCompositorFrame();
1698 }
1699
1700 void RenderWidget::DidFlushPaint() {
1701 if (owner_delegate_)
1702 owner_delegate_->RenderWidgetDidFlushPaint();
1703 }
1704
1695 gfx::Vector2d RenderWidget::GetScrollOffset() { 1705 gfx::Vector2d RenderWidget::GetScrollOffset() {
1696 // Bare RenderWidgets don't support scroll offset. 1706 // Bare RenderWidgets don't support scroll offset.
1697 return gfx::Vector2d(); 1707 return gfx::Vector2d();
1698 } 1708 }
1699 1709
1700 void RenderWidget::SetHidden(bool hidden) { 1710 void RenderWidget::SetHidden(bool hidden) {
1701 if (is_hidden_ == hidden) 1711 if (is_hidden_ == hidden)
1702 return; 1712 return;
1703 1713
1704 // The status has changed. Tell the RenderThread about it and ensure 1714 // The status has changed. Tell the RenderThread about it and ensure
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 } 2160 }
2151 2161
2152 float RenderWidget::GetOriginalDeviceScaleFactor() const { 2162 float RenderWidget::GetOriginalDeviceScaleFactor() const {
2153 return 2163 return
2154 screen_metrics_emulator_ ? 2164 screen_metrics_emulator_ ?
2155 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : 2165 screen_metrics_emulator_->original_screen_info().deviceScaleFactor :
2156 device_scale_factor_; 2166 device_scale_factor_;
2157 } 2167 }
2158 2168
2159 } // namespace content 2169 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_owner_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698