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

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: Remove unused functions 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
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 25d9f5353543c8739f8e75bb4b628f4443f87df0..7feda3eafb2f68ad4ab0e7a0c4d1f2d271c491b0 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
@@ -129,8 +124,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);

Powered by Google App Engine
This is Rietveld 408576698