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

Side by Side Diff: components/plugins/renderer/webview_plugin.cc

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/plugins/renderer/webview_plugin.h" 5 #include "components/plugins/renderer/webview_plugin.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 bool WebViewPlugin::acceptsLoadDrops() { return false; } 234 bool WebViewPlugin::acceptsLoadDrops() { return false; }
235 235
236 void WebViewPlugin::setToolTipText(const WebString& text, 236 void WebViewPlugin::setToolTipText(const WebString& text,
237 blink::WebTextDirection hint) { 237 blink::WebTextDirection hint) {
238 if (container_) 238 if (container_)
239 container_->element().setAttribute("title", text); 239 container_->element().setAttribute("title", text);
240 } 240 }
241 241
242 void WebViewPlugin::startDragging(WebLocalFrame*, 242 void WebViewPlugin::startDragging(blink::WebReferrerPolicy,
243 const WebDragData&, 243 const WebDragData&,
244 WebDragOperationsMask, 244 WebDragOperationsMask,
245 const WebImage&, 245 const WebImage&,
246 const WebPoint&) { 246 const WebPoint&) {
247 // Immediately stop dragging. 247 // Immediately stop dragging.
248 web_view_->dragSourceSystemDragEnded(); 248 web_view_->dragSourceSystemDragEnded();
249 } 249 }
250 250
251 bool WebViewPlugin::allowsBrokenNullLayerTreeView() const { 251 bool WebViewPlugin::allowsBrokenNullLayerTreeView() const {
252 return true; 252 return true;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 if (!delegate_) 310 if (!delegate_)
311 return; 311 return;
312 312
313 // The delegate may instantiate a new plugin. 313 // The delegate may instantiate a new plugin.
314 delegate_->OnUnobscuredRectUpdate(gfx::Rect(unobscured_rect)); 314 delegate_->OnUnobscuredRectUpdate(gfx::Rect(unobscured_rect));
315 // The delegate may have dirtied style and layout of the WebView. 315 // The delegate may have dirtied style and layout of the WebView.
316 // See for example the resizePoster function in plugin_poster.html. 316 // See for example the resizePoster function in plugin_poster.html.
317 // Run the lifecycle now so that it is clean. 317 // Run the lifecycle now so that it is clean.
318 web_view_->updateAllLifecyclePhases(); 318 web_view_->updateAllLifecyclePhases();
319 } 319 }
OLDNEW
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | components/test_runner/web_view_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698