OLD | NEW |
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/drag_details.h" | 9 #include "ash/wm/drag_details.h" |
10 #include "ash/wm/wm_types.h" | 10 #include "ash/wm/wm_types.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 // workspace if the window represented by |window_state| is side snapped. | 323 // workspace if the window represented by |window_state| is side snapped. |
324 void AdjustSnappedBounds(gfx::Rect* bounds); | 324 void AdjustSnappedBounds(gfx::Rect* bounds); |
325 | 325 |
326 // Updates the window show state according to the current window state type. | 326 // Updates the window show state according to the current window state type. |
327 // Note that this does not update the window bounds. | 327 // Note that this does not update the window bounds. |
328 void UpdateWindowShowStateFromStateType(); | 328 void UpdateWindowShowStateFromStateType(); |
329 | 329 |
330 void NotifyPreStateTypeChange(WindowStateType old_window_state_type); | 330 void NotifyPreStateTypeChange(WindowStateType old_window_state_type); |
331 void NotifyPostStateTypeChange(WindowStateType old_window_state_type); | 331 void NotifyPostStateTypeChange(WindowStateType old_window_state_type); |
332 | 332 |
333 // Sets |bounds| as is. | 333 // Sets |bounds| as is and ensure the layer is aligned with pixel boundary. |
334 void SetBoundsDirect(const gfx::Rect& bounds); | 334 void SetBoundsDirect(const gfx::Rect& bounds); |
335 | 335 |
336 // Sets the window's |bounds| with constraint where the size of the | 336 // Sets the window's |bounds| with constraint where the size of the |
337 // new bounds will not exceeds the size of the work area. | 337 // new bounds will not exceeds the size of the work area. |
338 void SetBoundsConstrained(const gfx::Rect& bounds); | 338 void SetBoundsConstrained(const gfx::Rect& bounds); |
339 | 339 |
340 // Sets the wndow's |bounds| and transitions to the new bounds with | 340 // Sets the wndow's |bounds| and transitions to the new bounds with |
341 // a scale animation. | 341 // a scale animation. |
342 void SetBoundsDirectAnimated(const gfx::Rect& bounds); | 342 void SetBoundsDirectAnimated(const gfx::Rect& bounds); |
343 | 343 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 388 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
389 | 389 |
390 // const version of GetWindowState. | 390 // const version of GetWindowState. |
391 ASH_EXPORT const WindowState* | 391 ASH_EXPORT const WindowState* |
392 GetWindowState(const aura::Window* window); | 392 GetWindowState(const aura::Window* window); |
393 | 393 |
394 } // namespace wm | 394 } // namespace wm |
395 } // namespace ash | 395 } // namespace ash |
396 | 396 |
397 #endif // ASH_WM_WINDOW_STATE_H_ | 397 #endif // ASH_WM_WINDOW_STATE_H_ |
OLD | NEW |