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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/wm/drag_details.h" | 11 #include "ash/wm/drag_details.h" |
12 #include "ash/wm/wm_types.h" | 12 #include "ash/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/aura/window_observer.h" | 16 #include "ui/aura/window_observer.h" |
17 #include "ui/base/ui_base_types.h" | 17 #include "ui/base/ui_base_types.h" |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 class Rect; | 20 class Rect; |
21 } | 21 } |
22 | 22 |
23 namespace ash { | 23 namespace ash { |
24 class LockWindowState; | 24 class LockWindowState; |
25 class MaximizeModeWindowState; | 25 class TabletModeWindowState; |
26 | 26 |
27 namespace mojom { | 27 namespace mojom { |
28 enum class WindowPinType; | 28 enum class WindowPinType; |
29 } | 29 } |
30 | 30 |
31 namespace wm { | 31 namespace wm { |
32 class WindowState; | 32 class WindowState; |
33 class WindowStateDelegate; | 33 class WindowStateDelegate; |
34 class WindowStateObserver; | 34 class WindowStateObserver; |
35 class WMEvent; | 35 class WMEvent; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 // Sets the currently stored restore bounds and clears the restore bounds. | 319 // Sets the currently stored restore bounds and clears the restore bounds. |
320 void SetAndClearRestoreBounds(); | 320 void SetAndClearRestoreBounds(); |
321 | 321 |
322 // Returns a pointer to DragDetails during drag operations. | 322 // Returns a pointer to DragDetails during drag operations. |
323 const DragDetails* drag_details() const { return drag_details_.get(); } | 323 const DragDetails* drag_details() const { return drag_details_.get(); } |
324 DragDetails* drag_details() { return drag_details_.get(); } | 324 DragDetails* drag_details() { return drag_details_.get(); } |
325 | 325 |
326 private: | 326 private: |
327 friend class DefaultState; | 327 friend class DefaultState; |
328 friend class ash::LockWindowState; | 328 friend class ash::LockWindowState; |
329 friend class ash::MaximizeModeWindowState; | 329 friend class ash::TabletModeWindowState; |
330 friend WindowState* GetWindowState(aura::Window*); | 330 friend WindowState* GetWindowState(aura::Window*); |
331 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, CrossFadeToBounds); | 331 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, CrossFadeToBounds); |
332 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, | 332 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, |
333 CrossFadeToBoundsFromTransform); | 333 CrossFadeToBoundsFromTransform); |
334 | 334 |
335 explicit WindowState(aura::Window* window); | 335 explicit WindowState(aura::Window* window); |
336 | 336 |
337 WindowStateDelegate* delegate() { return delegate_.get(); } | 337 WindowStateDelegate* delegate() { return delegate_.get(); } |
338 | 338 |
339 // Returns the window's current always_on_top state. | 339 // Returns the window's current always_on_top state. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 std::unique_ptr<State> current_state_; | 414 std::unique_ptr<State> current_state_; |
415 | 415 |
416 DISALLOW_COPY_AND_ASSIGN(WindowState); | 416 DISALLOW_COPY_AND_ASSIGN(WindowState); |
417 }; | 417 }; |
418 | 418 |
419 } // namespace wm | 419 } // namespace wm |
420 } // namespace ash | 420 } // namespace ash |
421 | 421 |
422 #endif // ASH_WM_WINDOW_STATE_H_ | 422 #endif // ASH_WM_WINDOW_STATE_H_ |
OLD | NEW |