| 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 "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 11 #include "ui/aura/aura_export.h" | 12 #include "ui/aura/aura_export.h" |
| 12 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 13 #include "ui/base/ui_base_types.h" | 14 #include "ui/base/ui_base_types.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 class InputMethod; | 17 class InputMethod; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace aura { | 20 namespace aura { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // should render regardless of its actual visibility state. | 63 // should render regardless of its actual visibility state. |
| 63 AURA_EXPORT extern const aura::WindowProperty<bool>* const kMirroringEnabledKey; | 64 AURA_EXPORT extern const aura::WindowProperty<bool>* const kMirroringEnabledKey; |
| 64 | 65 |
| 65 // A property key to store the host window of a window. This lets | 66 // A property key to store the host window of a window. This lets |
| 66 // WebContentsViews find the windows that should constrain NPAPI plugins. | 67 // WebContentsViews find the windows that should constrain NPAPI plugins. |
| 67 AURA_EXPORT extern const WindowProperty<Window*>* const kHostWindowKey; | 68 AURA_EXPORT extern const WindowProperty<Window*>* const kHostWindowKey; |
| 68 | 69 |
| 69 // A property key to store the window modality. | 70 // A property key to store the window modality. |
| 70 AURA_EXPORT extern const WindowProperty<ui::ModalType>* const kModalKey; | 71 AURA_EXPORT extern const WindowProperty<ui::ModalType>* const kModalKey; |
| 71 | 72 |
| 73 // A property key to store the name of the window; mostly used for debugging. |
| 74 AURA_EXPORT extern const WindowProperty<std::string*>* const kNameKey; |
| 75 |
| 72 // A property key to store the restore bounds for a window. | 76 // A property key to store the restore bounds for a window. |
| 73 AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kRestoreBoundsKey; | 77 AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kRestoreBoundsKey; |
| 74 | 78 |
| 75 // A property key to store ui::WindowShowState for restoring a window. | 79 // A property key to store ui::WindowShowState for restoring a window. |
| 76 // Used in Ash to remember the show state before the window was minimized. | 80 // Used in Ash to remember the show state before the window was minimized. |
| 77 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const | 81 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const |
| 78 kRestoreShowStateKey; | 82 kRestoreShowStateKey; |
| 79 | 83 |
| 80 // A property key to store ui::WindowShowState for a window. | 84 // A property key to store ui::WindowShowState for a window. |
| 81 // See ui/base/ui_base_types.h for its definition. | 85 // See ui/base/ui_base_types.h for its definition. |
| 82 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const | 86 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const |
| 83 kShowStateKey; | 87 kShowStateKey; |
| 84 | 88 |
| 89 // A property key to store the title of the window; sometimes shown to users. |
| 90 AURA_EXPORT extern const WindowProperty<base::string16*>* const kTitleKey; |
| 91 |
| 85 // The inset of the topmost view in the client view from the top of the | 92 // The inset of the topmost view in the client view from the top of the |
| 86 // non-client view. The topmost view depends on the window type. The topmost | 93 // non-client view. The topmost view depends on the window type. The topmost |
| 87 // view is the tab strip for tabbed browser windows, the toolbar for popups, | 94 // view is the tab strip for tabbed browser windows, the toolbar for popups, |
| 88 // the web contents for app windows and varies for fullscreen windows. | 95 // the web contents for app windows and varies for fullscreen windows. |
| 89 AURA_EXPORT extern const aura::WindowProperty<int>* const kTopViewInset; | 96 AURA_EXPORT extern const aura::WindowProperty<int>* const kTopViewInset; |
| 90 | 97 |
| 91 // The color of the window header. | 98 // The color of the window header. |
| 92 AURA_EXPORT extern const aura::WindowProperty<SkColor>* const kTopViewColor; | 99 AURA_EXPORT extern const aura::WindowProperty<SkColor>* const kTopViewColor; |
| 93 | 100 |
| 94 // A property key to store the window icon, typically 16x16 for title bars. | 101 // A property key to store the window icon, typically 16x16 for title bars. |
| 95 AURA_EXPORT extern const WindowProperty<gfx::ImageSkia*>* const kWindowIconKey; | 102 AURA_EXPORT extern const WindowProperty<gfx::ImageSkia*>* const kWindowIconKey; |
| 96 | 103 |
| 97 // Alphabetical sort. | 104 // Alphabetical sort. |
| 98 | 105 |
| 99 } // namespace client | 106 } // namespace client |
| 100 } // namespace aura | 107 } // namespace aura |
| 101 | 108 |
| 102 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ | 109 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ |
| OLD | NEW |