OLD | NEW |
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_WINDOW_H_ | 5 #ifndef ASH_WM_WINDOW_H_ |
6 #define ASH_WM_WINDOW_H_ | 6 #define ASH_WM_WINDOW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 namespace views { | 39 namespace views { |
40 class View; | 40 class View; |
41 } | 41 } |
42 | 42 |
43 namespace ash { | 43 namespace ash { |
44 | 44 |
45 class ImmersiveFullscreenController; | 45 class ImmersiveFullscreenController; |
46 class RootWindowController; | 46 class RootWindowController; |
47 class WmLayoutManager; | |
48 class WmTransientWindowObserver; | 47 class WmTransientWindowObserver; |
49 class WmWindowTestApi; | 48 class WmWindowTestApi; |
50 enum class WmWindowProperty; | 49 enum class WmWindowProperty; |
51 | 50 |
52 namespace wm { | 51 namespace wm { |
53 class WindowState; | 52 class WindowState; |
54 } | 53 } |
55 | 54 |
56 // WmWindow abstracts away differences between ash running in classic mode | 55 // WmWindow abstracts away differences between ash running in classic mode |
57 // and ash running with aura-mus. | 56 // and ash running with aura-mus. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 WmWindow* GetTransientParent() { | 179 WmWindow* GetTransientParent() { |
181 return const_cast<WmWindow*>( | 180 return const_cast<WmWindow*>( |
182 const_cast<const WmWindow*>(this)->GetTransientParent()); | 181 const_cast<const WmWindow*>(this)->GetTransientParent()); |
183 } | 182 } |
184 const WmWindow* GetTransientParent() const; | 183 const WmWindow* GetTransientParent() const; |
185 std::vector<WmWindow*> GetTransientChildren(); | 184 std::vector<WmWindow*> GetTransientChildren(); |
186 | 185 |
187 // Moves this to the display where |event| occurred; returns true if moved. | 186 // Moves this to the display where |event| occurred; returns true if moved. |
188 bool MoveToEventRoot(const ui::Event& event); | 187 bool MoveToEventRoot(const ui::Event& event); |
189 | 188 |
190 void SetLayoutManager(std::unique_ptr<WmLayoutManager> layout_manager); | |
191 WmLayoutManager* GetLayoutManager(); | |
192 | |
193 // See wm::SetWindowVisibilityChangesAnimated() for details on what this | 189 // See wm::SetWindowVisibilityChangesAnimated() for details on what this |
194 // does. | 190 // does. |
195 void SetVisibilityChangesAnimated(); | 191 void SetVisibilityChangesAnimated(); |
196 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. | 192 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. |
197 void SetVisibilityAnimationType(int type); | 193 void SetVisibilityAnimationType(int type); |
198 void SetVisibilityAnimationDuration(base::TimeDelta delta); | 194 void SetVisibilityAnimationDuration(base::TimeDelta delta); |
199 void SetVisibilityAnimationTransition( | 195 void SetVisibilityAnimationTransition( |
200 ::wm::WindowVisibilityAnimationTransition transition); | 196 ::wm::WindowVisibilityAnimationTransition transition); |
201 void Animate(::wm::WindowAnimationType type); | 197 void Animate(::wm::WindowAnimationType type); |
202 void StopAnimatingProperty( | 198 void StopAnimatingProperty( |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 357 |
362 // If true the minimum size is 0x0, default is minimum size comes from widget. | 358 // If true the minimum size is 0x0, default is minimum size comes from widget. |
363 bool use_empty_minimum_size_for_testing_; | 359 bool use_empty_minimum_size_for_testing_; |
364 | 360 |
365 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 361 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
366 }; | 362 }; |
367 | 363 |
368 } // namespace ash | 364 } // namespace ash |
369 | 365 |
370 #endif // ASH_WM_WINDOW_H_ | 366 #endif // ASH_WM_WINDOW_H_ |
OLD | NEW |