Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/browser/web_contents/web_contents_view_guest.cc

Issue 2326933002: MacViews: Fix gn check fail for mac_views_browser on Aura dependencies. (Closed)
Patch Set: Typo. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 10 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
11 #include "content/browser/browser_plugin/browser_plugin_guest.h" 11 #include "content/browser/browser_plugin/browser_plugin_guest.h"
12 #include "content/browser/frame_host/interstitial_page_impl.h" 12 #include "content/browser/frame_host/interstitial_page_impl.h"
13 #include "content/browser/frame_host/render_widget_host_view_guest.h" 13 #include "content/browser/frame_host/render_widget_host_view_guest.h"
14 #include "content/browser/renderer_host/render_view_host_factory.h" 14 #include "content/browser/renderer_host/render_view_host_factory.h"
15 #include "content/browser/renderer_host/render_view_host_impl.h" 15 #include "content/browser/renderer_host/render_view_host_impl.h"
16 #include "content/browser/web_contents/web_contents_impl.h" 16 #include "content/browser/web_contents/web_contents_impl.h"
17 #include "content/common/drag_messages.h" 17 #include "content/common/drag_messages.h"
18 #include "content/public/browser/user_metrics.h" 18 #include "content/public/browser/user_metrics.h"
19 #include "content/public/browser/web_contents_delegate.h" 19 #include "content/public/browser/web_contents_delegate.h"
20 #include "content/public/common/context_menu_params.h" 20 #include "content/public/common/context_menu_params.h"
21 #include "content/public/common/drop_data.h" 21 #include "content/public/common/drop_data.h"
22 #include "ui/gfx/geometry/point.h" 22 #include "ui/gfx/geometry/point.h"
23 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
24 #include "ui/gfx/geometry/size.h" 24 #include "ui/gfx/geometry/size.h"
25 #include "ui/gfx/image/image_skia.h" 25 #include "ui/gfx/image/image_skia.h"
26 26
27 #if defined(USE_AURA) 27 #if defined(USE_AURA)
28 #include "ui/aura/window.h" 28 #include "ui/aura/window.h" // nogncheck
29 #endif 29 #endif
30 30
31 using blink::WebDragOperation; 31 using blink::WebDragOperation;
32 using blink::WebDragOperationsMask; 32 using blink::WebDragOperationsMask;
33 33
34 namespace content { 34 namespace content {
35 35
36 WebContentsViewGuest::WebContentsViewGuest( 36 WebContentsViewGuest::WebContentsViewGuest(
37 WebContentsImpl* web_contents, 37 WebContentsImpl* web_contents,
38 BrowserPluginGuest* guest, 38 BrowserPluginGuest* guest,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 embedder_render_view_host->GetDelegate()->GetDelegateView(); 241 embedder_render_view_host->GetDelegate()->GetDelegateView();
242 if (view) { 242 if (view) {
243 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")); 243 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag"));
244 view->StartDragging(drop_data, ops, image, image_offset, event_info); 244 view->StartDragging(drop_data, ops, image, image_offset, event_info);
245 } else { 245 } else {
246 embedder_web_contents->SystemDragEnded(); 246 embedder_web_contents->SystemDragEnded();
247 } 247 }
248 } 248 }
249 249
250 } // namespace content 250 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698