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/renderer_host/render_view_host_factory.h" | 11 #include "content/browser/renderer_host/render_view_host_factory.h" |
12 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
13 #include "content/browser/renderer_host/render_widget_host_view_guest.h" | 13 #include "content/browser/renderer_host/render_widget_host_view_guest.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/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
17 #include "content/public/common/context_menu_params.h" | 17 #include "content/public/common/context_menu_params.h" |
18 #include "content/public/common/drop_data.h" | 18 #include "content/public/common/drop_data.h" |
19 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/point.h" |
21 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/rect.h" |
22 #include "ui/gfx/size.h" | 22 #include "ui/gfx/size.h" |
23 | 23 |
24 #if defined(USE_AURA) | 24 #if defined(USE_AURA) |
25 #include "ui/aura/window.h" | 25 #include "ui/aura/window.h" |
26 #endif | 26 #endif |
27 | 27 |
28 using WebKit::WebDragOperation; | 28 using blink::WebDragOperation; |
29 using WebKit::WebDragOperationsMask; | 29 using blink::WebDragOperationsMask; |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 | 32 |
33 WebContentsViewGuest::WebContentsViewGuest( | 33 WebContentsViewGuest::WebContentsViewGuest( |
34 WebContentsImpl* web_contents, | 34 WebContentsImpl* web_contents, |
35 BrowserPluginGuest* guest, | 35 BrowserPluginGuest* guest, |
36 scoped_ptr<WebContentsViewPort> platform_view, | 36 scoped_ptr<WebContentsViewPort> platform_view, |
37 RenderViewHostDelegateView* platform_view_delegate_view) | 37 RenderViewHostDelegateView* platform_view_delegate_view) |
38 : web_contents_(web_contents), | 38 : web_contents_(web_contents), |
39 guest_(guest), | 39 guest_(guest), |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 CHECK(embedder_render_view_host); | 256 CHECK(embedder_render_view_host); |
257 RenderViewHostDelegateView* view = | 257 RenderViewHostDelegateView* view = |
258 embedder_render_view_host->GetDelegate()->GetDelegateView(); | 258 embedder_render_view_host->GetDelegate()->GetDelegateView(); |
259 if (view) | 259 if (view) |
260 view->StartDragging(drop_data, ops, image, image_offset, event_info); | 260 view->StartDragging(drop_data, ops, image, image_offset, event_info); |
261 else | 261 else |
262 embedder_web_contents->SystemDragEnded(); | 262 embedder_web_contents->SystemDragEnded(); |
263 } | 263 } |
264 | 264 |
265 } // namespace content | 265 } // namespace content |
OLD | NEW |