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

Unified Diff: ash/root_window_controller.cc

Issue 14195016: Add in gesture for immersive mode (Closed) Base URL: https://codereview.chromium.org/13315002/
Patch Set: Created 7 years, 8 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/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 165a61df60657e1205b47bebbcf70b96a4e20c27..d32af079cd76c3d71d1eaa6b4322f5c40893aa0f 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -516,6 +516,16 @@ void RootWindowController::InitKeyboard() {
}
}
+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;
+ }
pkotwicz 2013/04/19 06:06:44 Can you modify RootWindowController::IsImmersiveMo
pkotwicz 2013/04/21 21:18:19 FYI: I have implemented GetFullscreenWindow() as p
rharrison 2013/04/22 18:36:52 I will change the related code to use GetFullscree
+ }
+}
////////////////////////////////////////////////////////////////////////////////
// RootWindowController, private:

Powered by Google App Engine
This is Rietveld 408576698