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

Unified Diff: ash/wm/workspace/backdrop_controller.cc

Issue 2960843004: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: nit. 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/wm/workspace/backdrop_controller.cc
diff --git a/ash/wm/workspace/backdrop_controller.cc b/ash/wm/workspace/backdrop_controller.cc
index 2473771ad81fe5d7d24d92c776df21d28c5e8115..05b6d940b1d3dc2902248977b6eaa5237a56c865 100644
--- a/ash/wm/workspace/backdrop_controller.cc
+++ b/ash/wm/workspace/backdrop_controller.cc
@@ -140,6 +140,19 @@ void BackdropController::OnOverviewModeStarting() {
}
void BackdropController::OnOverviewModeEnded() {
+ if (Shell::Get()->IsSplitViewModeActive())
+ return;
+
+ force_hidden_ = false;
+ UpdateBackdrop();
+}
+
+void BackdropController::OnSplitViewModeStarting() {
+ force_hidden_ = true;
+ Hide();
+}
+
+void BackdropController::OnSplitViewModeEnded() {
force_hidden_ = false;
UpdateBackdrop();
}
« ash/wm/splitview/split_view_controller_unittest.cc ('K') | « ash/wm/workspace/backdrop_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698