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 18 matching lines...) Expand all Loading... |
29 class Rect; | 29 class Rect; |
30 class Size; | 30 class Size; |
31 class Transform; | 31 class Transform; |
32 } | 32 } |
33 | 33 |
34 namespace ui { | 34 namespace ui { |
35 class EventHandler; | 35 class EventHandler; |
36 class Layer; | 36 class Layer; |
37 } | 37 } |
38 | 38 |
39 namespace views { | |
40 class View; | |
41 } | |
42 | |
43 namespace ash { | 39 namespace ash { |
44 | 40 |
45 class ImmersiveFullscreenController; | 41 class ImmersiveFullscreenController; |
46 class RootWindowController; | 42 class RootWindowController; |
47 class WmTransientWindowObserver; | 43 class WmTransientWindowObserver; |
48 class WmWindowTestApi; | 44 class WmWindowTestApi; |
49 enum class WmWindowProperty; | 45 enum class WmWindowProperty; |
50 | 46 |
51 namespace wm { | 47 namespace wm { |
52 class WindowState; | 48 class WindowState; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 void SetSnapsChildrenToPhysicalPixelBoundary(); | 300 void SetSnapsChildrenToPhysicalPixelBoundary(); |
305 | 301 |
306 // If an ancestor has been set to snap children to pixel boundaries, then | 302 // If an ancestor has been set to snap children to pixel boundaries, then |
307 // snaps the layer associated with this window to the layer associated with | 303 // snaps the layer associated with this window to the layer associated with |
308 // the ancestor. | 304 // the ancestor. |
309 void SnapToPixelBoundaryIfNecessary(); | 305 void SnapToPixelBoundaryIfNecessary(); |
310 | 306 |
311 // Makes the hit region for children slightly larger for easier resizing. | 307 // Makes the hit region for children slightly larger for easier resizing. |
312 void SetChildrenUseExtendedHitRegion(); | 308 void SetChildrenUseExtendedHitRegion(); |
313 | 309 |
314 // Returns a View that renders the contents of this window's layers. | |
315 std::unique_ptr<views::View> CreateViewWithRecreatedLayers(); | |
316 | |
317 void AddTransientWindowObserver(WmTransientWindowObserver* observer); | 310 void AddTransientWindowObserver(WmTransientWindowObserver* observer); |
318 void RemoveTransientWindowObserver(WmTransientWindowObserver* observer); | 311 void RemoveTransientWindowObserver(WmTransientWindowObserver* observer); |
319 | 312 |
320 // Adds or removes a handler to receive events targeted at this window, before | 313 // Adds or removes a handler to receive events targeted at this window, before |
321 // this window handles the events itself; the handler does not recieve events | 314 // this window handles the events itself; the handler does not recieve events |
322 // from embedded windows. This only supports windows with internal widgets; | 315 // from embedded windows. This only supports windows with internal widgets; |
323 // see ash::GetInternalWidgetForWindow(). Ownership of the handler is not | 316 // see ash::GetInternalWidgetForWindow(). Ownership of the handler is not |
324 // transferred. | 317 // transferred. |
325 // | 318 // |
326 // Also note that the target of these events is always an aura::Window. | 319 // Also note that the target of these events is always an aura::Window. |
(...skipping 30 matching lines...) Expand all Loading... |
357 | 350 |
358 // If true the minimum size is 0x0, default is minimum size comes from widget. | 351 // If true the minimum size is 0x0, default is minimum size comes from widget. |
359 bool use_empty_minimum_size_for_testing_; | 352 bool use_empty_minimum_size_for_testing_; |
360 | 353 |
361 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 354 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
362 }; | 355 }; |
363 | 356 |
364 } // namespace ash | 357 } // namespace ash |
365 | 358 |
366 #endif // ASH_WM_WINDOW_H_ | 359 #endif // ASH_WM_WINDOW_H_ |
OLD | NEW |