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

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

Issue 2350953009: Centralizes more shared code between ash and mash (Closed)
Patch Set: feedback Created 4 years, 3 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/common/wm_root_window_controller.cc ('k') | ash/mus/bridge/wm_root_window_controller_mus.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_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // The implementation of this matches aura::Window::GetToplevelWindow(). 147 // The implementation of this matches aura::Window::GetToplevelWindow().
148 virtual WmWindow* GetToplevelWindow() = 0; 148 virtual WmWindow* GetToplevelWindow() = 0;
149 // The implementation of this matches 149 // The implementation of this matches
150 // aura::client::ActivationClient::GetToplevelWindow(). 150 // aura::client::ActivationClient::GetToplevelWindow().
151 virtual WmWindow* GetToplevelWindowForFocus() = 0; 151 virtual WmWindow* GetToplevelWindowForFocus() = 0;
152 152
153 // See aura::client::ParentWindowWithContext() for details of what this does. 153 // See aura::client::ParentWindowWithContext() for details of what this does.
154 virtual void SetParentUsingContext(WmWindow* context, 154 virtual void SetParentUsingContext(WmWindow* context,
155 const gfx::Rect& screen_bounds) = 0; 155 const gfx::Rect& screen_bounds) = 0;
156 virtual void AddChild(WmWindow* window) = 0; 156 virtual void AddChild(WmWindow* window) = 0;
157 virtual void RemoveChild(WmWindow* child) = 0;
157 158
158 WmWindow* GetParent() { 159 WmWindow* GetParent() {
159 return const_cast<WmWindow*>( 160 return const_cast<WmWindow*>(
160 const_cast<const WmWindow*>(this)->GetParent()); 161 const_cast<const WmWindow*>(this)->GetParent());
161 } 162 }
162 virtual const WmWindow* GetParent() const = 0; 163 virtual const WmWindow* GetParent() const = 0;
163 164
164 WmWindow* GetTransientParent() { 165 WmWindow* GetTransientParent() {
165 return const_cast<WmWindow*>( 166 return const_cast<WmWindow*>(
166 const_cast<const WmWindow*>(this)->GetTransientParent()); 167 const_cast<const WmWindow*>(this)->GetTransientParent());
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 327 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
327 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 328 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
328 329
329 protected: 330 protected:
330 virtual ~WmWindow() {} 331 virtual ~WmWindow() {}
331 }; 332 };
332 333
333 } // namespace ash 334 } // namespace ash
334 335
335 #endif // ASH_COMMON_WM_WINDOW_H_ 336 #endif // ASH_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | ash/mus/bridge/wm_root_window_controller_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698