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 "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 void SetWindowShowState(::mus::Window* window, | 31 void SetWindowShowState(::mus::Window* window, |
32 ::mus::mojom::ShowState show_state); | 32 ::mus::mojom::ShowState show_state); |
33 ::mus::mojom::ShowState GetWindowShowState(const ::mus::Window* window); | 33 ::mus::mojom::ShowState GetWindowShowState(const ::mus::Window* window); |
34 | 34 |
35 void SetWindowUserSetBounds(::mus::Window* window, const gfx::Rect& bounds); | 35 void SetWindowUserSetBounds(::mus::Window* window, const gfx::Rect& bounds); |
36 gfx::Rect GetWindowUserSetBounds(const ::mus::Window* window); | 36 gfx::Rect GetWindowUserSetBounds(const ::mus::Window* window); |
37 | 37 |
38 void SetWindowPreferredSize(::mus::Window* window, const gfx::Size& size); | 38 void SetWindowPreferredSize(::mus::Window* window, const gfx::Size& size); |
39 gfx::Size GetWindowPreferredSize(const ::mus::Window* window); | 39 gfx::Size GetWindowPreferredSize(const ::mus::Window* window); |
40 | 40 |
41 mojom::Container GetRequestedContainer(const ::mus::Window* window); | 41 // If |window| has the |kWindowContainer_Property| set as a property, then |
| 42 // the value of |kWindowContainer_Property| is set in |container| and true is |
| 43 // returned. Otherwise false is returned. |
| 44 bool GetRequestedContainer(const ::mus::Window* window, |
| 45 mojom::Container* container); |
42 | 46 |
43 // Returns a bitfield of kResizeBehavior* values from | 47 // Returns a bitfield of kResizeBehavior* values from |
44 // window_manager_constants.mojom. | 48 // window_manager_constants.mojom. |
45 int32_t GetResizeBehavior(const ::mus::Window* window); | 49 int32_t GetResizeBehavior(const ::mus::Window* window); |
46 | 50 |
47 void SetRestoreBounds(::mus::Window* window, const gfx::Rect& bounds); | 51 void SetRestoreBounds(::mus::Window* window, const gfx::Rect& bounds); |
48 gfx::Rect GetRestoreBounds(const ::mus::Window* window); | 52 gfx::Rect GetRestoreBounds(const ::mus::Window* window); |
49 | 53 |
50 void SetShadow(::mus::Window* window, Shadow* shadow); | 54 void SetShadow(::mus::Window* window, Shadow* shadow); |
51 Shadow* GetShadow(const ::mus::Window* window); | 55 Shadow* GetShadow(const ::mus::Window* window); |
(...skipping 19 matching lines...) Expand all Loading... |
71 bool IsWindowJanky(::mus::Window* window); | 75 bool IsWindowJanky(::mus::Window* window); |
72 bool IsWindowJankyProperty(const void* key); | 76 bool IsWindowJankyProperty(const void* key); |
73 | 77 |
74 void SetAlwaysOnTop(::mus::Window* window, bool value); | 78 void SetAlwaysOnTop(::mus::Window* window, bool value); |
75 bool IsAlwaysOnTop(::mus::Window* window); | 79 bool IsAlwaysOnTop(::mus::Window* window); |
76 | 80 |
77 } // namespace mus | 81 } // namespace mus |
78 } // namespace ash | 82 } // namespace ash |
79 | 83 |
80 #endif // ASH_MUS_PROPERTY_UTIL_H_ | 84 #endif // ASH_MUS_PROPERTY_UTIL_H_ |
OLD | NEW |