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

Unified Diff: ash/common/wm_shell.h

Issue 2118643002: Move MaximizeModeController into ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: doh Created 4 years, 6 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
« no previous file with comments | « ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 8189231fae53de545c08df3ab0ecaab36ed3fe2a..9b9c2dd854ed2552c9586da241bf3f5b5ec28f52 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -30,6 +30,7 @@ class DisplayInfo;
class FocusCycler;
class KeyboardUI;
class MruWindowTracker;
+class ScopedDisableInternalMouseAndKeyboard;
class SessionStateDelegate;
class ShellObserver;
class SystemTrayDelegate;
@@ -100,6 +101,10 @@ class ASH_EXPORT WmShell {
// TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480
virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0;
+ // Matches that of DisplayManager::IsActiveDisplayId().
+ // TODO: Remove this when DisplayManager has been moved. crbug.com/622480
+ virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
+
// Returns true if the first window shown on first run should be
// unconditionally maximized, overriding the heuristic that normally chooses
// the window size.
@@ -149,6 +154,16 @@ class ASH_EXPORT WmShell {
virtual std::unique_ptr<wm::MaximizeModeEventHandler>
CreateMaximizeModeEventHandler() = 0;
+ virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard>
+ CreateScopedDisableInternalMouseAndKeyboard() = 0;
+
+ // Called after maximize mode has started, windows might still animate though.
+ void OnMaximizeModeStarted();
+
+ // Called after maximize mode has ended, windows might still be returning to
+ // their original position.
+ void OnMaximizeModeEnded();
+
// Called when the overview mode is about to be started (before the windows
// get re-arranged).
virtual void OnOverviewModeStarting() = 0;
« no previous file with comments | « ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698