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

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

Issue 2645673003: Add an aura window property for Immersive fullscreen mode (Closed)
Patch Set: Fix review issues Created 3 years, 10 months 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
« ash/common/wm_window.cc ('K') | « ui/aura/client/aura_constants.cc ('k') | 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 "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
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
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
OLDNEW
« ash/common/wm_window.cc ('K') | « ui/aura/client/aura_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698