| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 WmWindow* GetRootWindow() { | 50 WmWindow* GetRootWindow() { |
| 51 return const_cast<WmWindow*>( | 51 return const_cast<WmWindow*>( |
| 52 const_cast<const WmWindow*>(this)->GetRootWindow()); | 52 const_cast<const WmWindow*>(this)->GetRootWindow()); |
| 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. |
| 61 virtual void SetName(const std::string& name) = 0; |
| 62 |
| 63 virtual void SetShellWindowId(int id) = 0; |
| 60 virtual int GetShellWindowId() = 0; | 64 virtual int GetShellWindowId() = 0; |
| 61 virtual WmWindow* GetChildByShellWindowId(int id) = 0; | 65 virtual WmWindow* GetChildByShellWindowId(int id) = 0; |
| 62 | 66 |
| 63 virtual ui::wm::WindowType GetType() const = 0; | 67 virtual ui::wm::WindowType GetType() const = 0; |
| 64 | 68 |
| 65 // TODO(sky): seems like this shouldn't be exposed. | 69 // TODO(sky): seems like this shouldn't be exposed. |
| 66 virtual ui::Layer* GetLayer() = 0; | 70 virtual ui::Layer* GetLayer() = 0; |
| 67 | 71 |
| 68 virtual gfx::Display GetDisplayNearestWindow() = 0; | 72 virtual gfx::Display GetDisplayNearestWindow() = 0; |
| 69 | 73 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 197 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 194 | 198 |
| 195 protected: | 199 protected: |
| 196 virtual ~WmWindow() {} | 200 virtual ~WmWindow() {} |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 } // namespace wm | 203 } // namespace wm |
| 200 } // namespace ash | 204 } // namespace ash |
| 201 | 205 |
| 202 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 206 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |