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

Unified Diff: ash/wm/overview/transparent_activate_window_button_delegate.h

Issue 690103008: Implemented swipe to close in overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed ET_SCROLL_FLING_CANCEL handling from TransparentButton and removed WindowSelector.MultiWind… Created 5 years, 12 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: ash/wm/overview/transparent_activate_window_button_delegate.h
diff --git a/ash/wm/overview/transparent_activate_window_button_delegate.h b/ash/wm/overview/transparent_activate_window_button_delegate.h
index 07695f0835c98fb32c1e0f87b73470ee0cfd7134..79fa4cb8f978712af17e99e4a11dc7e22a476867 100644
--- a/ash/wm/overview/transparent_activate_window_button_delegate.h
+++ b/ash/wm/overview/transparent_activate_window_button_delegate.h
@@ -14,9 +14,20 @@ namespace ash {
// to manipulate windows while in overview mode.
class ASH_EXPORT TransparentActivateWindowButtonDelegate {
public:
+ // Called when a touch scroll event occurs. |drag_x| is an absolute pixel
+ // distance in the TransparentActivateWindowButton's local cooridnates.
+ virtual void Scroll(int delta_x) = 0;
+
+ // Called when a touch scroll event ends and the distance scrolled is less
+ // than the minimum close distance.
+ virtual void CancelScroll() = 0;
+
// Called when the TransparentActivateWindowButton was selected.
virtual void Select() = 0;
+ // Called when a TransparentActivateWindowButton close event occurs.
+ virtual void Close() = 0;
+
protected:
TransparentActivateWindowButtonDelegate() {}
virtual ~TransparentActivateWindowButtonDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698