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_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_H_ |
6 #define ASH_COMMON_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WINDOW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 WmWindow* GetRootWindow() { | 106 WmWindow* GetRootWindow() { |
107 return const_cast<WmWindow*>( | 107 return const_cast<WmWindow*>( |
108 const_cast<const WmWindow*>(this)->GetRootWindow()); | 108 const_cast<const WmWindow*>(this)->GetRootWindow()); |
109 } | 109 } |
110 const WmWindow* GetRootWindow() const; | 110 const WmWindow* GetRootWindow() const; |
111 RootWindowController* GetRootWindowController(); | 111 RootWindowController* GetRootWindowController(); |
112 | 112 |
113 // TODO(sky): fix constness. | 113 // TODO(sky): fix constness. |
114 WmShell* GetShell() const; | 114 WmShell* GetShell() const; |
115 | 115 |
116 // Used for debugging. | |
117 void SetName(const char* name); | |
118 std::string GetName() const; | |
119 | |
120 void SetTitle(const base::string16& title); | |
121 base::string16 GetTitle() const; | |
122 | |
123 // See shell_window_ids.h for list of known ids. | 116 // See shell_window_ids.h for list of known ids. |
124 void SetShellWindowId(int id); | 117 void SetShellWindowId(int id); |
125 int GetShellWindowId() const; | 118 int GetShellWindowId() const; |
126 WmWindow* GetChildByShellWindowId(int id); | 119 WmWindow* GetChildByShellWindowId(int id); |
127 | 120 |
128 ui::wm::WindowType GetType() const; | 121 ui::wm::WindowType GetType() const; |
129 int GetAppType() const; | 122 int GetAppType() const; |
130 void SetAppType(int app_type) const; | 123 void SetAppType(int app_type) const; |
131 | 124 |
132 ui::Layer* GetLayer(); | 125 ui::Layer* GetLayer(); |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 372 |
380 // If true the minimum size is 0x0, default is minimum size comes from widget. | 373 // If true the minimum size is 0x0, default is minimum size comes from widget. |
381 bool use_empty_minimum_size_for_testing_; | 374 bool use_empty_minimum_size_for_testing_; |
382 | 375 |
383 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 376 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
384 }; | 377 }; |
385 | 378 |
386 } // namespace ash | 379 } // namespace ash |
387 | 380 |
388 #endif // ASH_COMMON_WM_WINDOW_H_ | 381 #endif // ASH_COMMON_WM_WINDOW_H_ |
OLD | NEW |