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

Unified Diff: ash/wm/window_state.h

Issue 2806783002: ash: Do not constrain window bounds if requested (Closed)
Patch Set: Remove dead code Created 3 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
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/window_state_unittest.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 c837d1d124db9344c31386666c41bd0abc431fe5..9438cd7b21a18e661579d88d844fbcbb3d9c734d 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -294,14 +294,11 @@ class ASH_EXPORT WindowState {
ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change;
}
- // True if the window's bounds can be updated using SET_BOUNDS event in
- // maiximzed/fullscreen mode.
- void set_allow_set_bounds_in_maximized(bool value) {
- allow_set_bounds_in_maximized_ = value;
- }
- bool allow_set_bounds_in_maximized() const {
- return allow_set_bounds_in_maximized_;
+ // True if the window bounds can be updated directly using SET_BOUNDS event.
+ void set_allow_set_bounds_direct(bool value) {
+ allow_set_bounds_direct_ = value;
}
+ bool allow_set_bounds_direct() const { return allow_set_bounds_direct_; }
// Creates and takes ownership of a pointer to DragDetails when resizing is
// active. This should be done before a resizer gets created.
@@ -396,7 +393,7 @@ class ASH_EXPORT WindowState {
bool minimum_visibility_;
bool can_be_dragged_;
bool cached_always_on_top_;
- bool allow_set_bounds_in_maximized_ = false;
+ bool allow_set_bounds_direct_ = false;
// 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/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698