| 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_COMMON_WM_WINDOW_STATE_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_STATE_H_ |
| 6 #define ASH_COMMON_WM_WINDOW_STATE_H_ | 6 #define ASH_COMMON_WM_WINDOW_STATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/wm/drag_details.h" | 11 #include "ash/common/wm/drag_details.h" |
| 12 #include "ash/common/wm/wm_types.h" | 12 #include "ash/common/wm/wm_types.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
| 17 #include "ui/gfx/geometry/insets.h" | 17 #include "ui/gfx/geometry/insets.h" |
| 18 | 18 |
| 19 namespace aura { | 19 namespace aura { |
| 20 class Window; | 20 class Window; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class Rect; | 24 class Rect; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace ash { | 27 namespace ash { |
| 28 class LockWindowState; | 28 class LockWindowState; |
| 29 class MaximizeModeWindowState; | 29 class MaximizeModeWindowState; |
| 30 class WmWindow; |
| 30 | 31 |
| 31 namespace wm { | 32 namespace wm { |
| 32 class WindowStateDelegate; | 33 class WindowStateDelegate; |
| 33 class WindowStateObserver; | 34 class WindowStateObserver; |
| 34 class WMEvent; | 35 class WMEvent; |
| 35 class WmWindow; | |
| 36 | 36 |
| 37 // WindowState manages and defines ash specific window state and | 37 // WindowState manages and defines ash specific window state and |
| 38 // behavior. Ash specific per-window state (such as ones that controls | 38 // behavior. Ash specific per-window state (such as ones that controls |
| 39 // window manager behavior) and ash specific window behavior (such as | 39 // window manager behavior) and ash specific window behavior (such as |
| 40 // maximize, minimize, snap sizing etc) should be added here instead | 40 // maximize, minimize, snap sizing etc) should be added here instead |
| 41 // of defining separate functions (like |MaximizeWindow(aura::Window* | 41 // of defining separate functions (like |MaximizeWindow(aura::Window* |
| 42 // window)|) or using aura Window property. | 42 // window)|) or using aura Window property. |
| 43 // The WindowState gets created when first accessed by | 43 // The WindowState gets created when first accessed by |
| 44 // |wm::GetWindowState|, and deleted when the window is deleted. | 44 // |wm::GetWindowState|, and deleted when the window is deleted. |
| 45 // Prefer using this class instead of passing aura::Window* around in | 45 // Prefer using this class instead of passing aura::Window* around in |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 std::unique_ptr<State> current_state_; | 391 std::unique_ptr<State> current_state_; |
| 392 | 392 |
| 393 DISALLOW_COPY_AND_ASSIGN(WindowState); | 393 DISALLOW_COPY_AND_ASSIGN(WindowState); |
| 394 }; | 394 }; |
| 395 | 395 |
| 396 } // namespace wm | 396 } // namespace wm |
| 397 } // namespace ash | 397 } // namespace ash |
| 398 | 398 |
| 399 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 399 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
| OLD | NEW |