| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void Destroy(); | 102 void Destroy(); |
| 103 | 103 |
| 104 WmWindow* GetRootWindow() { | 104 WmWindow* GetRootWindow() { |
| 105 return const_cast<WmWindow*>( | 105 return const_cast<WmWindow*>( |
| 106 const_cast<const WmWindow*>(this)->GetRootWindow()); | 106 const_cast<const WmWindow*>(this)->GetRootWindow()); |
| 107 } | 107 } |
| 108 const WmWindow* GetRootWindow() const; | 108 const WmWindow* GetRootWindow() const; |
| 109 RootWindowController* GetRootWindowController(); | 109 RootWindowController* GetRootWindowController(); |
| 110 | 110 |
| 111 // See shell_window_ids.h for list of known ids. | 111 // See shell_window_ids.h for list of known ids. |
| 112 void SetShellWindowId(int id); | |
| 113 int GetShellWindowId() const; | |
| 114 WmWindow* GetChildByShellWindowId(int id); | 112 WmWindow* GetChildByShellWindowId(int id); |
| 115 | 113 |
| 116 ui::wm::WindowType GetType() const; | 114 ui::wm::WindowType GetType() const; |
| 117 int GetAppType() const; | 115 int GetAppType() const; |
| 118 void SetAppType(int app_type) const; | 116 void SetAppType(int app_type) const; |
| 119 | 117 |
| 120 ui::Layer* GetLayer(); | 118 ui::Layer* GetLayer(); |
| 121 | 119 |
| 122 // TODO(sky): these are temporary until GetLayer() always returns non-null. | 120 // TODO(sky): these are temporary until GetLayer() always returns non-null. |
| 123 bool GetLayerTargetVisibility(); | 121 bool GetLayerTargetVisibility(); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 361 |
| 364 // If true the minimum size is 0x0, default is minimum size comes from widget. | 362 // If true the minimum size is 0x0, default is minimum size comes from widget. |
| 365 bool use_empty_minimum_size_for_testing_; | 363 bool use_empty_minimum_size_for_testing_; |
| 366 | 364 |
| 367 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 365 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
| 368 }; | 366 }; |
| 369 | 367 |
| 370 } // namespace ash | 368 } // namespace ash |
| 371 | 369 |
| 372 #endif // ASH_WM_WINDOW_H_ | 370 #endif // ASH_WM_WINDOW_H_ |
| OLD | NEW |