| 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 MASH_WM_PROPERTY_UTIL_H_ | 5 #ifndef MASH_WM_PROPERTY_UTIL_H_ |
| 6 #define MASH_WM_PROPERTY_UTIL_H_ | 6 #define MASH_WM_PROPERTY_UTIL_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/cpp/window.h" | 8 #include "components/mus/public/cpp/window.h" |
| 9 #include "components/mus/public/interfaces/window_manager.mojom.h" | 9 #include "components/mus/public/interfaces/window_manager.mojom.h" |
| 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 mus::mojom::ShowState GetWindowShowState(const mus::Window* window); | 30 mus::mojom::ShowState GetWindowShowState(const mus::Window* window); |
| 31 | 31 |
| 32 void SetWindowUserSetBounds(mus::Window* window, const gfx::Rect& bounds); | 32 void SetWindowUserSetBounds(mus::Window* window, const gfx::Rect& bounds); |
| 33 gfx::Rect GetWindowUserSetBounds(const mus::Window* window); | 33 gfx::Rect GetWindowUserSetBounds(const mus::Window* window); |
| 34 | 34 |
| 35 void SetWindowPreferredSize(mus::Window* window, const gfx::Size& size); | 35 void SetWindowPreferredSize(mus::Window* window, const gfx::Size& size); |
| 36 gfx::Size GetWindowPreferredSize(const mus::Window* window); | 36 gfx::Size GetWindowPreferredSize(const mus::Window* window); |
| 37 | 37 |
| 38 mojom::Container GetRequestedContainer(const mus::Window* window); | 38 mojom::Container GetRequestedContainer(const mus::Window* window); |
| 39 | 39 |
| 40 mus::mojom::ResizeBehavior GetResizeBehavior(const mus::Window* window); | 40 // Returns a bitfield of kResizeBehavior* values from |
| 41 // window_manager_constants.mojom. |
| 42 int32_t GetResizeBehavior(const mus::Window* window); |
| 41 | 43 |
| 42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); | 44 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); |
| 43 gfx::Rect GetRestoreBounds(const mus::Window* window); | 45 gfx::Rect GetRestoreBounds(const mus::Window* window); |
| 44 | 46 |
| 45 void SetShadow(mus::Window* window, Shadow* shadow); | 47 void SetShadow(mus::Window* window, Shadow* shadow); |
| 46 Shadow* GetShadow(mus::Window* window); | 48 Shadow* GetShadow(mus::Window* window); |
| 47 | 49 |
| 48 mus::mojom::WindowType GetWindowType(mus::Window* window); | 50 mus::mojom::WindowType GetWindowType(mus::Window* window); |
| 49 mus::mojom::WindowType GetWindowType( | 51 mus::mojom::WindowType GetWindowType( |
| 50 const mus::Window::SharedProperties& window); | 52 const mus::Window::SharedProperties& window); |
| 51 | 53 |
| 52 } // namespace wm | 54 } // namespace wm |
| 53 } // namespace mash | 55 } // namespace mash |
| 54 | 56 |
| 55 #endif // MASH_WM_PROPERTY_UTIL_H_ | 57 #endif // MASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |