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

Side by Side Diff: ui/aura/client/stacking_client.h

Issue 10857021: Prepare a bunch of ash tests for workspace2. With Workspace2 you can't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/workspace_controller_test_helper.cc ('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 #ifndef UI_AURA_CLIENT_STACKING_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_STACKING_CLIENT_H_
6 #define UI_AURA_CLIENT_STACKING_CLIENT_H_ 6 #define UI_AURA_CLIENT_STACKING_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Rect; 11 class Rect;
12 } 12 }
13 13
14 namespace aura { 14 namespace aura {
15 class Window; 15 class Window;
16 namespace client { 16 namespace client {
17 17
18 // An interface implemented by an object that stacks windows. 18 // An interface implemented by an object that stacks windows.
19 class AURA_EXPORT StackingClient { 19 class AURA_EXPORT StackingClient {
20 public: 20 public:
21 virtual ~StackingClient() {} 21 virtual ~StackingClient() {}
22 22
23 // Called by the Window when its parent is set to NULL, returns the window 23 // Called by the Window when its parent is set to NULL, returns the window
24 // that |window| should be added to instead. 24 // that |window| should be added to instead.
25 // NOTE: this may have side effects. It should only be used when |window| is
26 // going to be immediately added.
25 virtual Window* GetDefaultParent(Window* window, const gfx::Rect& bounds) = 0; 27 virtual Window* GetDefaultParent(Window* window, const gfx::Rect& bounds) = 0;
26 }; 28 };
27 29
28 AURA_EXPORT void SetStackingClient(StackingClient* stacking_client); 30 AURA_EXPORT void SetStackingClient(StackingClient* stacking_client);
29 AURA_EXPORT StackingClient* GetStackingClient(); 31 AURA_EXPORT StackingClient* GetStackingClient();
30 32
31 } // namespace client 33 } // namespace client
32 } // namespace aura 34 } // namespace aura
33 35
34 #endif // UI_AURA_CLIENT_STACKING_CLIENT_H_ 36 #endif // UI_AURA_CLIENT_STACKING_CLIENT_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace_controller_test_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698