Index: content/browser/web_contents/web_contents_view_aura.cc |
=================================================================== |
--- content/browser/web_contents/web_contents_view_aura.cc (revision 150582) |
+++ content/browser/web_contents/web_contents_view_aura.cc (working copy) |
@@ -18,13 +18,13 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
#include "ui/aura/client/drag_drop_client.h" |
#include "ui/aura/client/drag_drop_delegate.h" |
-#include "ui/aura/event.h" |
#include "ui/aura/root_window.h" |
#include "ui/aura/window.h" |
#include "ui/base/clipboard/custom_data_helper.h" |
#include "ui/base/dragdrop/drag_drop_types.h" |
#include "ui/base/dragdrop/os_exchange_data.h" |
#include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
+#include "ui/base/event.h" |
#include "ui/base/hit_test.h" |
#include "ui/compositor/layer.h" |
#include "ui/gfx/screen.h" |
@@ -73,7 +73,7 @@ |
screen_loc_in_pixel); |
gfx::Point client_loc = screen_loc; |
aura::Window* window = rvh->GetView()->GetNativeView(); |
- aura::Window::ConvertPointToWindow(window->GetRootWindow(), |
+ aura::Window::ConvertPointToTarget(window->GetRootWindow(), |
window, &client_loc); |
rvh->DragSourceMovedTo(client_loc.x(), client_loc.y(), |
screen_loc.x(), screen_loc.y()); |
@@ -241,7 +241,7 @@ |
gfx::Point client_loc = screen_loc; |
content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); |
aura::Window* window = rvh->GetView()->GetNativeView(); |
- aura::Window::ConvertPointToWindow(root_window, window, &client_loc); |
+ aura::Window::ConvertPointToTarget(root_window, window, &client_loc); |
rvh->DragSourceEndedAt(client_loc.x(), client_loc.y(), screen_loc.x(), |
screen_loc.y(), ops); |
} |
@@ -496,7 +496,7 @@ |
void WebContentsViewAura::OnBlur() { |
} |
-bool WebContentsViewAura::OnKeyEvent(aura::KeyEvent* event) { |
+bool WebContentsViewAura::OnKeyEvent(ui::KeyEvent* event) { |
return false; |
} |
@@ -514,7 +514,7 @@ |
return true; |
} |
-bool WebContentsViewAura::OnMouseEvent(aura::MouseEvent* event) { |
+bool WebContentsViewAura::OnMouseEvent(ui::MouseEvent* event) { |
if (!web_contents_->GetDelegate()) |
return false; |
@@ -532,12 +532,12 @@ |
return false; |
} |
-ui::TouchStatus WebContentsViewAura::OnTouchEvent(aura::TouchEvent* event) { |
+ui::TouchStatus WebContentsViewAura::OnTouchEvent(ui::TouchEventImpl* event) { |
return ui::TOUCH_STATUS_UNKNOWN; |
} |
ui::GestureStatus WebContentsViewAura::OnGestureEvent( |
- aura::GestureEvent* event) { |
+ ui::GestureEventImpl* event) { |
return ui::GESTURE_STATUS_UNKNOWN; |
} |
@@ -580,7 +580,7 @@ |
//////////////////////////////////////////////////////////////////////////////// |
// WebContentsViewAura, aura::client::DragDropDelegate implementation: |
-void WebContentsViewAura::OnDragEntered(const aura::DropTargetEvent& event) { |
+void WebContentsViewAura::OnDragEntered(const ui::DropTargetEvent& event) { |
if (drag_dest_delegate_) |
drag_dest_delegate_->DragInitialize(web_contents_); |
@@ -600,7 +600,7 @@ |
} |
} |
-int WebContentsViewAura::OnDragUpdated(const aura::DropTargetEvent& event) { |
+int WebContentsViewAura::OnDragUpdated(const ui::DropTargetEvent& event) { |
DCHECK(current_rvh_for_drag_); |
if (current_rvh_for_drag_ != web_contents_->GetRenderViewHost()) |
OnDragEntered(event); |
@@ -627,7 +627,7 @@ |
drag_dest_delegate_->OnDragLeave(); |
} |
-int WebContentsViewAura::OnPerformDrop(const aura::DropTargetEvent& event) { |
+int WebContentsViewAura::OnPerformDrop(const ui::DropTargetEvent& event) { |
DCHECK(current_rvh_for_drag_); |
if (current_rvh_for_drag_ != web_contents_->GetRenderViewHost()) |
OnDragEntered(event); |