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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for initial review. Created 8 years, 10 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
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc
diff --git a/chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc b/chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc
index 8834f813931ef736722d47d6bc070c364ac459ee..4bcfc335be8b0482bf7024ba86b318d61a03d686 100644
--- a/chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc
+++ b/chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc
@@ -58,7 +58,7 @@ class WebDragSourceAura : public MessageLoopForUI::Observer {
if (rvh) {
gfx::Point screen_loc = ui::EventLocationFromNative(event);
gfx::Point client_loc = screen_loc;
- aura::Window* window = rvh->view()->GetNativeView();
+ aura::Window* window = rvh->GetView()->GetNativeView();
aura::Window::ConvertPointToWindow(ash::Shell::GetRootWindow(),
window, &client_loc);
rvh->DragSourceMovedTo(client_loc.x(), client_loc.y(),
@@ -319,7 +319,7 @@ void NativeTabContentsViewAura::EndDrag(WebKit::WebDragOperationsMask ops) {
ash::Shell::GetRootWindow()->last_mouse_location();
gfx::Point client_loc = screen_loc;
RenderViewHost* rvh = GetWebContents()->GetRenderViewHost();
- aura::Window* window = rvh->view()->GetNativeView();
+ aura::Window* window = rvh->GetView()->GetNativeView();
aura::Window::ConvertPointToWindow(ash::Shell::GetRootWindow(),
window, &client_loc);
rvh->DragSourceEndedAt(client_loc.x(), client_loc.y(), screen_loc.x(),

Powered by Google App Engine
This is Rietveld 408576698