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

Unified Diff: ash/wm/window_state.h

Issue 309793005: Fixing problem with edge swipe exiting immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 years, 7 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/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h
index 4ce47fdd275de07c806862b87139820d1d12b208..f9bfc534bf533d6c065ffeb7a29a0a41d1ca85d4 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -267,6 +267,17 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
top_row_keys_are_function_keys_ = value;
}
+ // True if the window is in "immersive full screen mode" which is slightly
+ // different from the normal fullscreen mode by allowing the user to reveal
+ // the top portion of the window through a touch / mouse gesture. It will also
+ // allow the shelf to be shown.
pkotwicz 2014/06/02 22:27:58 The part about "It will also allow the shelf to be
Mr4D (OOO till 08-26) 2014/06/03 14:36:40 I am not sure if the full immersive functionality
+ bool in_immersive_fullscreen() const {
+ return in_immersive_fullscreen_;
+ }
+ void set_in_immersive_fullscreen(bool enable) {
+ in_immersive_fullscreen_ = enable;
+ }
+
// Creates and takes ownership of a pointer to DragDetails when resizing is
// active. This should be done before a resizer gets created.
void CreateDragDetails(aura::Window* window,
@@ -339,6 +350,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
bool ignored_by_shelf_;
bool can_consume_system_keys_;
bool top_row_keys_are_function_keys_;
+ bool in_immersive_fullscreen_;
scoped_ptr<DragDetails> drag_details_;
bool unminimize_to_restore_bounds_;

Powered by Google App Engine
This is Rietveld 408576698