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

Unified Diff: ash/wm/window_state.h

Issue 55303006: Make sure the non browser/non app widget is fully visible when created on ash (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
« no previous file with comments | « ash/wm/window_positioner_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 320977ebb4ed8768124daf538fb9fb4cd8eae1de..2bbdd035b0d127d001746d55ddfc9ba0b96d426b 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -148,6 +148,18 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
animate_to_fullscreen_ = value;
}
+ // If the minimum visibilty is true, ash will try to keep a
+ // minimum amount of the window is always visible on the work area
+ // when shown.
+ // TODO(oshima): Consolidate this and window_position_managed
+ // into single parameter to control the window placement.
+ bool minimum_visibility() const {
+ return minimum_visibility_;
+ }
+ void set_minimum_visibility(bool minimum_visibility) {
+ minimum_visibility_ = minimum_visibility;
+ }
+
// Gets/Sets the bounds of the window before it was moved by the auto window
// management. As long as it was not auto-managed, it will return NULL.
const gfx::Rect* pre_auto_manage_window_bounds() const {
@@ -262,6 +274,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
bool always_restores_to_restore_bounds_;
bool hide_shelf_when_fullscreen_;
bool animate_to_fullscreen_;
+ bool minimum_visibility_;
// A property to remember the window position which was set before the
// auto window position manager changed the window bounds, so that it can get
« no previous file with comments | « ash/wm/window_positioner_unittest.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698