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

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

Issue 2509933002: Drag-and-drop: Target drag messages (the sequel). (Closed)
Patch Set: Addressed additional comments by avi@, dcheng@. Created 4 years, 1 month 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"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 static_cast<RenderViewHostImpl*>( 237 static_cast<RenderViewHostImpl*>(
238 embedder_web_contents->GetRenderViewHost()); 238 embedder_web_contents->GetRenderViewHost());
239 CHECK(embedder_render_view_host); 239 CHECK(embedder_render_view_host);
240 RenderViewHostDelegateView* view = 240 RenderViewHostDelegateView* view =
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( 244 view->StartDragging(
245 drop_data, ops, image, image_offset, event_info, source_rwh); 245 drop_data, ops, image, image_offset, event_info, source_rwh);
246 } else { 246 } else {
247 embedder_web_contents->SystemDragEnded(); 247 embedder_web_contents->SystemDragEnded(source_rwh);
248 } 248 }
249 } 249 }
250 250
251 } // namespace content 251 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698