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

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: Created 6 years, 1 month 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 c791a1894b5097ae91352ccf7b628e6342a3e088..9d4e9af7bd8103561e6c80181529c761c662247b 100644
--- a/ash/wm/overview/transparent_activate_window_button_delegate.h
+++ b/ash/wm/overview/transparent_activate_window_button_delegate.h
@@ -12,9 +12,20 @@ namespace ash {
// to manipulate windows while in overview mode.
class 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