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 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 virtual const WmWindow* GetRootWindow() const = 0; | 54 virtual const WmWindow* GetRootWindow() const = 0; |
55 virtual WmRootWindowController* GetRootWindowController() = 0; | 55 virtual WmRootWindowController* GetRootWindowController() = 0; |
56 | 56 |
57 // TODO(sky): fix constness. | 57 // TODO(sky): fix constness. |
58 virtual WmGlobals* GetGlobals() const = 0; | 58 virtual WmGlobals* GetGlobals() const = 0; |
59 | 59 |
60 // Used for debugging. | 60 // Used for debugging. |
61 virtual void SetName(const std::string& name) = 0; | 61 virtual void SetName(const std::string& name) = 0; |
62 | 62 |
| 63 // See wm_shell_window_ids.h for list of known ids. |
63 virtual void SetShellWindowId(int id) = 0; | 64 virtual void SetShellWindowId(int id) = 0; |
64 virtual int GetShellWindowId() = 0; | 65 virtual int GetShellWindowId() = 0; |
65 virtual WmWindow* GetChildByShellWindowId(int id) = 0; | 66 virtual WmWindow* GetChildByShellWindowId(int id) = 0; |
66 | 67 |
67 virtual ui::wm::WindowType GetType() const = 0; | 68 virtual ui::wm::WindowType GetType() const = 0; |
68 | 69 |
69 // TODO(sky): seems like this shouldn't be exposed. | 70 // TODO(sky): seems like this shouldn't be exposed. |
70 virtual ui::Layer* GetLayer() = 0; | 71 virtual ui::Layer* GetLayer() = 0; |
71 | 72 |
72 virtual gfx::Display GetDisplayNearestWindow() = 0; | 73 virtual gfx::Display GetDisplayNearestWindow() = 0; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 201 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
201 | 202 |
202 protected: | 203 protected: |
203 virtual ~WmWindow() {} | 204 virtual ~WmWindow() {} |
204 }; | 205 }; |
205 | 206 |
206 } // namespace wm | 207 } // namespace wm |
207 } // namespace ash | 208 } // namespace ash |
208 | 209 |
209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 210 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
OLD | NEW |