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

Side by Side Diff: ash/mus/property_util.cc

Issue 2277563002: Wires up immersive mode for chrome and mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 3 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
OLDNEW
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 "services/ui/public/cpp/property_type_converters.h" 10 #include "services/ui/public/cpp/property_type_converters.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 ui::mojom::WindowManager::kAlwaysOnTop_Property); 239 ui::mojom::WindowManager::kAlwaysOnTop_Property);
240 } 240 }
241 241
242 bool ShouldRemoveStandardFrame(ui::Window* window) { 242 bool ShouldRemoveStandardFrame(ui::Window* window) {
243 return window->HasSharedProperty( 243 return window->HasSharedProperty(
244 ui::mojom::WindowManager::kRemoveStandardFrame_Property) && 244 ui::mojom::WindowManager::kRemoveStandardFrame_Property) &&
245 window->GetSharedProperty<bool>( 245 window->GetSharedProperty<bool>(
246 ui::mojom::WindowManager::kRemoveStandardFrame_Property); 246 ui::mojom::WindowManager::kRemoveStandardFrame_Property);
247 } 247 }
248 248
249 bool ShouldRenderParentTitleArea(ui::Window* window) {
250 return window->HasSharedProperty(
251 ui::mojom::WindowManager::kRendererParentTitleArea_Property) &&
252 window->GetSharedProperty<bool>(
253 ui::mojom::WindowManager::kRendererParentTitleArea_Property);
254 }
255
249 } // namespace mus 256 } // namespace mus
250 } // namespace ash 257 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698