| 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/dip_util.h" | 8 #include "content/browser/renderer_host/dip_util.h" |
| 9 #include "content/browser/renderer_host/render_view_host_factory.h" | 9 #include "content/browser/renderer_host/render_view_host_factory.h" |
| 10 #include "content/browser/web_contents/interstitial_page_impl.h" | 10 #include "content/browser/web_contents/interstitial_page_impl.h" |
| 11 #include "content/browser/web_contents/web_contents_impl.h" | 11 #include "content/browser/web_contents/web_contents_impl.h" |
| 12 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
| 13 #include "content/public/browser/render_widget_host.h" | 13 #include "content/public/browser/render_widget_host.h" |
| 14 #include "content/public/browser/render_widget_host_view.h" | 14 #include "content/public/browser/render_widget_host_view.h" |
| 15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
| 16 #include "content/public/browser/web_contents_view_delegate.h" | 16 #include "content/public/browser/web_contents_view_delegate.h" |
| 17 #include "content/public/browser/web_drag_dest_delegate.h" | 17 #include "content/public/browser/web_drag_dest_delegate.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 19 #include "ui/aura/client/drag_drop_client.h" | 19 #include "ui/aura/client/drag_drop_client.h" |
| 20 #include "ui/aura/client/drag_drop_delegate.h" | 20 #include "ui/aura/client/drag_drop_delegate.h" |
| 21 #include "ui/aura/root_window.h" | 21 #include "ui/aura/root_window.h" |
| 22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
| 23 #include "ui/base/clipboard/custom_data_helper.h" | 23 #include "ui/base/clipboard/custom_data_helper.h" |
| 24 #include "ui/base/dragdrop/drag_drop_types.h" | 24 #include "ui/base/dragdrop/drag_drop_types.h" |
| 25 #include "ui/base/dragdrop/os_exchange_data.h" | 25 #include "ui/base/dragdrop/os_exchange_data.h" |
| 26 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" | 26 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
| 27 #include "ui/base/event.h" | 27 #include "ui/base/events/event.h" |
| 28 #include "ui/base/hit_test.h" | 28 #include "ui/base/hit_test.h" |
| 29 #include "ui/compositor/layer.h" | 29 #include "ui/compositor/layer.h" |
| 30 #include "ui/gfx/screen.h" | 30 #include "ui/gfx/screen.h" |
| 31 #include "webkit/glue/webdropdata.h" | 31 #include "webkit/glue/webdropdata.h" |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 WebContentsView* CreateWebContentsView( | 34 WebContentsView* CreateWebContentsView( |
| 35 WebContentsImpl* web_contents, | 35 WebContentsImpl* web_contents, |
| 36 WebContentsViewDelegate* delegate, | 36 WebContentsViewDelegate* delegate, |
| 37 RenderViewHostDelegateView** render_view_host_delegate_view) { | 37 RenderViewHostDelegateView** render_view_host_delegate_view) { |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 OnDragEntered(event); | 633 OnDragEntered(event); |
| 634 | 634 |
| 635 web_contents_->GetRenderViewHost()->DragTargetDrop( | 635 web_contents_->GetRenderViewHost()->DragTargetDrop( |
| 636 event.location(), | 636 event.location(), |
| 637 gfx::Screen::GetCursorScreenPoint(), | 637 gfx::Screen::GetCursorScreenPoint(), |
| 638 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags())); | 638 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags())); |
| 639 if (drag_dest_delegate_) | 639 if (drag_dest_delegate_) |
| 640 drag_dest_delegate_->OnDrop(); | 640 drag_dest_delegate_->OnDrop(); |
| 641 return current_drag_op_; | 641 return current_drag_op_; |
| 642 } | 642 } |
| OLD | NEW |