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

Unified Diff: ash/shell.h

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Address oshima@'s comments 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
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 08bb804c31026fa114a5045cfdf07f7246c81edd..052cb0d4c011d70d35fb924f7ba7197f79cf0db5 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -152,6 +152,7 @@ class ShellObserver;
class ShutdownController;
class ShutdownObserver;
class SmsObserver;
+class SplitViewController;
class StickyKeysController;
class SystemGestureEventFilter;
class SystemModalContainerEventFilter;
@@ -540,6 +541,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);
@@ -581,6 +589,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);
@@ -807,6 +822,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.
AshNativeCursorManager* native_cursor_manager_;
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/shell.cc » ('j') | ash/wm/overview/overview_animation_type.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698