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

Unified Diff: ash/wm/common/wm_types.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/common/wm_types.h ('k') | ash/wm/common/wm_user_metrics_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_types.cc
diff --git a/ash/wm/common/wm_types.cc b/ash/wm/common/wm_types.cc
deleted file mode 100644
index b7ea734130ebbbca4f0247cf6e854d0bd307577a..0000000000000000000000000000000000000000
--- a/ash/wm/common/wm_types.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 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/wm/common/wm_types.h"
-
-#include "base/logging.h"
-
-namespace ash {
-namespace wm {
-
-// This is to catch the change to WindowShowState.
-static_assert(ui::SHOW_STATE_END ==
- static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END),
- "show enum mismatch");
-
-WindowStateType ToWindowStateType(ui::WindowShowState state) {
- return static_cast<WindowStateType>(state);
-}
-
-ui::WindowShowState ToWindowShowState(WindowStateType type) {
- switch (type) {
- case WINDOW_STATE_TYPE_DEFAULT:
- return ui::SHOW_STATE_DEFAULT;
- case WINDOW_STATE_TYPE_NORMAL:
- case WINDOW_STATE_TYPE_RIGHT_SNAPPED:
- case WINDOW_STATE_TYPE_LEFT_SNAPPED:
- case WINDOW_STATE_TYPE_AUTO_POSITIONED:
- return ui::SHOW_STATE_NORMAL;
- case WINDOW_STATE_TYPE_DOCKED:
- return ui::SHOW_STATE_DOCKED;
- case WINDOW_STATE_TYPE_MINIMIZED:
- case WINDOW_STATE_TYPE_DOCKED_MINIMIZED:
- return ui::SHOW_STATE_MINIMIZED;
- case WINDOW_STATE_TYPE_MAXIMIZED:
- return ui::SHOW_STATE_MAXIMIZED;
- case WINDOW_STATE_TYPE_INACTIVE:
- return ui::SHOW_STATE_INACTIVE;
- case WINDOW_STATE_TYPE_FULLSCREEN:
- return ui::SHOW_STATE_FULLSCREEN;
- case WINDOW_STATE_TYPE_END:
- NOTREACHED();
- }
- NOTREACHED();
- return ui::SHOW_STATE_DEFAULT;
-}
-
-bool IsMaximizedOrFullscreenWindowStateType(WindowStateType type) {
- return type == WINDOW_STATE_TYPE_MAXIMIZED ||
- type == WINDOW_STATE_TYPE_FULLSCREEN;
-}
-
-} // namespace wm
-} // namespace ash
« no previous file with comments | « ash/wm/common/wm_types.h ('k') | ash/wm/common/wm_user_metrics_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698