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

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

Issue 2171983002: Move processing out of AcceleratorDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wire_up_controller
Patch Set: not relative Created 4 years, 5 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 120 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
121 virtual int GetIntProperty(WmWindowProperty key) = 0; 121 virtual int GetIntProperty(WmWindowProperty key) = 0;
122 122
123 wm::WindowState* GetWindowState() { 123 wm::WindowState* GetWindowState() {
124 return const_cast<wm::WindowState*>( 124 return const_cast<wm::WindowState*>(
125 const_cast<const WmWindow*>(this)->GetWindowState()); 125 const_cast<const WmWindow*>(this)->GetWindowState());
126 } 126 }
127 virtual const wm::WindowState* GetWindowState() const = 0; 127 virtual const wm::WindowState* GetWindowState() const = 0;
128 128
129 // The implementation of this matches aura::Window::GetToplevelWindow().
129 virtual WmWindow* GetToplevelWindow() = 0; 130 virtual WmWindow* GetToplevelWindow() = 0;
131 // The implementation of this matches
132 // aura::client::ActivationClient::GetToplevelWindow().
133 virtual WmWindow* GetToplevelWindowForFocus() = 0;
130 134
131 // See aura::client::ParentWindowWithContext() for details of what this does. 135 // See aura::client::ParentWindowWithContext() for details of what this does.
132 virtual void SetParentUsingContext(WmWindow* context, 136 virtual void SetParentUsingContext(WmWindow* context,
133 const gfx::Rect& screen_bounds) = 0; 137 const gfx::Rect& screen_bounds) = 0;
134 virtual void AddChild(WmWindow* window) = 0; 138 virtual void AddChild(WmWindow* window) = 0;
135 139
136 virtual WmWindow* GetParent() = 0; 140 virtual WmWindow* GetParent() = 0;
137 141
138 WmWindow* GetTransientParent() { 142 WmWindow* GetTransientParent() {
139 return const_cast<WmWindow*>( 143 return const_cast<WmWindow*>(
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 284 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
281 virtual bool HasObserver(const WmWindowObserver* observer) const = 0; 285 virtual bool HasObserver(const WmWindowObserver* observer) const = 0;
282 286
283 protected: 287 protected:
284 virtual ~WmWindow() {} 288 virtual ~WmWindow() {}
285 }; 289 };
286 290
287 } // namespace ash 291 } // namespace ash
288 292
289 #endif // ASH_COMMON_WM_WINDOW_H_ 293 #endif // ASH_COMMON_WM_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698