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

Unified Diff: athena/wm/window_overview_mode.h

Issue 546123002: Ensure that an activity is activated when overview mode is exited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: athena/wm/window_overview_mode.h
diff --git a/athena/wm/window_overview_mode.h b/athena/wm/window_overview_mode.h
index 6597fea433d8c170164bc1fce6193579c6e83955..9a34a6f58804cc57e4f1bf3fbf81cee6e34f2fa0 100644
--- a/athena/wm/window_overview_mode.h
+++ b/athena/wm/window_overview_mode.h
@@ -14,15 +14,19 @@ class WindowListProvider;
class WindowOverviewModeDelegate {
public:
- virtual ~WindowOverviewModeDelegate() {}
+ enum SplitType {
+ SPLIT_NONE,
+ SPLIT_LEFT,
+ SPLIT_RIGHT
+ };
- virtual void OnSelectWindow(aura::Window* window) = 0;
+ virtual ~WindowOverviewModeDelegate() {}
- // Gets into split-view mode with |left| on the left-side of the screen, and
- // |right| on the right-side. If |left| or |right| is NULL, then the delegate
- // selects the best option in its place.
- virtual void OnSplitViewMode(aura::Window* left,
- aura::Window* right) = 0;
+ // Called when a window is selected in overview mode. |window| is the window
+ // to be activated. |split_type| indicates whether the window should be part
+ // of split view and what position it should have in split view. The method
+ // should update |window|'s bounds, opacity and visibility.
+ virtual void OnSelectWindow(aura::Window* window, SplitType split_type) = 0;
};
class WindowOverviewMode {

Powered by Google App Engine
This is Rietveld 408576698