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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 RegisterPrimitiveProperty(client::kResizeBehaviorKey, | 80 RegisterPrimitiveProperty(client::kResizeBehaviorKey, |
81 ui::mojom::WindowManager::kResizeBehavior_Property, | 81 ui::mojom::WindowManager::kResizeBehavior_Property, |
82 base::Bind(&ValidateResizeBehaviour)); | 82 base::Bind(&ValidateResizeBehaviour)); |
83 RegisterPrimitiveProperty(client::kShowStateKey, | 83 RegisterPrimitiveProperty(client::kShowStateKey, |
84 ui::mojom::WindowManager::kShowState_Property, | 84 ui::mojom::WindowManager::kShowState_Property, |
85 base::Bind(&ValidateShowState)); | 85 base::Bind(&ValidateShowState)); |
86 RegisterRectProperty(client::kRestoreBoundsKey, | 86 RegisterRectProperty(client::kRestoreBoundsKey, |
87 ui::mojom::WindowManager::kRestoreBounds_Property); | 87 ui::mojom::WindowManager::kRestoreBounds_Property); |
88 RegisterSizeProperty(client::kPreferredSize, | 88 RegisterSizeProperty(client::kPreferredSize, |
89 ui::mojom::WindowManager::kPreferredSize_Property); | 89 ui::mojom::WindowManager::kPreferredSize_Property); |
| 90 RegisterSizeProperty(client::kMinimumSize, |
| 91 ui::mojom::WindowManager::kMinimumSize_Property); |
90 RegisterStringProperty(client::kNameKey, | 92 RegisterStringProperty(client::kNameKey, |
91 ui::mojom::WindowManager::kName_Property); | 93 ui::mojom::WindowManager::kName_Property); |
92 RegisterString16Property(client::kTitleKey, | 94 RegisterString16Property(client::kTitleKey, |
93 ui::mojom::WindowManager::kWindowTitle_Property); | 95 ui::mojom::WindowManager::kWindowTitle_Property); |
94 } | 96 } |
95 | 97 |
96 PropertyConverter::~PropertyConverter() {} | 98 PropertyConverter::~PropertyConverter() {} |
97 | 99 |
98 bool PropertyConverter::IsTransportNameRegistered( | 100 bool PropertyConverter::IsTransportNameRegistered( |
99 const std::string& name) const { | 101 const std::string& name) const { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 321 } |
320 | 322 |
321 void PropertyConverter::RegisterString16Property( | 323 void PropertyConverter::RegisterString16Property( |
322 const WindowProperty<base::string16*>* property, | 324 const WindowProperty<base::string16*>* property, |
323 const char* transport_name) { | 325 const char* transport_name) { |
324 string16_properties_[property] = transport_name; | 326 string16_properties_[property] = transport_name; |
325 transport_names_.insert(transport_name); | 327 transport_names_.insert(transport_name); |
326 } | 328 } |
327 | 329 |
328 } // namespace aura | 330 } // namespace aura |
OLD | NEW |