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

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

Issue 1909273003: Makes PhantonWindowController use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@workspace_window_resizer
Patch Set: merge 2 trunk Created 4 years, 8 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/aura/wm_window_aura.cc ('k') | ash/wm/workspace/phantom_window_controller.h » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.cc ('k') | ash/wm/workspace/phantom_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698