OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_WM_COMMON_WM_WINDOW_H_ |
6 #define ASH_WM_COMMON_WM_WINDOW_H_ | 6 #define ASH_WM_COMMON_WM_WINDOW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/wm/common/ash_wm_common_export.h" | 11 #include "ash/ash_export.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "ui/base/ui_base_types.h" | 14 #include "ui/base/ui_base_types.h" |
15 #include "ui/compositor/layer_animation_element.h" | 15 #include "ui/compositor/layer_animation_element.h" |
16 #include "ui/wm/core/window_animations.h" | 16 #include "ui/wm/core/window_animations.h" |
17 #include "ui/wm/public/window_types.h" | 17 #include "ui/wm/public/window_types.h" |
18 | 18 |
19 namespace display { | 19 namespace display { |
20 class Display; | 20 class Display; |
21 } | 21 } |
(...skipping 15 matching lines...) Expand all Loading... |
37 class WMEvent; | 37 class WMEvent; |
38 class WmGlobals; | 38 class WmGlobals; |
39 class WmLayoutManager; | 39 class WmLayoutManager; |
40 class WmRootWindowController; | 40 class WmRootWindowController; |
41 class WmWindowObserver; | 41 class WmWindowObserver; |
42 enum class WmWindowProperty; | 42 enum class WmWindowProperty; |
43 class WindowState; | 43 class WindowState; |
44 | 44 |
45 // This class exists as a porting layer to allow ash/wm to work with | 45 // This class exists as a porting layer to allow ash/wm to work with |
46 // aura::Window or mus::Window. See aura::Window for details on the functions. | 46 // aura::Window or mus::Window. See aura::Window for details on the functions. |
47 class ASH_WM_COMMON_EXPORT WmWindow { | 47 class ASH_EXPORT WmWindow { |
48 public: | 48 public: |
49 WmWindow* GetRootWindow() { | 49 WmWindow* GetRootWindow() { |
50 return const_cast<WmWindow*>( | 50 return const_cast<WmWindow*>( |
51 const_cast<const WmWindow*>(this)->GetRootWindow()); | 51 const_cast<const WmWindow*>(this)->GetRootWindow()); |
52 } | 52 } |
53 virtual const WmWindow* GetRootWindow() const = 0; | 53 virtual const WmWindow* GetRootWindow() const = 0; |
54 virtual WmRootWindowController* GetRootWindowController() = 0; | 54 virtual WmRootWindowController* GetRootWindowController() = 0; |
55 | 55 |
56 // TODO(sky): fix constness. | 56 // TODO(sky): fix constness. |
57 virtual WmGlobals* GetGlobals() const = 0; | 57 virtual WmGlobals* GetGlobals() const = 0; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 218 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
219 | 219 |
220 protected: | 220 protected: |
221 virtual ~WmWindow() {} | 221 virtual ~WmWindow() {} |
222 }; | 222 }; |
223 | 223 |
224 } // namespace wm | 224 } // namespace wm |
225 } // namespace ash | 225 } // namespace ash |
226 | 226 |
227 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 227 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
OLD | NEW |