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_guest.h" | 5 #include "content/browser/web_contents/web_contents_view_guest.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 8 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
10 #include "content/browser/frame_host/interstitial_page_impl.h" | 10 #include "content/browser/frame_host/interstitial_page_impl.h" |
11 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 11 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
12 #include "content/browser/renderer_host/render_view_host_factory.h" | 12 #include "content/browser/renderer_host/render_view_host_factory.h" |
13 #include "content/browser/renderer_host/render_view_host_impl.h" | 13 #include "content/browser/renderer_host/render_view_host_impl.h" |
14 #include "content/browser/web_contents/web_contents_impl.h" | 14 #include "content/browser/web_contents/web_contents_impl.h" |
15 #include "content/common/drag_messages.h" | 15 #include "content/common/drag_messages.h" |
16 #include "content/public/browser/user_metrics.h" | 16 #include "content/public/browser/user_metrics.h" |
17 #include "content/public/browser/web_contents_delegate.h" | 17 #include "content/public/browser/web_contents_delegate.h" |
18 #include "content/public/common/context_menu_params.h" | 18 #include "content/public/common/context_menu_params.h" |
19 #include "content/public/common/drop_data.h" | 19 #include "content/public/common/drop_data.h" |
| 20 #include "ui/gfx/geometry/point.h" |
20 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
21 #include "ui/gfx/point.h" | |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
24 | 24 |
25 #if defined(USE_AURA) | 25 #if defined(USE_AURA) |
26 #include "ui/aura/window.h" | 26 #include "ui/aura/window.h" |
27 #endif | 27 #endif |
28 | 28 |
29 using blink::WebDragOperation; | 29 using blink::WebDragOperation; |
30 using blink::WebDragOperationsMask; | 30 using blink::WebDragOperationsMask; |
31 | 31 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 embedder_render_view_host->GetDelegate()->GetDelegateView(); | 249 embedder_render_view_host->GetDelegate()->GetDelegateView(); |
250 if (view) { | 250 if (view) { |
251 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")); | 251 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")); |
252 view->StartDragging(drop_data, ops, image, image_offset, event_info); | 252 view->StartDragging(drop_data, ops, image, image_offset, event_info); |
253 } else { | 253 } else { |
254 embedder_web_contents->SystemDragEnded(); | 254 embedder_web_contents->SystemDragEnded(); |
255 } | 255 } |
256 } | 256 } |
257 | 257 |
258 } // namespace content | 258 } // namespace content |
OLD | NEW |