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

Side by Side Diff: ash/wm/window_properties.cc

Issue 10545058: Add UIControlsAsh that works with multiple root windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_properties.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ash/wm/window_properties.h" 5 #include "ash/wm/window_properties.h"
6 6
7 #include "ash/wm/shadow_types.h" 7 #include "ash/wm/shadow_types.h"
8 #include "ui/aura/window_property.h" 8 #include "ui/aura/window_property.h"
9 #include "ui/ui_controls/ui_controls_aura.h"
9 10
10 // Property type for bool and ui::WindowShowState are 11 // Property type for bool and ui::WindowShowState are
11 // defined in aura. 12 // defined in aura.
12 DECLARE_WINDOW_PROPERTY_TYPE(ash::internal::ShadowType); 13 DECLARE_WINDOW_PROPERTY_TYPE(ash::internal::ShadowType);
13 DECLARE_WINDOW_PROPERTY_TYPE(ash::WindowPersistsAcrossAllWorkspacesType) 14 DECLARE_WINDOW_PROPERTY_TYPE(ash::WindowPersistsAcrossAllWorkspacesType)
15 DECLARE_WINDOW_PROPERTY_TYPE(ui_controls::UIControlsAura*)
14 16
15 namespace ash { 17 namespace ash {
16 namespace internal { 18 namespace internal {
17 19
18 DEFINE_WINDOW_PROPERTY_KEY( 20 DEFINE_WINDOW_PROPERTY_KEY(
19 bool, kChildWindowVisibilityChangesAnimatedKey, false); 21 bool, kChildWindowVisibilityChangesAnimatedKey, false);
20 DEFINE_WINDOW_PROPERTY_KEY( 22 DEFINE_WINDOW_PROPERTY_KEY(
21 ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT); 23 ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT);
22 DEFINE_WINDOW_PROPERTY_KEY(ShadowType, kShadowTypeKey, SHADOW_TYPE_NONE); 24 DEFINE_WINDOW_PROPERTY_KEY(ShadowType, kShadowTypeKey, SHADOW_TYPE_NONE);
25 DEFINE_OWNED_WINDOW_PROPERTY_KEY(ui_controls::UIControlsAura,
26 kUIControlsKey,
27 NULL);
23 DEFINE_WINDOW_PROPERTY_KEY(ash::WindowPersistsAcrossAllWorkspacesType, 28 DEFINE_WINDOW_PROPERTY_KEY(ash::WindowPersistsAcrossAllWorkspacesType,
24 kWindowPersistsAcrossAllWorkspacesKey, 29 kWindowPersistsAcrossAllWorkspacesKey,
25 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT); 30 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT);
26 DEFINE_WINDOW_PROPERTY_KEY(bool, kWindowTrackedByWorkspaceKey, true); 31 DEFINE_WINDOW_PROPERTY_KEY(bool, kWindowTrackedByWorkspaceKey, true);
27 32
28 } // namespace internal 33 } // namespace internal
29 } // namespace ash 34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_properties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698