| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 base::string16 GetAppID(const mus::Window* window) { | 157 base::string16 GetAppID(const mus::Window* window) { |
| 158 if (!window->HasSharedProperty(mus::mojom::WindowManager::kAppID_Property)) | 158 if (!window->HasSharedProperty(mus::mojom::WindowManager::kAppID_Property)) |
| 159 return base::string16(); | 159 return base::string16(); |
| 160 | 160 |
| 161 return window->GetSharedProperty<base::string16>( | 161 return window->GetSharedProperty<base::string16>( |
| 162 mus::mojom::WindowManager::kAppID_Property); | 162 mus::mojom::WindowManager::kAppID_Property); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool GetWindowIgnoredByShelf(mus::Window* window) { |
| 166 return window->HasSharedProperty( |
| 167 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) && |
| 168 window->GetSharedProperty<bool>( |
| 169 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property); |
| 170 } |
| 171 |
| 165 } // namespace wm | 172 } // namespace wm |
| 166 } // namespace mash | 173 } // namespace mash |
| OLD | NEW |