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

Side by Side Diff: ash/wm/property_util.h

Issue 10546024: Add RootWindowController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/app_list_controller.cc ('k') | ash/wm/property_util.cc » ('j') | 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 #ifndef ASH_WM_PROPERTY_UTIL_H_ 5 #ifndef ASH_WM_PROPERTY_UTIL_H_
6 #define ASH_WM_PROPERTY_UTIL_H_ 6 #define ASH_WM_PROPERTY_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 10
11 namespace aura { 11 namespace aura {
12 class RootWindow;
12 class Window; 13 class Window;
13 } 14 }
14 15
15 namespace gfx { 16 namespace gfx {
16 class Rect; 17 class Rect;
17 } 18 }
18 19
19 namespace ash { 20 namespace ash {
21 namespace internal {
22 class RootWindowController;
23 }
20 24
21 // Sets the restore bounds property on |window|. Deletes existing bounds value 25 // Sets the restore bounds property on |window|. Deletes existing bounds value
22 // if exists. 26 // if exists.
23 ASH_EXPORT void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds); 27 ASH_EXPORT void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds);
24 28
25 // Same as SetRestoreBounds(), but does nothing if the restore bounds have 29 // Same as SetRestoreBounds(), but does nothing if the restore bounds have
26 // already been set. The bounds used are the bounds of the window. 30 // already been set. The bounds used are the bounds of the window.
27 ASH_EXPORT void SetRestoreBoundsIfNotSet(aura::Window* window); 31 ASH_EXPORT void SetRestoreBoundsIfNotSet(aura::Window* window);
28 32
29 // Returns the restore bounds property on |window|. NULL if the 33 // Returns the restore bounds property on |window|. NULL if the
(...skipping 24 matching lines...) Expand all
54 // by SetDefaultPersistsAcrossAllWorkspaces(). 58 // by SetDefaultPersistsAcrossAllWorkspaces().
55 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( 59 ASH_EXPORT void SetPersistsAcrossAllWorkspaces(
56 aura::Window* window, 60 aura::Window* window,
57 WindowPersistsAcrossAllWorkspacesType type); 61 WindowPersistsAcrossAllWorkspacesType type);
58 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); 62 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window);
59 63
60 // Sets the default value for whether windows persist across all workspaces. 64 // Sets the default value for whether windows persist across all workspaces.
61 // The default is false. 65 // The default is false.
62 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); 66 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value);
63 67
68 // Sets/Gets the RootWindowController for |root_window|.
69 ASH_EXPORT void SetRootWindowController(
70 aura::RootWindow* root_window,
71 internal::RootWindowController* controller);
72 ASH_EXPORT internal::RootWindowController* GetRootWindowController(
73 aura::RootWindow* root_window);
74
64 } 75 }
65 76
66 #endif // ASH_WM_PROPERTY_UTIL_H_ 77 #endif // ASH_WM_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698