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

Unified Diff: ash/wm/window_state.h

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undocks window first before side-snapping bounds (rebase) Created 7 years, 1 month 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 2bbdd035b0d127d001746d55ddfc9ba0b96d426b..4e036f1cca7660447704cde5926c24a148a3bfcf 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -186,11 +186,16 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
window_position_managed_ = window_position_managed;
}
+ // Allows window to be repositioned away from the screen edge.
+ void SetWindowShowTypeUnsnapped();
+
// Whether or not the window's position or size was changed by a user.
bool bounds_changed_by_user() const { return bounds_changed_by_user_; }
- void set_bounds_changed_by_user(bool bounds_changed_by_user) {
- bounds_changed_by_user_ = bounds_changed_by_user;
- }
+
+ // Sets |bounds_changed_by_user_| to the value passed in a parameter.
+ // If the new value is true allows the window to be repositioned away from
+ // snapped state at the screen edge.
+ void SetBoundsChangedByUser(bool bounds_changed_by_user);
// True if this window is an attached panel.
bool panel_attached() const {
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_state.cc » ('j') | ash/wm/window_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698