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

Unified Diff: ash/common/wm/window_state.h

Issue 2237983002: Allow updating arc widget bounds in maximize/fullscreen state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/common/wm/window_state.h
diff --git a/ash/common/wm/window_state.h b/ash/common/wm/window_state.h
index db48217669be7f998a799680a29f15644cfdce66..be657b558e2bb71ba6379c553fc5c98286e1303b 100644
--- a/ash/common/wm/window_state.h
+++ b/ash/common/wm/window_state.h
@@ -289,6 +289,15 @@ 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_ = true;
reveman 2016/08/11 19:07:25 "allow_set_bounds_in_maximized_ = value;" ?
oshima 2016/08/11 20:58:56 Oops, thanks for the catch. Done and added test ca
+ }
+ bool allow_set_bounds_in_maximized() const {
+ return allow_set_bounds_in_maximized_;
+ }
+
// Creates and takes ownership of a pointer to DragDetails when resizing is
// active. This should be done before a resizer gets created.
void CreateDragDetails(const gfx::Point& point_in_parent,
@@ -375,6 +384,7 @@ class ASH_EXPORT WindowState {
bool minimum_visibility_;
bool can_be_dragged_;
bool cached_always_on_top_;
+ bool allow_set_bounds_in_maximized_ = false;
reveman 2016/08/11 19:07:25 it's a bit confusing that this is false by default
oshima 2016/08/11 20:58:56 Maximized state means it's always maximized to its
// 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

Powered by Google App Engine
This is Rietveld 408576698