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

Side by Side Diff: ui/aura/client/aura_constants.h

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues. Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_AURA_CLIENT_AURA_CONSTANTS_H_ 5 #ifndef UI_AURA_CLIENT_AURA_CONSTANTS_H_
6 #define UI_AURA_CLIENT_AURA_CONSTANTS_H_ 6 #define UI_AURA_CLIENT_AURA_CONSTANTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
12 #include "ui/aura/aura_export.h" 12 #include "ui/aura/aura_export.h"
13 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
14 #include "ui/base/ui_base_types.h" 14 #include "ui/base/ui_base_types.h"
15 15
16 namespace ui { 16 namespace ui {
17 namespace mojom { 17 namespace mojom {
18 enum class WindowType; 18 enum class WindowType;
19 } 19 }
20 } 20 }
21 21
22 namespace aura { 22 namespace aura {
23 namespace client { 23 namespace client {
24 24
25 enum class WindowPinType {
26 NONE,
27 PINNED,
28 TRUSTED_PINNED,
29 };
30
25 enum class WindowEmbedType { 31 enum class WindowEmbedType {
26 NONE, 32 NONE,
27 EMBED_IN_OWNER, 33 EMBED_IN_OWNER,
28 TOP_LEVEL_IN_WM, 34 TOP_LEVEL_IN_WM,
29 }; 35 };
30 36
31 // Alphabetical sort. 37 // Alphabetical sort.
32 38
33 // A property key to store whether accessibility focus falls back to widget or 39 // A property key to store whether accessibility focus falls back to widget or
34 // not. 40 // not.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // view is the tab strip for tabbed browser windows, the toolbar for popups, 123 // view is the tab strip for tabbed browser windows, the toolbar for popups,
118 // the web contents for app windows and varies for fullscreen windows. 124 // the web contents for app windows and varies for fullscreen windows.
119 AURA_EXPORT extern const WindowProperty<int>* const kTopViewInset; 125 AURA_EXPORT extern const WindowProperty<int>* const kTopViewInset;
120 126
121 // The color of the window header. 127 // The color of the window header.
122 AURA_EXPORT extern const WindowProperty<SkColor>* const kTopViewColor; 128 AURA_EXPORT extern const WindowProperty<SkColor>* const kTopViewColor;
123 129
124 // A property key to store the window icon, typically 16x16 for title bars. 130 // A property key to store the window icon, typically 16x16 for title bars.
125 AURA_EXPORT extern const WindowProperty<gfx::ImageSkia*>* const kWindowIconKey; 131 AURA_EXPORT extern const WindowProperty<gfx::ImageSkia*>* const kWindowIconKey;
126 132
133 // A property key to store aura::client::WindowPinType for a window.
134 // When setting this property to PINNED or TRUSTED_PINNED, the window manager
135 // will try to fullscreen the window and pin it on the top of the screen. If the
136 // window manager failed to do it, the property will be restored to NONE. When
137 // setting this property to NONE, the window manager will restore the window.
138 AURA_EXPORT extern const WindowProperty<WindowPinType>* const kWindowPinTypeKey;
139
127 // Indicates the type of embedding within the given window. 140 // Indicates the type of embedding within the given window.
128 AURA_EXPORT extern const WindowProperty<WindowEmbedType>* const kEmbedType; 141 AURA_EXPORT extern const WindowProperty<WindowEmbedType>* const kEmbedType;
129 142
130 AURA_EXPORT extern const WindowProperty<ui::mojom::WindowType>* const 143 AURA_EXPORT extern const WindowProperty<ui::mojom::WindowType>* const
131 kWindowTypeKey; 144 kWindowTypeKey;
132 145
133 // Alphabetical sort. 146 // Alphabetical sort.
134 147
135 } // namespace client 148 } // namespace client
136 } // namespace aura 149 } // namespace aura
137 150
138 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ 151 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698