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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace views { | 39 namespace views { |
40 class View; | 40 class View; |
41 } | 41 } |
42 | 42 |
43 namespace ash { | 43 namespace ash { |
44 | 44 |
45 class ImmersiveFullscreenController; | 45 class ImmersiveFullscreenController; |
46 class RootWindowController; | 46 class RootWindowController; |
47 class WmLayoutManager; | 47 class WmLayoutManager; |
48 class WmShell; | |
49 class WmTransientWindowObserver; | 48 class WmTransientWindowObserver; |
50 class WmWindowTestApi; | 49 class WmWindowTestApi; |
51 enum class WmWindowProperty; | 50 enum class WmWindowProperty; |
52 | 51 |
53 namespace wm { | 52 namespace wm { |
54 class WindowState; | 53 class WindowState; |
55 } | 54 } |
56 | 55 |
57 // WmWindow abstracts away differences between ash running in classic mode | 56 // WmWindow abstracts away differences between ash running in classic mode |
58 // and ash running with aura-mus. | 57 // and ash running with aura-mus. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 void Destroy(); | 102 void Destroy(); |
104 | 103 |
105 WmWindow* GetRootWindow() { | 104 WmWindow* GetRootWindow() { |
106 return const_cast<WmWindow*>( | 105 return const_cast<WmWindow*>( |
107 const_cast<const WmWindow*>(this)->GetRootWindow()); | 106 const_cast<const WmWindow*>(this)->GetRootWindow()); |
108 } | 107 } |
109 const WmWindow* GetRootWindow() const; | 108 const WmWindow* GetRootWindow() const; |
110 RootWindowController* GetRootWindowController(); | 109 RootWindowController* GetRootWindowController(); |
111 | 110 |
112 // TODO(sky): fix constness. | |
113 WmShell* GetShell() const; | |
114 | |
115 // See shell_window_ids.h for list of known ids. | 111 // See shell_window_ids.h for list of known ids. |
116 void SetShellWindowId(int id); | 112 void SetShellWindowId(int id); |
117 int GetShellWindowId() const; | 113 int GetShellWindowId() const; |
118 WmWindow* GetChildByShellWindowId(int id); | 114 WmWindow* GetChildByShellWindowId(int id); |
119 | 115 |
120 ui::wm::WindowType GetType() const; | 116 ui::wm::WindowType GetType() const; |
121 int GetAppType() const; | 117 int GetAppType() const; |
122 void SetAppType(int app_type) const; | 118 void SetAppType(int app_type) const; |
123 | 119 |
124 ui::Layer* GetLayer(); | 120 ui::Layer* GetLayer(); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 363 |
368 // If true the minimum size is 0x0, default is minimum size comes from widget. | 364 // If true the minimum size is 0x0, default is minimum size comes from widget. |
369 bool use_empty_minimum_size_for_testing_; | 365 bool use_empty_minimum_size_for_testing_; |
370 | 366 |
371 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 367 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
372 }; | 368 }; |
373 | 369 |
374 } // namespace ash | 370 } // namespace ash |
375 | 371 |
376 #endif // ASH_WM_WINDOW_H_ | 372 #endif // ASH_WM_WINDOW_H_ |
OLD | NEW |