| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual WmRootWindowController* GetRootWindowController() = 0; | 59 virtual WmRootWindowController* GetRootWindowController() = 0; |
| 60 | 60 |
| 61 // TODO(sky): fix constness. | 61 // TODO(sky): fix constness. |
| 62 virtual WmGlobals* GetGlobals() const = 0; | 62 virtual WmGlobals* GetGlobals() const = 0; |
| 63 | 63 |
| 64 // Used for debugging. | 64 // Used for debugging. |
| 65 virtual void SetName(const std::string& name) = 0; | 65 virtual void SetName(const std::string& name) = 0; |
| 66 | 66 |
| 67 // See wm_shell_window_ids.h for list of known ids. | 67 // See wm_shell_window_ids.h for list of known ids. |
| 68 virtual void SetShellWindowId(int id) = 0; | 68 virtual void SetShellWindowId(int id) = 0; |
| 69 virtual int GetShellWindowId() = 0; | 69 virtual int GetShellWindowId() const = 0; |
| 70 virtual WmWindow* GetChildByShellWindowId(int id) = 0; | 70 virtual WmWindow* GetChildByShellWindowId(int id) = 0; |
| 71 | 71 |
| 72 virtual ui::wm::WindowType GetType() const = 0; | 72 virtual ui::wm::WindowType GetType() const = 0; |
| 73 | 73 |
| 74 // TODO(sky): seems like this shouldn't be exposed. | 74 // TODO(sky): seems like this shouldn't be exposed. |
| 75 virtual ui::Layer* GetLayer() = 0; | 75 virtual ui::Layer* GetLayer() = 0; |
| 76 | 76 |
| 77 virtual display::Display GetDisplayNearestWindow() = 0; | 77 virtual display::Display GetDisplayNearestWindow() = 0; |
| 78 | 78 |
| 79 virtual bool HasNonClientArea() = 0; | 79 virtual bool HasNonClientArea() = 0; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 205 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 206 | 206 |
| 207 protected: | 207 protected: |
| 208 virtual ~WmWindow() {} | 208 virtual ~WmWindow() {} |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace wm | 211 } // namespace wm |
| 212 } // namespace ash | 212 } // namespace ash |
| 213 | 213 |
| 214 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 214 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |