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

Unified Diff: ash/mus/container_ids.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/container_ids.h ('k') | ash/mus/disconnected_app_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/container_ids.cc
diff --git a/ash/mus/container_ids.cc b/ash/mus/container_ids.cc
deleted file mode 100644
index 554363ffc892c3750d9db50358544613aad75a0f..0000000000000000000000000000000000000000
--- a/ash/mus/container_ids.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/mus/container_ids.h"
-
-#include "ash/common/shell_window_ids.h"
-#include "ash/public/interfaces/container.mojom.h"
-
-using ash::mojom::Container;
-
-namespace ash {
-namespace mus {
-
-int MashContainerToAshShellWindowId(Container container) {
- switch (container) {
- case Container::WALLPAPER:
- return kShellWindowId_WallpaperContainer;
-
- case Container::USER_PRIVATE_SHELF:
- return kShellWindowId_ShelfContainer;
-
- case Container::LOGIN_WINDOWS:
- return kShellWindowId_LockScreenContainer;
-
- case Container::STATUS:
- return kShellWindowId_StatusContainer;
-
- case Container::BUBBLES:
- // TODO(sky): this mapping isn't right, but BUBBLES should go away once
- // http://crbug.com/616859 lands.
- return kShellWindowId_SettingBubbleContainer;
-
- case Container::MENUS:
- return kShellWindowId_MenuContainer;
-
- case Container::DRAG_AND_TOOLTIPS:
- return kShellWindowId_DragImageAndTooltipContainer;
-
- case Container::OVERLAY:
- return kShellWindowId_OverlayContainer;
- }
- return kShellWindowId_Invalid;
-}
-
-} // namespace mus
-} // namespace ash
« no previous file with comments | « ash/mus/container_ids.h ('k') | ash/mus/disconnected_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698