| 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 "ash/mus/property_util.h" | 5 #include "ash/mus/property_util.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "ash/mus/shadow.h" | 9 #include "ash/mus/shadow.h" |
| 10 #include "components/mus/public/cpp/property_type_converters.h" | 10 #include "services/ui/public/cpp/property_type_converters.h" |
| 11 #include "components/mus/public/cpp/window_property.h" | 11 #include "services/ui/public/cpp/window_property.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(ash::mus::Shadow*, | 17 MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(ash::mus::Shadow*, |
| 18 kLocalShadowProperty, | 18 kLocalShadowProperty, |
| 19 nullptr); | 19 nullptr); |
| 20 MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(bool, kWindowIsJankyProperty, false); | 20 MUS_DEFINE_LOCAL_WINDOW_PROPERTY_KEY(bool, kWindowIsJankyProperty, false); |
| 21 | 21 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 bool ShouldRemoveStandardFrame(::mus::Window* window) { | 238 bool ShouldRemoveStandardFrame(::mus::Window* window) { |
| 239 return window->HasSharedProperty( | 239 return window->HasSharedProperty( |
| 240 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property) && | 240 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property) && |
| 241 window->GetSharedProperty<bool>( | 241 window->GetSharedProperty<bool>( |
| 242 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property); | 242 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace mus | 245 } // namespace mus |
| 246 } // namespace ash | 246 } // namespace ash |
| OLD | NEW |