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

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

Issue 2042903002: Support app window draggable areas in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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 "components/mus/public/cpp/property_type_converters.h" 10 #include "components/mus/public/cpp/property_type_converters.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 ::mus::mojom::WindowManager::kAlwaysOnTop_Property, value); 228 ::mus::mojom::WindowManager::kAlwaysOnTop_Property, value);
229 } 229 }
230 230
231 bool IsAlwaysOnTop(::mus::Window* window) { 231 bool IsAlwaysOnTop(::mus::Window* window) {
232 return window->HasSharedProperty( 232 return window->HasSharedProperty(
233 ::mus::mojom::WindowManager::kAlwaysOnTop_Property) && 233 ::mus::mojom::WindowManager::kAlwaysOnTop_Property) &&
234 window->GetSharedProperty<bool>( 234 window->GetSharedProperty<bool>(
235 ::mus::mojom::WindowManager::kAlwaysOnTop_Property); 235 ::mus::mojom::WindowManager::kAlwaysOnTop_Property);
236 } 236 }
237 237
238 bool ShouldRemoveStandardFrame(::mus::Window* window) {
239 return window->HasSharedProperty(
240 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property) &&
241 window->GetSharedProperty<bool>(
242 ::mus::mojom::WindowManager::kRemoveStandardFrame_Property);
243 }
244
238 } // namespace mus 245 } // namespace mus
239 } // namespace ash 246 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698