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

Unified Diff: ui/aura/client/focus_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/focus_client.h ('k') | ui/aura/client/screen_position_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/focus_client.cc
diff --git a/ui/aura/client/focus_client.cc b/ui/aura/client/focus_client.cc
index 83ad1a9e28a1b4f85e97a92f60aa933dc88e1c28..a9be6aa45969a38e9eb591bad720bea94acfebbc 100644
--- a/ui/aura/client/focus_client.cc
+++ b/ui/aura/client/focus_client.cc
@@ -15,7 +15,8 @@ namespace client {
DEFINE_WINDOW_PROPERTY_KEY(FocusClient*, kRootWindowFocusClientKey, NULL);
-void SetFocusClient(RootWindow* root_window, FocusClient* client) {
+void SetFocusClient(Window* root_window, FocusClient* client) {
+ DCHECK_EQ(root_window->GetRootWindow(), root_window);
root_window->SetProperty(kRootWindowFocusClientKey, client);
}
« no previous file with comments | « ui/aura/client/focus_client.h ('k') | ui/aura/client/screen_position_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698