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

Side by Side Diff: mash/wm/property_util.cc

Issue 1980593002: Changes container names and adds a couple of more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change include Created 4 years, 7 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
« no previous file with comments | « mash/wm/container_ids.cc ('k') | mash/wm/public/interfaces/container.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mash/wm/property_util.h" 5 #include "mash/wm/property_util.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "components/mus/public/cpp/property_type_converters.h" 9 #include "components/mus/public/cpp/property_type_converters.h"
10 #include "components/mus/public/cpp/window_property.h" 10 #include "components/mus/public/cpp/window_property.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 mus::mojom::WindowManager::kPreferredSize_Property); 67 mus::mojom::WindowManager::kPreferredSize_Property);
68 } 68 }
69 return gfx::Size(); 69 return gfx::Size();
70 } 70 }
71 71
72 mojom::Container GetRequestedContainer(const mus::Window* window) { 72 mojom::Container GetRequestedContainer(const mus::Window* window) {
73 if (window->HasSharedProperty(mojom::kWindowContainer_Property)) { 73 if (window->HasSharedProperty(mojom::kWindowContainer_Property)) {
74 return static_cast<mojom::Container>( 74 return static_cast<mojom::Container>(
75 window->GetSharedProperty<int32_t>(mojom::kWindowContainer_Property)); 75 window->GetSharedProperty<int32_t>(mojom::kWindowContainer_Property));
76 } 76 }
77 return mojom::Container::USER_WINDOWS; 77 return mojom::Container::USER_PRIVATE_WINDOWS;
78 } 78 }
79 79
80 int32_t GetResizeBehavior(const mus::Window* window) { 80 int32_t GetResizeBehavior(const mus::Window* window) {
81 if (window->HasSharedProperty( 81 if (window->HasSharedProperty(
82 mus::mojom::WindowManager::kResizeBehavior_Property)) { 82 mus::mojom::WindowManager::kResizeBehavior_Property)) {
83 return window->GetSharedProperty<int32_t>( 83 return window->GetSharedProperty<int32_t>(
84 mus::mojom::WindowManager::kResizeBehavior_Property); 84 mus::mojom::WindowManager::kResizeBehavior_Property);
85 } 85 }
86 return mus::mojom::kResizeBehaviorNone; 86 return mus::mojom::kResizeBehaviorNone;
87 } 87 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 bool GetWindowIgnoredByShelf(mus::Window* window) { 200 bool GetWindowIgnoredByShelf(mus::Window* window) {
201 return window->HasSharedProperty( 201 return window->HasSharedProperty(
202 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) && 202 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) &&
203 window->GetSharedProperty<bool>( 203 window->GetSharedProperty<bool>(
204 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property); 204 mus::mojom::WindowManager::kWindowIgnoredByShelf_Property);
205 } 205 }
206 206
207 } // namespace wm 207 } // namespace wm
208 } // namespace mash 208 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/container_ids.cc ('k') | mash/wm/public/interfaces/container.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698