OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "content/browser/renderer_host/render_view_host_factory.h" | 8 #include "content/browser/renderer_host/render_view_host_factory.h" |
9 #include "content/browser/tab_contents/tab_contents.h" | |
10 #include "content/browser/web_contents/interstitial_page_impl.h" | 9 #include "content/browser/web_contents/interstitial_page_impl.h" |
| 10 #include "content/browser/web_contents/web_contents_impl.h" |
11 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
12 #include "content/public/browser/render_widget_host.h" | 12 #include "content/public/browser/render_widget_host.h" |
13 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
14 #include "content/public/browser/web_contents_delegate.h" | 14 #include "content/public/browser/web_contents_delegate.h" |
15 #include "content/public/browser/web_contents_view_delegate.h" | 15 #include "content/public/browser/web_contents_view_delegate.h" |
16 #include "content/public/browser/web_drag_dest_delegate.h" | 16 #include "content/public/browser/web_drag_dest_delegate.h" |
17 #include "ui/aura/client/drag_drop_client.h" | 17 #include "ui/aura/client/drag_drop_client.h" |
18 #include "ui/aura/client/drag_drop_delegate.h" | 18 #include "ui/aura/client/drag_drop_delegate.h" |
19 #include "ui/aura/event.h" | 19 #include "ui/aura/event.h" |
20 #include "ui/aura/root_window.h" | 20 #include "ui/aura/root_window.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 } | 589 } |
590 | 590 |
591 int WebContentsViewAura::OnPerformDrop(const aura::DropTargetEvent& event) { | 591 int WebContentsViewAura::OnPerformDrop(const aura::DropTargetEvent& event) { |
592 tab_contents_->GetRenderViewHost()->DragTargetDrop( | 592 tab_contents_->GetRenderViewHost()->DragTargetDrop( |
593 event.location(), | 593 event.location(), |
594 GetNativeView()->GetRootWindow()->last_mouse_location()); | 594 GetNativeView()->GetRootWindow()->last_mouse_location()); |
595 if (GetDragDestDelegate()) | 595 if (GetDragDestDelegate()) |
596 GetDragDestDelegate()->OnDrop(); | 596 GetDragDestDelegate()->OnDrop(); |
597 return current_drag_op_; | 597 return current_drag_op_; |
598 } | 598 } |
OLD | NEW |