| OLD | NEW |
| 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 class FocusClient; |
| 24 | 25 |
| 25 enum class WindowEmbedType { | 26 enum class WindowEmbedType { |
| 26 NONE, | 27 NONE, |
| 27 EMBED_IN_OWNER, | 28 EMBED_IN_OWNER, |
| 28 TOP_LEVEL_IN_WM, | 29 TOP_LEVEL_IN_WM, |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 // Alphabetical sort. | 32 // Alphabetical sort. |
| 32 | 33 |
| 33 // A property key to store whether accessibility focus falls back to widget or | 34 // A property key to store whether accessibility focus falls back to widget or |
| (...skipping 21 matching lines...) Expand all Loading... |
| 55 // A property key to store if a window is a constrained window or not. | 56 // A property key to store if a window is a constrained window or not. |
| 56 AURA_EXPORT extern const WindowProperty<bool>* const kConstrainedWindowKey; | 57 AURA_EXPORT extern const WindowProperty<bool>* const kConstrainedWindowKey; |
| 57 | 58 |
| 58 // A property key to store if a window was created by a user gesture. | 59 // A property key to store if a window was created by a user gesture. |
| 59 AURA_EXPORT extern const WindowProperty<bool>* const kCreatedByUserGesture; | 60 AURA_EXPORT extern const WindowProperty<bool>* const kCreatedByUserGesture; |
| 60 | 61 |
| 61 // A property key to indicate that a window should show that it deserves | 62 // A property key to indicate that a window should show that it deserves |
| 62 // attention. | 63 // attention. |
| 63 AURA_EXPORT extern const WindowProperty<bool>* const kDrawAttentionKey; | 64 AURA_EXPORT extern const WindowProperty<bool>* const kDrawAttentionKey; |
| 64 | 65 |
| 66 // A property key to store the focus client on the window. |
| 67 AURA_EXPORT extern const WindowProperty<FocusClient*>* const kFocusClientKey; |
| 68 |
| 65 // A property key to store the host window of a window. This lets | 69 // A property key to store the host window of a window. This lets |
| 66 // WebContentsViews find the windows that should constrain NPAPI plugins. | 70 // WebContentsViews find the windows that should constrain NPAPI plugins. |
| 67 AURA_EXPORT extern const WindowProperty<Window*>* const kHostWindowKey; | 71 AURA_EXPORT extern const WindowProperty<Window*>* const kHostWindowKey; |
| 68 | 72 |
| 69 // A property key to indicate that a window should be in immersive mode when the | 73 // A property key to indicate that a window should be in immersive mode when the |
| 70 // window enters the fullscreen mode. The immersive fullscreen mode is slightly | 74 // window enters the fullscreen mode. The immersive fullscreen mode is slightly |
| 71 // different from the normal fullscreen mode by allowing the user to reveal the | 75 // different from the normal fullscreen mode by allowing the user to reveal the |
| 72 // top portion of the window through a touch / mouse gesture. | 76 // top portion of the window through a touch / mouse gesture. |
| 73 AURA_EXPORT extern const WindowProperty<bool>* const kImmersiveFullscreenKey; | 77 AURA_EXPORT extern const WindowProperty<bool>* const kImmersiveFullscreenKey; |
| 74 | 78 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 133 |
| 130 AURA_EXPORT extern const WindowProperty<ui::mojom::WindowType>* const | 134 AURA_EXPORT extern const WindowProperty<ui::mojom::WindowType>* const |
| 131 kWindowTypeKey; | 135 kWindowTypeKey; |
| 132 | 136 |
| 133 // Alphabetical sort. | 137 // Alphabetical sort. |
| 134 | 138 |
| 135 } // namespace client | 139 } // namespace client |
| 136 } // namespace aura | 140 } // namespace aura |
| 137 | 141 |
| 138 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ | 142 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ |
| OLD | NEW |