Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: ash/wm/common/wm_window.h

Issue 1920153003: Starts splitting out shell window ids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prune_docked_layout_deps
Patch Set: merge 2 trunk Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/common/wm_shell_window_ids.h ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 60 // Used for debugging.
61 virtual void SetName(const std::string& name) = 0; 61 virtual void SetName(const std::string& name) = 0;
62 62
63 // See wm_shell_window_ids.h for list of known ids.
63 virtual void SetShellWindowId(int id) = 0; 64 virtual void SetShellWindowId(int id) = 0;
64 virtual int GetShellWindowId() = 0; 65 virtual int GetShellWindowId() = 0;
65 virtual WmWindow* GetChildByShellWindowId(int id) = 0; 66 virtual WmWindow* GetChildByShellWindowId(int id) = 0;
66 67
67 virtual ui::wm::WindowType GetType() const = 0; 68 virtual ui::wm::WindowType GetType() const = 0;
68 69
69 // TODO(sky): seems like this shouldn't be exposed. 70 // TODO(sky): seems like this shouldn't be exposed.
70 virtual ui::Layer* GetLayer() = 0; 71 virtual ui::Layer* GetLayer() = 0;
71 72
72 virtual gfx::Display GetDisplayNearestWindow() = 0; 73 virtual gfx::Display GetDisplayNearestWindow() = 0;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 201 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
201 202
202 protected: 203 protected:
203 virtual ~WmWindow() {} 204 virtual ~WmWindow() {}
204 }; 205 };
205 206
206 } // namespace wm 207 } // namespace wm
207 } // namespace ash 208 } // namespace ash
208 209
209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 210 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_shell_window_ids.h ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698