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

Unified Diff: ash/shell.h

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Add unittests. Will split the CL into two CLs. Created 3 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/ash_switches.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 79c62422d54472addb0cd2e3c7aa097ec9b2cb9e..317cf31cd8c82173128b1d2beed5821d5fa86d52 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -145,6 +145,7 @@ class ShellObserver;
class ShutdownController;
class ShutdownObserver;
class SmsObserver;
+class SplitViewController;
class StickyKeysController;
class SystemGestureEventFilter;
class SystemModalContainerEventFilter;
@@ -530,6 +531,13 @@ class ASH_EXPORT Shell : public SessionObserver,
GPUSupport* gpu_support() { return gpu_support_.get(); }
+ SplitViewController* split_view_controller() {
+ return split_view_controller_.get();
+ }
+
+ // Returns true if split view mode is active.
+ bool IsSplitViewModeActive() const;
+
void AddShellObserver(ShellObserver* observer);
void RemoveShellObserver(ShellObserver* observer);
@@ -571,6 +579,13 @@ class ASH_EXPORT Shell : public SessionObserver,
// Notifies observers that overview mode has ended.
void NotifyOverviewModeEnded();
+ // Notifies observers that split view mode is about to be started (before the
+ // window gets snapped and activated).
+ void NotifySplitViewModeStarting();
+
+ // Notifies observers that split view mode has ended.
+ void NotifySplitViewModeEnded();
+
// Notifies observers that fullscreen mode has changed for |root_window|.
void NotifyFullscreenStateChanged(bool is_fullscreen,
aura::Window* root_window);
@@ -793,6 +808,9 @@ class ASH_EXPORT Shell : public SessionObserver,
std::unique_ptr<PartialMagnificationController>
partial_magnification_controller_;
+ // The split view controller for Chrome OS in tablet mode.
+ std::unique_ptr<SplitViewController> split_view_controller_;
+
// |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
// pointer to vend to test code.
NativeCursorManagerAsh* native_cursor_manager_;
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698