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

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

Issue 24020002: Move GetRootWindowController() to root_window_controller.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/gestures/long_press_affordance_handler.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 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class RootWindow;
12 class Window; 11 class Window;
13 } 12 }
14 13
15 namespace gfx { 14 namespace gfx {
16 class Rect; 15 class Rect;
17 } 16 }
18 17
19 namespace ash { 18 namespace ash {
20 namespace internal {
21 class RootWindowController;
22 }
23 19
24 // Sets the restore bounds property on |window| in the virtual screen 20 // Sets the restore bounds property on |window| in the virtual screen
25 // coordinates. Deletes existing bounds value if exists. 21 // coordinates. Deletes existing bounds value if exists.
26 ASH_EXPORT void SetRestoreBoundsInScreen(aura::Window* window, 22 ASH_EXPORT void SetRestoreBoundsInScreen(aura::Window* window,
27 const gfx::Rect& screen_bounds); 23 const gfx::Rect& screen_bounds);
28 // Same as |SetRestoreBoundsInScreen| except that the bounds is in the 24 // Same as |SetRestoreBoundsInScreen| except that the bounds is in the
29 // parent's coordinates. 25 // parent's coordinates.
30 ASH_EXPORT void SetRestoreBoundsInParent(aura::Window* window, 26 ASH_EXPORT void SetRestoreBoundsInParent(aura::Window* window,
31 const gfx::Rect& parent_bounds); 27 const gfx::Rect& parent_bounds);
32 28
(...skipping 23 matching lines...) Expand all
56 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( 52 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds(
57 const aura::Window* window); 53 const aura::Window* window);
58 54
59 // Sets whether the specified window is tracked by workspace code. Default is 55 // Sets whether the specified window is tracked by workspace code. Default is
60 // true. If set to false the workspace does not switch the current workspace, 56 // true. If set to false the workspace does not switch the current workspace,
61 // nor does it attempt to impose constraints on the bounds of the window. This 57 // nor does it attempt to impose constraints on the bounds of the window. This
62 // is intended for tab dragging. 58 // is intended for tab dragging.
63 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); 59 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value);
64 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); 60 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window);
65 61
66 // Sets/Gets the RootWindowController for |root_window|. 62 } // namespace ash
67 ASH_EXPORT void SetRootWindowController(
68 aura::RootWindow* root_window,
69 internal::RootWindowController* controller);
70 ASH_EXPORT internal::RootWindowController* GetRootWindowController(
71 const aura::RootWindow* root_window);
72
73 }
74 63
75 #endif // ASH_WM_PROPERTY_UTIL_H_ 64 #endif // ASH_WM_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.cc ('k') | ash/wm/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698