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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WINDOW_STATE_H_ 5 #ifndef ASH_WM_WINDOW_STATE_H_
6 #define ASH_WM_WINDOW_STATE_H_ 6 #define ASH_WM_WINDOW_STATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h" 9 #include "ash/wm/wm_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool tracked_by_workspace() const { return tracked_by_workspace_; } 179 bool tracked_by_workspace() const { return tracked_by_workspace_; }
180 void SetTrackedByWorkspace(bool tracked_by_workspace); 180 void SetTrackedByWorkspace(bool tracked_by_workspace);
181 181
182 // Whether or not the window's position can be managed by the 182 // Whether or not the window's position can be managed by the
183 // auto management logic. 183 // auto management logic.
184 bool window_position_managed() const { return window_position_managed_; } 184 bool window_position_managed() const { return window_position_managed_; }
185 void set_window_position_managed(bool window_position_managed) { 185 void set_window_position_managed(bool window_position_managed) {
186 window_position_managed_ = window_position_managed; 186 window_position_managed_ = window_position_managed;
187 } 187 }
188 188
189 // Allows window to be repositioned away from the screen edge.
190 void SetWindowShowTypeUnsnapped();
191
189 // Whether or not the window's position or size was changed by a user. 192 // Whether or not the window's position or size was changed by a user.
190 bool bounds_changed_by_user() const { return bounds_changed_by_user_; } 193 bool bounds_changed_by_user() const { return bounds_changed_by_user_; }
191 void set_bounds_changed_by_user(bool bounds_changed_by_user) { 194
192 bounds_changed_by_user_ = bounds_changed_by_user; 195 // Sets |bounds_changed_by_user_| to the value passed in a parameter.
193 } 196 // If the new value is true allows the window to be repositioned away from
197 // snapped state at the screen edge.
198 void SetBoundsChangedByUser(bool bounds_changed_by_user);
194 199
195 // True if this window is an attached panel. 200 // True if this window is an attached panel.
196 bool panel_attached() const { 201 bool panel_attached() const {
197 return panel_attached_; 202 return panel_attached_;
198 } 203 }
199 void set_panel_attached(bool panel_attached) { 204 void set_panel_attached(bool panel_attached) {
200 panel_attached_ = panel_attached; 205 panel_attached_ = panel_attached;
201 } 206 }
202 207
203 // Indicates that an in progress drag should be continued after the 208 // Indicates that an in progress drag should be continued after the
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 302 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
298 303
299 // const version of GetWindowState. 304 // const version of GetWindowState.
300 ASH_EXPORT const WindowState* 305 ASH_EXPORT const WindowState*
301 GetWindowState(const aura::Window* window); 306 GetWindowState(const aura::Window* window);
302 307
303 } // namespace wm 308 } // namespace wm
304 } // namespace ash 309 } // namespace ash
305 310
306 #endif // ASH_WM_WINDOW_STATE_H_ 311 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698