| 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/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "ui/base/ui_base_types.h" | 13 #include "ui/base/ui_base_types.h" |
| 14 #include "ui/wm/core/window_animations.h" | 14 #include "ui/wm/core/window_animations.h" |
| 15 #include "ui/wm/public/window_types.h" | 15 #include "ui/wm/public/window_types.h" |
| 16 | 16 |
| 17 namespace display { | 17 namespace display { |
| 18 class Display; | 18 class Display; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 class WmGlobals; | 35 class WmGlobals; |
| 36 class WmLayoutManager; | 36 class WmLayoutManager; |
| 37 class WmRootWindowController; | 37 class WmRootWindowController; |
| 38 class WmWindowObserver; | 38 class WmWindowObserver; |
| 39 enum class WmWindowProperty; | 39 enum class WmWindowProperty; |
| 40 class WindowState; | 40 class WindowState; |
| 41 | 41 |
| 42 // This class exists as a porting layer to allow ash/wm to work with | 42 // This class exists as a porting layer to allow ash/wm to work with |
| 43 // aura::Window | 43 // aura::Window |
| 44 // or mus::Window. See aura::Window for details on the functions. | 44 // or mus::Window. See aura::Window for details on the functions. |
| 45 class ASH_WM_COMMON_EXPORT WmWindow { | 45 class ASH_EXPORT WmWindow { |
| 46 public: | 46 public: |
| 47 WmWindow* GetRootWindow() { | 47 WmWindow* GetRootWindow() { |
| 48 return const_cast<WmWindow*>( | 48 return const_cast<WmWindow*>( |
| 49 const_cast<const WmWindow*>(this)->GetRootWindow()); | 49 const_cast<const WmWindow*>(this)->GetRootWindow()); |
| 50 } | 50 } |
| 51 virtual const WmWindow* GetRootWindow() const = 0; | 51 virtual const WmWindow* GetRootWindow() const = 0; |
| 52 virtual WmRootWindowController* GetRootWindowController() = 0; | 52 virtual WmRootWindowController* GetRootWindowController() = 0; |
| 53 | 53 |
| 54 // TODO(sky): fix constness. | 54 // TODO(sky): fix constness. |
| 55 virtual WmGlobals* GetGlobals() const = 0; | 55 virtual WmGlobals* GetGlobals() const = 0; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 201 | 201 |
| 202 protected: | 202 protected: |
| 203 virtual ~WmWindow() {} | 203 virtual ~WmWindow() {} |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace wm | 206 } // namespace wm |
| 207 } // namespace ash | 207 } // namespace ash |
| 208 | 208 |
| 209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |