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

Unified Diff: ui/aura/client/event_client.cc

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/event_client.h ('k') | ui/aura/client/focus_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/event_client.cc
diff --git a/ui/aura/client/event_client.cc b/ui/aura/client/event_client.cc
index dfb3410da47a2b610446a354fe77a07ee5be6863..c6699741b3c1cf7039f990f5df2da3490d053a1d 100644
--- a/ui/aura/client/event_client.cc
+++ b/ui/aura/client/event_client.cc
@@ -14,11 +14,14 @@ namespace client {
DEFINE_WINDOW_PROPERTY_KEY(EventClient*, kRootWindowEventClientKey, NULL);
-void SetEventClient(RootWindow* root_window, EventClient* client) {
+void SetEventClient(Window* root_window, EventClient* client) {
+ DCHECK_EQ(root_window->GetRootWindow(), root_window);
root_window->SetProperty(kRootWindowEventClientKey, client);
}
-EventClient* GetEventClient(const RootWindow* root_window) {
+EventClient* GetEventClient(const Window* root_window) {
+ if (root_window)
+ DCHECK_EQ(root_window->GetRootWindow(), root_window);
return root_window ?
root_window->GetProperty(kRootWindowEventClientKey) : NULL;
}
« no previous file with comments | « ui/aura/client/event_client.h ('k') | ui/aura/client/focus_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698