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

Unified Diff: components/mus/public/interfaces/window_manager_constants.mojom

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
Index: components/mus/public/interfaces/window_manager_constants.mojom
diff --git a/components/mus/public/interfaces/window_manager_constants.mojom b/components/mus/public/interfaces/window_manager_constants.mojom
deleted file mode 100644
index acdf16b4478ad66d072f8e7a032d93cd1dab2c92..0000000000000000000000000000000000000000
--- a/components/mus/public/interfaces/window_manager_constants.mojom
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2015 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.
-
-module mus.mojom;
-
-import "ui/gfx/geometry/mojo/geometry.mojom";
-
-enum WindowManagerErrorCode {
- SUCCESS,
- ACCESS_DENIED
-};
-
-// TODO(sky): seems like this should not be defined in mus, rather in mash.
-// Only thing mus cares about is minimized and that should be expressed
-// differently.
-enum ShowState {
- DEFAULT,
- NORMAL,
- MINIMIZED,
- MAXIMIZED,
- INACTIVE,
- FULLSCREEN,
- DOCKED,
-};
-
-enum Rotation {
- VALUE_0,
- VALUE_90,
- VALUE_180,
- VALUE_270,
-};
-
-const int32 kResizeBehaviorNone = 0;
-const int32 kResizeBehaviorCanResize = 1;
-const int32 kResizeBehaviorCanMaximize = 2;
-const int32 kResizeBehaviorCanMinimize = 4;
-
-struct FrameDecorationValues {
- gfx.mojom.Insets normal_client_area_insets;
- gfx.mojom.Insets maximized_client_area_insets;
- // Max width needed to display the buttons on the title bar. The buttons are
- // aligned to the trailing edge of the titlebar.
- // TODO(sky): this API is very narrow, and assumes a particular config.
- uint32 max_title_bar_button_width;
-};
-
-enum TouchSupport {
- UNKNOWN,
- AVAILABLE,
- UNAVAILABLE,
-};
-
-struct Display {
- int64 id;
- gfx.mojom.Rect bounds;
- gfx.mojom.Rect work_area;
- float device_pixel_ratio;
- Rotation rotation;
- TouchSupport touch_support;
- bool is_primary;
- FrameDecorationValues frame_decoration_values;
-};
-
-enum WindowType {
- // These constants come from Widget::InitParams. See it for details.
- // TODO: see if we can reduce this set. For example, why do we need both
- // BUBBLE and POPUP.
- WINDOW,
- PANEL,
- WINDOW_FRAMELESS,
- CONTROL,
- POPUP,
- MENU,
- TOOLTIP,
- BUBBLE,
- DRAG,
-};

Powered by Google App Engine
This is Rietveld 408576698