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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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 "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 RenderWidgetHostImpl* source_rwh) { 234 RenderWidgetHostImpl* source_rwh) {
235 WebContentsImpl* embedder_web_contents = guest_->embedder_web_contents(); 235 WebContentsImpl* embedder_web_contents = guest_->embedder_web_contents();
236 embedder_web_contents->GetBrowserPluginEmbedder()->StartDrag(guest_); 236 embedder_web_contents->GetBrowserPluginEmbedder()->StartDrag(guest_);
237 RenderViewHostImpl* embedder_render_view_host = 237 RenderViewHostImpl* embedder_render_view_host =
238 static_cast<RenderViewHostImpl*>( 238 static_cast<RenderViewHostImpl*>(
239 embedder_web_contents->GetRenderViewHost()); 239 embedder_web_contents->GetRenderViewHost());
240 CHECK(embedder_render_view_host); 240 CHECK(embedder_render_view_host);
241 RenderViewHostDelegateView* view = 241 RenderViewHostDelegateView* view =
242 embedder_render_view_host->GetDelegate()->GetDelegateView(); 242 embedder_render_view_host->GetDelegate()->GetDelegateView();
243 if (view) { 243 if (view) {
244 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")); 244 base::RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")) ;
245 view->StartDragging( 245 view->StartDragging(
246 drop_data, ops, image, image_offset, event_info, source_rwh); 246 drop_data, ops, image, image_offset, event_info, source_rwh);
247 } else { 247 } else {
248 embedder_web_contents->SystemDragEnded(source_rwh); 248 embedder_web_contents->SystemDragEnded(source_rwh);
249 } 249 }
250 } 250 }
251 251
252 } // namespace content 252 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/webrtc/webrtc_eventlog_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698