OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_PROPERTY_UTIL_H_ | 5 #ifndef ASH_MUS_PROPERTY_UTIL_H_ |
6 #define ASH_MUS_PROPERTY_UTIL_H_ | 6 #define ASH_MUS_PROPERTY_UTIL_H_ |
7 | 7 |
8 #include "ash/public/interfaces/ash_window_type.mojom.h" | 8 #include "ash/public/interfaces/ash_window_type.mojom.h" |
9 #include "ash/public/interfaces/container.mojom.h" | 9 #include "ash/public/interfaces/container.mojom.h" |
10 #include "services/ui/public/cpp/window.h" | 10 #include "services/ui/public/cpp/window.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 gfx::Size GetWindowPreferredSize(const ui::Window* window); | 38 gfx::Size GetWindowPreferredSize(const ui::Window* window); |
39 | 39 |
40 // If |window| has the |kWindowContainer_Property| set as a property, then | 40 // If |window| has the |kWindowContainer_Property| set as a property, then |
41 // the value of |kWindowContainer_Property| is set in |container| and true is | 41 // the value of |kWindowContainer_Property| is set in |container| and true is |
42 // returned. Otherwise false is returned. | 42 // returned. Otherwise false is returned. |
43 bool GetRequestedContainer(const ui::Window* window, | 43 bool GetRequestedContainer(const ui::Window* window, |
44 mojom::Container* container); | 44 mojom::Container* container); |
45 | 45 |
46 // Returns a bitfield of kResizeBehavior* values from | 46 // Returns a bitfield of kResizeBehavior* values from |
47 // window_manager_constants.mojom. | 47 // window_manager_constants.mojom. |
| 48 void SetResizeBehavior(ui::Window::SharedProperties* properties, |
| 49 int32_t resize_behavior); |
48 int32_t GetResizeBehavior(const ui::Window* window); | 50 int32_t GetResizeBehavior(const ui::Window* window); |
49 | 51 |
50 void SetRestoreBounds(ui::Window* window, const gfx::Rect& bounds); | 52 void SetRestoreBounds(ui::Window* window, const gfx::Rect& bounds); |
51 gfx::Rect GetRestoreBounds(const ui::Window* window); | 53 gfx::Rect GetRestoreBounds(const ui::Window* window); |
52 | 54 |
53 void SetShadow(ui::Window* window, Shadow* shadow); | 55 void SetShadow(ui::Window* window, Shadow* shadow); |
54 Shadow* GetShadow(const ui::Window* window); | 56 Shadow* GetShadow(const ui::Window* window); |
55 | 57 |
56 ui::mojom::WindowType GetWindowType(const ui::Window* window); | 58 ui::mojom::WindowType GetWindowType(const ui::Window* window); |
57 ui::mojom::WindowType GetWindowType(const ui::Window::SharedProperties& window); | 59 ui::mojom::WindowType GetWindowType(const ui::Window::SharedProperties& window); |
(...skipping 17 matching lines...) Expand all Loading... |
75 | 77 |
76 void SetAlwaysOnTop(ui::Window* window, bool value); | 78 void SetAlwaysOnTop(ui::Window* window, bool value); |
77 bool IsAlwaysOnTop(ui::Window* window); | 79 bool IsAlwaysOnTop(ui::Window* window); |
78 | 80 |
79 bool ShouldRemoveStandardFrame(ui::Window* window); | 81 bool ShouldRemoveStandardFrame(ui::Window* window); |
80 | 82 |
81 } // namespace mus | 83 } // namespace mus |
82 } // namespace ash | 84 } // namespace ash |
83 | 85 |
84 #endif // ASH_MUS_PROPERTY_UTIL_H_ | 86 #endif // ASH_MUS_PROPERTY_UTIL_H_ |
OLD | NEW |