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

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: remove BUILD.gn again Created 4 years, 6 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_types.h ('k') | ash/wm/common/wm_window_observer.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
11 #include "ash/wm/common/ash_wm_common_export.h" 11 #include "ash/ash_export.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "ui/base/ui_base_types.h" 14 #include "ui/base/ui_base_types.h"
15 #include "ui/compositor/layer_animation_element.h" 15 #include "ui/compositor/layer_animation_element.h"
16 #include "ui/wm/core/window_animations.h" 16 #include "ui/wm/core/window_animations.h"
17 #include "ui/wm/public/window_types.h" 17 #include "ui/wm/public/window_types.h"
18 18
19 namespace display { 19 namespace display {
20 class Display; 20 class Display;
21 } 21 }
(...skipping 15 matching lines...) Expand all
37 class WMEvent; 37 class WMEvent;
38 class WmGlobals; 38 class WmGlobals;
39 class WmLayoutManager; 39 class WmLayoutManager;
40 class WmRootWindowController; 40 class WmRootWindowController;
41 class WmWindowObserver; 41 class WmWindowObserver;
42 enum class WmWindowProperty; 42 enum class WmWindowProperty;
43 class WindowState; 43 class WindowState;
44 44
45 // This class exists as a porting layer to allow ash/wm to work with 45 // This class exists as a porting layer to allow ash/wm to work with
46 // aura::Window or mus::Window. See aura::Window for details on the functions. 46 // aura::Window or mus::Window. See aura::Window for details on the functions.
47 class ASH_WM_COMMON_EXPORT WmWindow { 47 class ASH_EXPORT WmWindow {
48 public: 48 public:
49 WmWindow* GetRootWindow() { 49 WmWindow* GetRootWindow() {
50 return const_cast<WmWindow*>( 50 return const_cast<WmWindow*>(
51 const_cast<const WmWindow*>(this)->GetRootWindow()); 51 const_cast<const WmWindow*>(this)->GetRootWindow());
52 } 52 }
53 virtual const WmWindow* GetRootWindow() const = 0; 53 virtual const WmWindow* GetRootWindow() const = 0;
54 virtual WmRootWindowController* GetRootWindowController() = 0; 54 virtual WmRootWindowController* GetRootWindowController() = 0;
55 55
56 // TODO(sky): fix constness. 56 // TODO(sky): fix constness.
57 virtual WmGlobals* GetGlobals() const = 0; 57 virtual WmGlobals* GetGlobals() const = 0;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 218 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
219 219
220 protected: 220 protected:
221 virtual ~WmWindow() {} 221 virtual ~WmWindow() {}
222 }; 222 };
223 223
224 } // namespace wm 224 } // namespace wm
225 } // namespace ash 225 } // namespace ash
226 226
227 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 227 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698