Chromium Code Reviews| 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 int32_t GetResizeBehavior(const mus::Window* window); |
|
yzshen1
2016/01/07 19:24:52
Please add comment what does the return value mean
Sam McNally
2016/01/08 05:12:51
Done.
| |
| 41 | 41 |
| 42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); | 42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); |
| 43 gfx::Rect GetRestoreBounds(const mus::Window* window); | 43 gfx::Rect GetRestoreBounds(const mus::Window* window); |
| 44 | 44 |
| 45 void SetShadow(mus::Window* window, Shadow* shadow); | 45 void SetShadow(mus::Window* window, Shadow* shadow); |
| 46 Shadow* GetShadow(mus::Window* window); | 46 Shadow* GetShadow(mus::Window* window); |
| 47 | 47 |
| 48 mus::mojom::WindowType GetWindowType(mus::Window* window); | 48 mus::mojom::WindowType GetWindowType(mus::Window* window); |
| 49 mus::mojom::WindowType GetWindowType( | 49 mus::mojom::WindowType GetWindowType( |
| 50 const mus::Window::SharedProperties& window); | 50 const mus::Window::SharedProperties& window); |
| 51 | 51 |
| 52 } // namespace wm | 52 } // namespace wm |
| 53 } // namespace mash | 53 } // namespace mash |
| 54 | 54 |
| 55 #endif // MASH_WM_PROPERTY_UTIL_H_ | 55 #endif // MASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |