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

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

Issue 1984293002: Random fixes for mash bridge classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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/bridge/wm_window_mus.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 "mash/wm/container_ids.h" 5 #include "mash/wm/container_ids.h"
6 6
7 #include "ash/wm/common/wm_shell_window_ids.h" 7 #include "ash/wm/common/wm_shell_window_ids.h"
8 #include "mash/wm/public/interfaces/container.mojom.h" 8 #include "mash/wm/public/interfaces/container.mojom.h"
9 9
10 namespace mash { 10 namespace mash {
11 namespace wm { 11 namespace wm {
12 12
13 const mojom::Container kActivationContainers[] = { 13 const mojom::Container kActivationContainers[] = {
14 // TODO(sky): figure out right set of containers. I suspect this should be 14 // TODO(sky): figure out right set of containers. I suspect this should be
15 // all non containers. 15 // all non containers.
16 mojom::Container::USER_PRIVATE, 16 mojom::Container::USER_PRIVATE_WINDOWS,
17 mojom::Container::USER_PRIVATE_ALWAYS_ON_TOP_WINDOWS,
18 mojom::Container::USER_PRIVATE_DOCKED_WINDOWS,
19 mojom::Container::USER_PRIVATE_PRESENTATION_WINDOWS,
20 mojom::Container::USER_PRIVATE_PANELS,
21 mojom::Container::USER_PRIVATE_APP_LIST,
22 mojom::Container::USER_PRIVATE_SYSTEM_MODAL,
17 // Bubble windows must be allowed to activate because some of them rely on 23 // Bubble windows must be allowed to activate because some of them rely on
18 // deactivation to close. 24 // deactivation to close.
19 mojom::Container::BUBBLES, 25 mojom::Container::BUBBLES,
20 }; 26 };
21 27
22 const size_t kNumActivationContainers = arraysize(kActivationContainers); 28 const size_t kNumActivationContainers = arraysize(kActivationContainers);
23 29
24 mojom::Container AshContainerToMashContainer(int ash_id) { 30 mojom::Container AshContainerToMashContainer(int ash_id) {
25 switch (ash_id) { 31 switch (ash_id) {
26 case ash::kShellWindowId_UnparentedControlContainer: 32 case ash::kShellWindowId_UnparentedControlContainer:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return ash::kShellWindowId_DragImageAndTooltipContainer; 141 return ash::kShellWindowId_DragImageAndTooltipContainer;
136 142
137 case mojom::Container::COUNT: 143 case mojom::Container::COUNT:
138 return kUnknownAshId; 144 return kUnknownAshId;
139 } 145 }
140 return kUnknownAshId; 146 return kUnknownAshId;
141 } 147 }
142 148
143 } // namespace wm 149 } // namespace wm
144 } // namespace mash 150 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/bridge/wm_window_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698