| 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 #include "mash/wm/property_util.h" | 5 #include "mash/wm/property_util.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "components/mus/public/cpp/property_type_converters.h" | 9 #include "components/mus/public/cpp/property_type_converters.h" |
| 10 #include "components/mus/public/cpp/window_property.h" | 10 #include "components/mus/public/cpp/window_property.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 mus::mojom::WindowManager::kAppID_Property); | 197 mus::mojom::WindowManager::kAppID_Property); |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool GetWindowIgnoredByShelf(mus::Window* window) { | 200 bool GetWindowIgnoredByShelf(mus::Window* window) { |
| 201 return window->HasSharedProperty( | 201 return window->HasSharedProperty( |
| 202 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) && | 202 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) && |
| 203 window->GetSharedProperty<bool>( | 203 window->GetSharedProperty<bool>( |
| 204 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property); | 204 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void SetAlwaysOnTop(mus::Window* window, bool value) { |
| 208 window->SetSharedProperty<bool>( |
| 209 mus::mojom::WindowManager::kAlwaysOnTop_Property, value); |
| 210 } |
| 211 |
| 212 bool IsAlwaysOnTop(mus::Window* window) { |
| 213 return window->HasSharedProperty( |
| 214 mus::mojom::WindowManager::kAlwaysOnTop_Property) && |
| 215 window->GetSharedProperty<bool>( |
| 216 mus::mojom::WindowManager::kAlwaysOnTop_Property); |
| 217 } |
| 218 |
| 207 } // namespace wm | 219 } // namespace wm |
| 208 } // namespace mash | 220 } // namespace mash |
| OLD | NEW |