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

Unified Diff: ash/wm/window_state.h

Issue 27458002: Allow setting different hit test bounds overrides for mouse and touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 8c68e2466b5116aa0bb965c1e2d9d99d9040ab3f..e5200cce5bc9f2fca328d2917d497b0780abcc87 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -58,6 +58,10 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
bool IsMinimized() const;
bool IsMaximized() const;
bool IsFullscreen() const;
+ // True if the window's show state is SHOW_STATE_FULLSCREEN and the fullscreen
+ // type allows the top-of-window views to be revealed when the mouse is
+ // hovered at the top of the screen.
+ bool IsImmersiveFullscreen() const;
bool IsMaximizedOrFullscreen() const;
// True if the window's show state is SHOW_STATE_NORMAL or
// SHOW_STATE_DEFAULT.
@@ -110,6 +114,13 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
// Deletes and clears the restore bounds property on the window.
void ClearRestoreBounds();
+ // Sets the type of fullscreen. This only has an effect if already in
+ // fullscreen.
+ FullscreenType fullscreen_type() const {
+ return fullscreen_type_;
+ }
+ void SetFullscreenType(FullscreenType type);
+
// Sets whether the window should always be restored to the restore bounds
// (sometimes the workspace layout manager restores the window to its original
// bounds instead of the restore bounds. Setting this key overrides that
@@ -209,6 +220,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
// The owner of this window settings.
aura::Window* window_;
+ FullscreenType fullscreen_type_;
bool tracked_by_workspace_;
bool window_position_managed_;
bool bounds_changed_by_user_;
« no previous file with comments | « ash/wm/window_properties.cc ('k') | ash/wm/window_state.cc » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698