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

Unified Diff: ui/views/widget/tooltip_manager_aura.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/tooltip_manager_aura.cc
===================================================================
--- ui/views/widget/tooltip_manager_aura.cc (revision 113260)
+++ ui/views/widget/tooltip_manager_aura.cc (working copy)
@@ -5,7 +5,7 @@
#include "base/logging.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/tooltip_client.h"
-#include "ui/aura/desktop.h"
+#include "ui/aura/root_window.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/font.h"
#include "ui/gfx/rect.h"
@@ -50,11 +50,12 @@
// TooltipManagerAura, TooltipManager implementation:
void TooltipManagerAura::UpdateTooltip() {
- void* property = aura::Desktop::GetInstance()->GetProperty(
- aura::kDesktopTooltipClientKey);
+ void* property = aura::RootWindow::GetInstance()->GetProperty(
+ aura::kRootWindowTooltipClientKey);
if (property) {
- gfx::Point view_point = aura::Desktop::GetInstance()->last_mouse_location();
- aura::Window::ConvertPointToWindow(aura::Desktop::GetInstance(),
+ gfx::Point view_point =
+ aura::RootWindow::GetInstance()->last_mouse_location();
+ aura::Window::ConvertPointToWindow(aura::RootWindow::GetInstance(),
native_widget_aura_->GetNativeView(), &view_point);
View* view = GetViewUnderPoint(view_point);
if (view) {
@@ -70,11 +71,12 @@
}
void TooltipManagerAura::TooltipTextChanged(View* view) {
- void* property = aura::Desktop::GetInstance()->GetProperty(
- aura::kDesktopTooltipClientKey);
+ void* property = aura::RootWindow::GetInstance()->GetProperty(
+ aura::kRootWindowTooltipClientKey);
if (property) {
- gfx::Point view_point = aura::Desktop::GetInstance()->last_mouse_location();
- aura::Window::ConvertPointToWindow(aura::Desktop::GetInstance(),
+ gfx::Point view_point =
+ aura::RootWindow::GetInstance()->last_mouse_location();
+ aura::Window::ConvertPointToWindow(aura::RootWindow::GetInstance(),
native_widget_aura_->GetNativeView(), &view_point);
View* target = GetViewUnderPoint(view_point);
if (target != view)
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698