| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/aura/mus/property_converter.h" | 5 #include "ui/aura/mus/property_converter.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "mojo/public/cpp/bindings/type_converter.h" | 8 #include "mojo/public/cpp/bindings/type_converter.h" |
| 9 #include "services/ui/public/cpp/property_type_converters.h" | 9 #include "services/ui/public/cpp/property_type_converters.h" |
| 10 #include "services/ui/public/interfaces/window_manager.mojom.h" | 10 #include "services/ui/public/interfaces/window_manager.mojom.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } // namespace | 30 } // namespace |
| 31 | 31 |
| 32 PropertyConverter::PropertyConverter() { | 32 PropertyConverter::PropertyConverter() { |
| 33 // Add known aura properties with associated mus properties. | 33 // Add known aura properties with associated mus properties. |
| 34 RegisterProperty(client::kAlwaysOnTopKey, | 34 RegisterProperty(client::kAlwaysOnTopKey, |
| 35 ui::mojom::WindowManager::kAlwaysOnTop_Property); | 35 ui::mojom::WindowManager::kAlwaysOnTop_Property); |
| 36 RegisterProperty(client::kAppIconKey, | 36 RegisterProperty(client::kAppIconKey, |
| 37 ui::mojom::WindowManager::kAppIcon_Property); | 37 ui::mojom::WindowManager::kAppIcon_Property); |
| 38 RegisterProperty(client::kAppIdKey, | 38 RegisterProperty(client::kAppIdKey, |
| 39 ui::mojom::WindowManager::kAppID_Property); | 39 ui::mojom::WindowManager::kAppID_Property); |
| 40 RegisterProperty(client::kImmersiveFullscreenKey, |
| 41 ui::mojom::WindowManager::kImmersiveFullscreen_Property); |
| 40 RegisterProperty(client::kNameKey, ui::mojom::WindowManager::kName_Property); | 42 RegisterProperty(client::kNameKey, ui::mojom::WindowManager::kName_Property); |
| 41 RegisterProperty(client::kPreferredSize, | 43 RegisterProperty(client::kPreferredSize, |
| 42 ui::mojom::WindowManager::kPreferredSize_Property); | 44 ui::mojom::WindowManager::kPreferredSize_Property); |
| 43 RegisterProperty(client::kResizeBehaviorKey, | 45 RegisterProperty(client::kResizeBehaviorKey, |
| 44 ui::mojom::WindowManager::kResizeBehavior_Property); | 46 ui::mojom::WindowManager::kResizeBehavior_Property); |
| 45 RegisterProperty(client::kRestoreBoundsKey, | 47 RegisterProperty(client::kRestoreBoundsKey, |
| 46 ui::mojom::WindowManager::kRestoreBounds_Property); | 48 ui::mojom::WindowManager::kRestoreBounds_Property); |
| 47 RegisterProperty(client::kShowStateKey, | 49 RegisterProperty(client::kShowStateKey, |
| 48 ui::mojom::WindowManager::kShowState_Property); | 50 ui::mojom::WindowManager::kShowState_Property); |
| 49 RegisterProperty(client::kTitleKey, | 51 RegisterProperty(client::kTitleKey, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 string_properties_[property] = transport_name; | 259 string_properties_[property] = transport_name; |
| 258 } | 260 } |
| 259 | 261 |
| 260 void PropertyConverter::RegisterProperty( | 262 void PropertyConverter::RegisterProperty( |
| 261 const WindowProperty<base::string16*>* property, | 263 const WindowProperty<base::string16*>* property, |
| 262 const char* transport_name) { | 264 const char* transport_name) { |
| 263 string16_properties_[property] = transport_name; | 265 string16_properties_[property] = transport_name; |
| 264 } | 266 } |
| 265 | 267 |
| 266 } // namespace aura | 268 } // namespace aura |
| OLD | NEW |