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

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: 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
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h
index 4ce47fdd275de07c806862b87139820d1d12b208..b6d81d3e6589844400f63fc907f1490705d4d0ba 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -267,6 +267,15 @@ 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 than normal fullscreen mode (e.g. use of edge swipe gestures).
+ bool immersive_mode() const {
pkotwicz 2014/06/02 19:50:06 This should be called in_immersive_fullscreen().
Mr4D (OOO till 08-26) 2014/06/02 20:36:20 Done.
+ return immersive_mode_;
+ }
+ void set_immersive_mode(bool enable) {
+ immersive_mode_ = 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 +348,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 immersive_mode_;
scoped_ptr<DragDetails> drag_details_;
bool unminimize_to_restore_bounds_;
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698