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_COMMON_WM_WM_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WM_WINDOW_H_ |
6 #define ASH_COMMON_WM_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WM_WINDOW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual WmRootWindowController* GetRootWindowController() = 0; | 60 virtual WmRootWindowController* GetRootWindowController() = 0; |
61 | 61 |
62 // TODO(sky): fix constness. | 62 // TODO(sky): fix constness. |
63 virtual WmGlobals* GetGlobals() const = 0; | 63 virtual WmGlobals* GetGlobals() const = 0; |
64 | 64 |
65 // Used for debugging. | 65 // Used for debugging. |
66 virtual void SetName(const char* name) = 0; | 66 virtual void SetName(const char* name) = 0; |
67 | 67 |
68 virtual base::string16 GetTitle() const = 0; | 68 virtual base::string16 GetTitle() const = 0; |
69 | 69 |
70 // See wm_shell_window_ids.h for list of known ids. | 70 // See shell_window_ids.h for list of known ids. |
71 virtual void SetShellWindowId(int id) = 0; | 71 virtual void SetShellWindowId(int id) = 0; |
72 virtual int GetShellWindowId() const = 0; | 72 virtual int GetShellWindowId() const = 0; |
73 virtual WmWindow* GetChildByShellWindowId(int id) = 0; | 73 virtual WmWindow* GetChildByShellWindowId(int id) = 0; |
74 | 74 |
75 virtual ui::wm::WindowType GetType() const = 0; | 75 virtual ui::wm::WindowType GetType() const = 0; |
76 | 76 |
77 // TODO(sky): seems like this shouldn't be exposed. | 77 // TODO(sky): seems like this shouldn't be exposed. |
78 virtual ui::Layer* GetLayer() = 0; | 78 virtual ui::Layer* GetLayer() = 0; |
79 | 79 |
80 virtual display::Display GetDisplayNearestWindow() = 0; | 80 virtual display::Display GetDisplayNearestWindow() = 0; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 254 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
255 | 255 |
256 protected: | 256 protected: |
257 virtual ~WmWindow() {} | 257 virtual ~WmWindow() {} |
258 }; | 258 }; |
259 | 259 |
260 } // namespace wm | 260 } // namespace wm |
261 } // namespace ash | 261 } // namespace ash |
262 | 262 |
263 #endif // ASH_COMMON_WM_WM_WINDOW_H_ | 263 #endif // ASH_COMMON_WM_WM_WINDOW_H_ |
OLD | NEW |