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

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

Issue 105813013: Adds views::corewm::WMState to install common state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix viewseventtestbase Created 7 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 | « chrome/test/base/view_event_test_base.cc ('k') | ui/aura/client/window_stacking_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/window_stacking_client.h
diff --git a/ui/aura/client/window_stacking_client.h b/ui/aura/client/window_stacking_client.h
index b4576c59426ddecb540fa9e439b7f999be026687..848260397cb59ef6e1933709a4b7a7026fb9e7db 100644
--- a/ui/aura/client/window_stacking_client.h
+++ b/ui/aura/client/window_stacking_client.h
@@ -15,16 +15,21 @@ namespace client {
class AURA_EXPORT WindowStackingClient {
public:
- virtual ~WindowStackingClient() {}
-
// Invoked from the various Window stacking functions. Allows the
// WindowStackingClient to alter the source, target and/or direction to stack.
- virtual void AdjustStacking(Window** child,
+ // Returns true if stacking should continue; false if the stacking should not
+ // happen.
+ virtual bool AdjustStacking(Window** child,
Window** target,
Window::StackDirection* direction) = 0;
+
+ protected:
+ virtual ~WindowStackingClient() {}
};
-// Sets/gets the WindowStackingClient. The setter takes ownership of |client|.
+// Sets/gets the WindowStackingClient. This does *not* take ownership of
+// |client|. It is assumed the caller will invoke SetWindowStackingClient(NULL)
+// before deleting |client|.
AURA_EXPORT void SetWindowStackingClient(WindowStackingClient* client);
AURA_EXPORT WindowStackingClient* GetWindowStackingClient();
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | ui/aura/client/window_stacking_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698