Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: ui/aura/mus/property_converter.cc

Issue 2540033002: Registers client::kResizeBehaviorKey with PropertyConverter (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "mojo/public/cpp/bindings/type_converter.h" 7 #include "mojo/public/cpp/bindings/type_converter.h"
8 #include "services/ui/public/cpp/property_type_converters.h" 8 #include "services/ui/public/cpp/property_type_converters.h"
9 #include "services/ui/public/interfaces/window_manager.mojom.h" 9 #include "services/ui/public/interfaces/window_manager.mojom.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 21 matching lines...) Expand all
32 // Add known aura properties with associated mus properties. 32 // Add known aura properties with associated mus properties.
33 RegisterProperty(client::kAlwaysOnTopKey, 33 RegisterProperty(client::kAlwaysOnTopKey,
34 ui::mojom::WindowManager::kAlwaysOnTop_Property); 34 ui::mojom::WindowManager::kAlwaysOnTop_Property);
35 RegisterProperty(client::kAppIdKey, 35 RegisterProperty(client::kAppIdKey,
36 ui::mojom::WindowManager::kAppID_Property); 36 ui::mojom::WindowManager::kAppID_Property);
37 RegisterProperty(client::kExcludeFromMruKey, 37 RegisterProperty(client::kExcludeFromMruKey,
38 ui::mojom::WindowManager::kExcludeFromMru_Property); 38 ui::mojom::WindowManager::kExcludeFromMru_Property);
39 RegisterProperty(client::kNameKey, ui::mojom::WindowManager::kName_Property); 39 RegisterProperty(client::kNameKey, ui::mojom::WindowManager::kName_Property);
40 RegisterProperty(client::kPreferredSize, 40 RegisterProperty(client::kPreferredSize,
41 ui::mojom::WindowManager::kPreferredSize_Property); 41 ui::mojom::WindowManager::kPreferredSize_Property);
42 RegisterProperty(client::kResizeBehaviorKey,
43 ui::mojom::WindowManager::kResizeBehavior_Property);
42 RegisterProperty(client::kRestoreBoundsKey, 44 RegisterProperty(client::kRestoreBoundsKey,
43 ui::mojom::WindowManager::kRestoreBounds_Property); 45 ui::mojom::WindowManager::kRestoreBounds_Property);
44 RegisterProperty(client::kShowStateKey, 46 RegisterProperty(client::kShowStateKey,
45 ui::mojom::WindowManager::kShowState_Property); 47 ui::mojom::WindowManager::kShowState_Property);
46 RegisterProperty(client::kTitleKey, 48 RegisterProperty(client::kTitleKey,
47 ui::mojom::WindowManager::kWindowTitle_Property); 49 ui::mojom::WindowManager::kWindowTitle_Property);
48 } 50 }
49 51
50 PropertyConverter::~PropertyConverter() {} 52 PropertyConverter::~PropertyConverter() {}
51 53
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 string_properties_[property] = transport_name; 253 string_properties_[property] = transport_name;
252 } 254 }
253 255
254 void PropertyConverter::RegisterProperty( 256 void PropertyConverter::RegisterProperty(
255 const WindowProperty<base::string16*>* property, 257 const WindowProperty<base::string16*>* property,
256 const char* transport_name) { 258 const char* transport_name) {
257 string16_properties_[property] = transport_name; 259 string16_properties_[property] = transport_name;
258 } 260 }
259 261
260 } // namespace aura 262 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698