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

Unified Diff: ash/root_window_controller.cc

Issue 13315002: Add in gesture for immersive mode (Closed) Base URL: https://codereview.chromium.org/12529026/
Patch Set: Rebasing Created 7 years, 9 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/root_window_controller.h ('k') | ash/wm/gestures/edge_gesture_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 3af8f489002c05f1b530354e6ab9b435037b7505..2d4461a81825873f171e971ce327800cf29b9d2f 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -491,6 +491,17 @@ bool RootWindowController::IsImmersiveMode() const {
return false;
}
+void RootWindowController::SetPendingImmersiveGesture(bool value) {
+ aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow();
+ for (size_t i = 0; i < container->children().size(); ++i) {
+ aura::Window* child = container->children()[i];
+ if (child->IsVisible() && child->GetProperty(kImmersiveModeKey)) {
+ child->SetProperty(kPendingImmersiveGestureKey, value);
+ return;
+ }
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
// RootWindowController, private:
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/wm/gestures/edge_gesture_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698