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

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

Issue 2018753003: Moves ash/wm/common back into ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke export 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
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
11 #include "ash/wm/common/ash_wm_common_export.h" 11 #include "ash/ash_export.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "ui/base/ui_base_types.h" 13 #include "ui/base/ui_base_types.h"
14 #include "ui/wm/core/window_animations.h" 14 #include "ui/wm/core/window_animations.h"
15 #include "ui/wm/public/window_types.h" 15 #include "ui/wm/public/window_types.h"
16 16
17 namespace display { 17 namespace display {
18 class Display; 18 class Display;
19 } 19 }
20 20
21 namespace gfx { 21 namespace gfx {
(...skipping 13 matching lines...) Expand all
35 class WmGlobals; 35 class WmGlobals;
36 class WmLayoutManager; 36 class WmLayoutManager;
37 class WmRootWindowController; 37 class WmRootWindowController;
38 class WmWindowObserver; 38 class WmWindowObserver;
39 enum class WmWindowProperty; 39 enum class WmWindowProperty;
40 class WindowState; 40 class WindowState;
41 41
42 // This class exists as a porting layer to allow ash/wm to work with 42 // This class exists as a porting layer to allow ash/wm to work with
43 // aura::Window 43 // aura::Window
44 // or mus::Window. See aura::Window for details on the functions. 44 // or mus::Window. See aura::Window for details on the functions.
45 class ASH_WM_COMMON_EXPORT WmWindow { 45 class ASH_EXPORT WmWindow {
46 public: 46 public:
47 WmWindow* GetRootWindow() { 47 WmWindow* GetRootWindow() {
48 return const_cast<WmWindow*>( 48 return const_cast<WmWindow*>(
49 const_cast<const WmWindow*>(this)->GetRootWindow()); 49 const_cast<const WmWindow*>(this)->GetRootWindow());
50 } 50 }
51 virtual const WmWindow* GetRootWindow() const = 0; 51 virtual const WmWindow* GetRootWindow() const = 0;
52 virtual WmRootWindowController* GetRootWindowController() = 0; 52 virtual WmRootWindowController* GetRootWindowController() = 0;
53 53
54 // TODO(sky): fix constness. 54 // TODO(sky): fix constness.
55 virtual WmGlobals* GetGlobals() const = 0; 55 virtual WmGlobals* GetGlobals() const = 0;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 200 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
201 201
202 protected: 202 protected:
203 virtual ~WmWindow() {} 203 virtual ~WmWindow() {}
204 }; 204 };
205 205
206 } // namespace wm 206 } // namespace wm
207 } // namespace ash 207 } // namespace ash
208 208
209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 209 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_types.h ('k') | ash/wm/common/wm_window_observer.h » ('j') | mash/wm/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698