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

Unified Diff: ui/aura/client/stacking_client.h

Issue 8916020: Second attempt at moving the StackingClient to a property on the RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/client/stacking_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/stacking_client.h
===================================================================
--- ui/aura/client/stacking_client.h (revision 114527)
+++ ui/aura/client/stacking_client.h (working copy)
@@ -9,20 +9,23 @@
#include "ui/aura/aura_export.h"
namespace aura {
-
class Window;
+namespace client {
// An interface implemented by an object that stacks windows.
class AURA_EXPORT StackingClient {
public:
virtual ~StackingClient() {}
- // Called by the Window when its parent is set to NULL. The delegate is given
- // an opportunity to inspect the window and add it to a default parent window
- // of its choosing.
- virtual void AddChildToDefaultParent(Window* window) = 0;
+ // Called by the Window when its parent is set to NULL, returns the window
+ // that |window| should be added to instead.
+ virtual Window* GetDefaultParent(Window* window) = 0;
};
+AURA_EXPORT void SetStackingClient(StackingClient* stacking_client);
+AURA_EXPORT StackingClient* GetStackingClient();
+
+} // namespace client
} // namespace aura
#endif // UI_AURA_CLIENT_STACKING_CLIENT_H_
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/client/stacking_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698