| 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_WINDOW_H_ | 5 #ifndef ASH_WM_WINDOW_H_ |
| 6 #define ASH_WM_WINDOW_H_ | 6 #define ASH_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class Size; | 29 class Size; |
| 30 class Transform; | 30 class Transform; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace ui { | 33 namespace ui { |
| 34 class Layer; | 34 class Layer; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace ash { | 37 namespace ash { |
| 38 | 38 |
| 39 class RootWindowController; | |
| 40 class WmTransientWindowObserver; | 39 class WmTransientWindowObserver; |
| 41 enum class WmWindowProperty; | 40 enum class WmWindowProperty; |
| 42 | 41 |
| 43 namespace wm { | 42 namespace wm { |
| 44 class WindowState; | 43 class WindowState; |
| 45 } | 44 } |
| 46 | 45 |
| 47 // WmWindow abstracts away differences between ash running in classic mode | 46 // WmWindow abstracts away differences between ash running in classic mode |
| 48 // and ash running with aura-mus. | 47 // and ash running with aura-mus. |
| 49 // | 48 // |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 aura::Window* aura_window() { return window_; } | 85 aura::Window* aura_window() { return window_; } |
| 87 const aura::Window* aura_window() const { return window_; } | 86 const aura::Window* aura_window() const { return window_; } |
| 88 | 87 |
| 89 void Destroy(); | 88 void Destroy(); |
| 90 | 89 |
| 91 WmWindow* GetRootWindow() { | 90 WmWindow* GetRootWindow() { |
| 92 return const_cast<WmWindow*>( | 91 return const_cast<WmWindow*>( |
| 93 const_cast<const WmWindow*>(this)->GetRootWindow()); | 92 const_cast<const WmWindow*>(this)->GetRootWindow()); |
| 94 } | 93 } |
| 95 const WmWindow* GetRootWindow() const; | 94 const WmWindow* GetRootWindow() const; |
| 96 RootWindowController* GetRootWindowController(); | |
| 97 | 95 |
| 98 // See shell_window_ids.h for list of known ids. | 96 // See shell_window_ids.h for list of known ids. |
| 99 WmWindow* GetChildByShellWindowId(int id); | 97 WmWindow* GetChildByShellWindowId(int id); |
| 100 | 98 |
| 101 aura::client::WindowType GetType() const; | 99 aura::client::WindowType GetType() const; |
| 102 int GetAppType() const; | 100 int GetAppType() const; |
| 103 void SetAppType(int app_type) const; | 101 void SetAppType(int app_type) const; |
| 104 | 102 |
| 105 ui::Layer* GetLayer(); | 103 ui::Layer* GetLayer(); |
| 106 | 104 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 284 |
| 287 bool added_transient_observer_ = false; | 285 bool added_transient_observer_ = false; |
| 288 base::ObserverList<WmTransientWindowObserver> transient_observers_; | 286 base::ObserverList<WmTransientWindowObserver> transient_observers_; |
| 289 | 287 |
| 290 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 288 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
| 291 }; | 289 }; |
| 292 | 290 |
| 293 } // namespace ash | 291 } // namespace ash |
| 294 | 292 |
| 295 #endif // ASH_WM_WINDOW_H_ | 293 #endif // ASH_WM_WINDOW_H_ |
| OLD | NEW |