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

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

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/common/wm/wm_toplevel_window_event_handler.cc ('k') | ash/common/wm/wm_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/wm_types.h
diff --git a/ash/common/wm/wm_types.h b/ash/common/wm/wm_types.h
deleted file mode 100644
index ad886d8c1c870a17eca3ef10e14b9eb44eceeb02..0000000000000000000000000000000000000000
--- a/ash/common/wm/wm_types.h
+++ /dev/null
@@ -1,66 +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.
-
-#ifndef ASH_COMMON_WM_WM_TYPES_H_
-#define ASH_COMMON_WM_WM_TYPES_H_
-
-#include "ash/ash_export.h"
-#include "ui/base/ui_base_types.h"
-
-namespace ash {
-namespace wm {
-
-// This enum defines both common show state copied from
-// ui::WindowShowState as well as new states introduced in ash.
-// The separate enum is defined here because we don't want to leak
-// these type to ui/base until they're stable and we know for sure
-// that they'll persist over time.
-enum WindowStateType {
- // Common state
- WINDOW_STATE_TYPE_DEFAULT = 0,
-
- // Normal represents a state where the position/size has been
- // specified by a use.
- WINDOW_STATE_TYPE_NORMAL,
- WINDOW_STATE_TYPE_MINIMIZED,
- WINDOW_STATE_TYPE_MAXIMIZED,
- WINDOW_STATE_TYPE_INACTIVE,
- WINDOW_STATE_TYPE_FULLSCREEN,
- WINDOW_STATE_TYPE_DOCKED,
- WINDOW_STATE_TYPE_END, // to avoid using SHOW_STATE_END
-
- // Ash specific states:
-
- WINDOW_STATE_TYPE_LEFT_SNAPPED,
- WINDOW_STATE_TYPE_RIGHT_SNAPPED,
-
- WINDOW_STATE_TYPE_DOCKED_MINIMIZED,
-
- // A window is in this state when it is automatically placed and
- // sized by the window manager. (it's newly opened, or pushed to the side
- // due to new window, for example).
- WINDOW_STATE_TYPE_AUTO_POSITIONED,
-
- // A window is pinned on top of other windows with fullscreenized.
- // Corresponding shelf should be hidden, also most of windows other than the
- // pinned one should be hidden.
- WINDOW_STATE_TYPE_PINNED,
- WINDOW_STATE_TYPE_TRUSTED_PINNED,
-};
-
-// Utility functions to convert WindowStateType <-> ui::WindowShowState.
-// Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when
-// converting to ui::WindowShowState.
-ASH_EXPORT WindowStateType ToWindowStateType(ui::WindowShowState state);
-ASH_EXPORT ui::WindowShowState ToWindowShowState(WindowStateType type);
-
-// Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED,
-// WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED.
-ASH_EXPORT bool IsMaximizedOrFullscreenOrPinnedWindowStateType(
- WindowStateType type);
-
-} // namespace wm
-} // namespace ash
-
-#endif // ASH_COMMON_WM_WM_TYPES_H_
« no previous file with comments | « ash/common/wm/wm_toplevel_window_event_handler.cc ('k') | ash/common/wm/wm_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698