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

Unified Diff: ui/aura/client/tooltip_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/tooltip_client.h ('k') | ui/aura/client/user_action_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/tooltip_client.cc
diff --git a/ui/aura/client/tooltip_client.cc b/ui/aura/client/tooltip_client.cc
index a966c28392ce126b366017423daa8ba6d72e8b19..f018f262812563130c1264f7730361c63e35c3ce 100644
--- a/ui/aura/client/tooltip_client.cc
+++ b/ui/aura/client/tooltip_client.cc
@@ -17,11 +17,14 @@ DEFINE_LOCAL_WINDOW_PROPERTY_KEY(
TooltipClient*, kRootWindowTooltipClientKey, NULL);
DEFINE_LOCAL_WINDOW_PROPERTY_KEY(base::string16*, kTooltipTextKey, NULL);
-void SetTooltipClient(RootWindow* root_window, TooltipClient* client) {
+void SetTooltipClient(Window* root_window, TooltipClient* client) {
+ DCHECK_EQ(root_window->GetRootWindow(), root_window);
root_window->SetProperty(kRootWindowTooltipClientKey, client);
}
-TooltipClient* GetTooltipClient(RootWindow* root_window) {
+TooltipClient* GetTooltipClient(Window* root_window) {
+ if (root_window)
+ DCHECK_EQ(root_window->GetRootWindow(), root_window);
return root_window ?
root_window->GetProperty(kRootWindowTooltipClientKey) : NULL;
}
« no previous file with comments | « ui/aura/client/tooltip_client.h ('k') | ui/aura/client/user_action_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698