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

Unified Diff: content/browser/web_contents/aura/window_slider.h

Issue 278173005: Removing listening for repaints (OnUpdateRect) from OverscrollNavigationOverlay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating a comment. Created 6 years, 7 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/browser/web_contents/aura/window_slider.h
diff --git a/content/browser/web_contents/aura/window_slider.h b/content/browser/web_contents/aura/window_slider.h
index 64458834403eedfbd46141a923a14ae8b00d1ac7..83e56de330a88dbd4351e31d233da1b8be319e6f 100644
--- a/content/browser/web_contents/aura/window_slider.h
+++ b/content/browser/web_contents/aura/window_slider.h
@@ -46,15 +46,16 @@ class CONTENT_EXPORT WindowSlider : public ui::EventHandler,
// Called when the slide is about to be complete. The delegate can take
// action with the assumption that slide will complete soon (within the
// duration of the final transition animation effect).
- // This callback is always preceeded by CreateBackLayerAndSetAsTarget() or
- // by CreateFrontLayerAndSetAsTarget() callback, and is guaranteed to be
- // followed by the OnWindowSlideCompleted() callback.
+ // This callback is always preceeded by CreateBackLayer() or by
+ // CreateFrontLayer() callback, and is guaranteed to be followed by the
+ // OnWindowSlideCompleted() callback.
virtual void OnWindowSlideCompleting() = 0;
// Called when the window slide completes. Note that at the end the
// window-layer may have been transformed. The callback here should reset
- // the transform if necessary.
- virtual void OnWindowSlideCompleted() = 0;
+ // the transform if necessary. |layer| is the slider's layer (previously
+ // created via CreateBackLayer() or CreateFrontLayer()).
+ virtual void OnWindowSlideCompleted(scoped_ptr<ui::Layer> layer) = 0;
// Called when the slider is destroyed.
virtual void OnWindowSliderDestroyed() = 0;

Powered by Google App Engine
This is Rietveld 408576698