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

Unified Diff: content/renderer/gpu/render_widget_compositor.h

Issue 814083004: Notify main-thread of top controls state changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error after rebase Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.h
diff --git a/content/renderer/gpu/render_widget_compositor.h b/content/renderer/gpu/render_widget_compositor.h
index d464941205273c8530a74f39db39a614908262f3..239362cb7cafd1d5a16a45475339a69d969906ac 100644
--- a/content/renderer/gpu/render_widget_compositor.h
+++ b/content/renderer/gpu/render_widget_compositor.h
@@ -52,11 +52,6 @@ class CONTENT_EXPORT RenderWidgetCompositor
bool BeginMainFrameRequested() const;
void SetNeedsDisplayOnAllLayers();
void SetRasterizeOnlyVisibleContent();
- void UpdateTopControlsState(cc::TopControlsState constraints,
- cc::TopControlsState current,
- bool animate);
- void SetTopControlsShrinkBlinkSize(bool shrink);
- void SetTopControlsHeight(float height);
void SetNeedsRedrawRect(gfx::Rect damage_rect);
// Like setNeedsRedraw but forces the frame to be drawn, without early-outs.
// Redraw will be forced after the next commit
@@ -130,8 +125,12 @@ class CONTENT_EXPORT RenderWidgetCompositor
virtual void setShowDebugBorders(bool show);
virtual void setContinuousPaintingEnabled(bool enabled);
virtual void setShowScrollBottleneckRects(bool show);
- virtual void setTopControlsShownRatio(float);
+ virtual void updateTopControlsState(blink::WebTopControlsState constraints,
+ blink::WebTopControlsState current,
+ bool animate);
+ virtual void setTopControlsHeight(float height, bool shrink);
+ virtual void setTopControlsShownRatio(float);
// TODO(aelias): Delete after Blink roll
virtual void setTopControlsContentOffset(float);
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698