| 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_constants.mojom.h" | 9 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
| 10 #include "mash/wm/public/interfaces/ash_window_type.mojom.h" | 10 #include "mash/wm/public/interfaces/ash_window_type.mojom.h" |
| 11 #include "mash/wm/public/interfaces/container.mojom.h" | 11 #include "mash/wm/public/interfaces/container.mojom.h" |
| 12 #include "ui/wm/public/window_types.h" |
| 12 | 13 |
| 13 namespace gfx { | 14 namespace gfx { |
| 14 class Rect; | 15 class Rect; |
| 15 class Size; | 16 class Size; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace mus { | 19 namespace mus { |
| 19 class Window; | 20 class Window; |
| 20 } | 21 } |
| 21 | 22 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); | 46 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); |
| 46 gfx::Rect GetRestoreBounds(const mus::Window* window); | 47 gfx::Rect GetRestoreBounds(const mus::Window* window); |
| 47 | 48 |
| 48 void SetShadow(mus::Window* window, Shadow* shadow); | 49 void SetShadow(mus::Window* window, Shadow* shadow); |
| 49 Shadow* GetShadow(const mus::Window* window); | 50 Shadow* GetShadow(const mus::Window* window); |
| 50 | 51 |
| 51 mus::mojom::WindowType GetWindowType(const mus::Window* window); | 52 mus::mojom::WindowType GetWindowType(const mus::Window* window); |
| 52 mus::mojom::WindowType GetWindowType( | 53 mus::mojom::WindowType GetWindowType( |
| 53 const mus::Window::SharedProperties& window); | 54 const mus::Window::SharedProperties& window); |
| 54 | 55 |
| 56 ui::wm::WindowType GetWmWindowType(const mus::Window* window); |
| 57 |
| 55 mojom::AshWindowType GetAshWindowType(const mus::Window* window); | 58 mojom::AshWindowType GetAshWindowType(const mus::Window* window); |
| 56 | 59 |
| 57 base::string16 GetWindowTitle(const mus::Window* window); | 60 base::string16 GetWindowTitle(const mus::Window* window); |
| 58 | 61 |
| 59 mojo::Array<uint8_t> GetWindowAppIcon(const mus::Window* window); | 62 mojo::Array<uint8_t> GetWindowAppIcon(const mus::Window* window); |
| 60 | 63 |
| 61 void SetAppID(mus::Window* window, const base::string16& app_id); | 64 void SetAppID(mus::Window* window, const base::string16& app_id); |
| 62 base::string16 GetAppID(const mus::Window* window); | 65 base::string16 GetAppID(const mus::Window* window); |
| 63 | 66 |
| 64 bool GetWindowIgnoredByShelf(mus::Window* window); | 67 bool GetWindowIgnoredByShelf(mus::Window* window); |
| 65 | 68 |
| 66 } // namespace wm | 69 } // namespace wm |
| 67 } // namespace mash | 70 } // namespace mash |
| 68 | 71 |
| 69 #endif // MASH_WM_PROPERTY_UTIL_H_ | 72 #endif // MASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |