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

Unified Diff: ui/views/corewm/transient_window_stacking_client.h

Issue 115453004: Moves management of transients out of Window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix MRUWindowTracker and MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerTest 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
Index: ui/views/corewm/transient_window_stacking_client.h
diff --git a/ui/views/corewm/transient_window_stacking_client.h b/ui/views/corewm/transient_window_stacking_client.h
index 19358362bcb205f9f365e7288eca7c1b4c785f0c..04e0eaf5588d663f37a068f22b37b539eed6ce00 100644
--- a/ui/views/corewm/transient_window_stacking_client.h
+++ b/ui/views/corewm/transient_window_stacking_client.h
@@ -11,6 +11,8 @@
namespace views {
namespace corewm {
+class TransientWindowManager;
+
class VIEWS_EXPORT TransientWindowStackingClient
: public aura::client::WindowStackingClient {
public:
@@ -18,11 +20,16 @@ class VIEWS_EXPORT TransientWindowStackingClient
virtual ~TransientWindowStackingClient();
// WindowStackingClient:
- virtual void AdjustStacking(aura::Window** child,
+ virtual bool AdjustStacking(aura::Window** child,
aura::Window** target,
aura::Window::StackDirection* direction) OVERRIDE;
private:
+ // Purely for DCHECKs.
+ friend class TransientWindowManager;
+
+ static TransientWindowStackingClient* instance_;
+
DISALLOW_COPY_AND_ASSIGN(TransientWindowStackingClient);
};

Powered by Google App Engine
This is Rietveld 408576698