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

Unified Diff: content/browser/renderer_host/render_widget_host_view_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 | « chrome/test/base/ui_test_utils.cc ('k') | ui/aura/aura.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 113260)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -14,8 +14,8 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/tooltip_client.h"
-#include "ui/aura/desktop.h"
#include "ui/aura/event.h"
+#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/aura/window_types.h"
#include "ui/base/hit_test.h"
@@ -125,11 +125,11 @@
window_->SetParent(NULL);
Show();
- // |pos| is in desktop coordinates. So convert it to
+ // |pos| is in root window coordinates. So convert it to
// |popup_parent_host_view_|'s coordinates first.
gfx::Point origin = pos.origin();
aura::Window::ConvertPointToWindow(
- aura::Desktop::GetInstance(),
+ aura::RootWindow::GetInstance(),
popup_parent_host_view_->window_, &origin);
SetBounds(gfx::Rect(origin, pos.size()));
}
@@ -273,8 +273,8 @@
void RenderWidgetHostViewAura::SetTooltipText(const string16& tooltip_text) {
tooltip_ = tooltip_text;
- void* property = aura::Desktop::GetInstance()->GetProperty(
- aura::kDesktopTooltipClientKey);
+ void* property = aura::RootWindow::GetInstance()->GetProperty(
+ aura::kRootWindowTooltipClientKey);
if (property) {
aura::TooltipClient* tc = static_cast<aura::TooltipClient*>(property);
tc->UpdateTooltip(window_);
@@ -595,15 +595,15 @@
void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
const gfx::Point screen_point = gfx::Screen::GetCursorScreenPoint();
- aura::Desktop* desktop = aura::Desktop::GetInstance();
- if (desktop->GetEventHandlerForPoint(screen_point) != window_)
+ aura::RootWindow* root_window = aura::RootWindow::GetInstance();
+ if (root_window->GetEventHandlerForPoint(screen_point) != window_)
return;
gfx::NativeCursor cursor = current_cursor_.GetNativeCursor();
if (is_loading_ && cursor == aura::kCursorPointer)
cursor = aura::kCursorProgress;
- aura::Desktop::GetInstance()->SetCursor(cursor);
+ aura::RootWindow::GetInstance()->SetCursor(cursor);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | ui/aura/aura.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698