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

Side by Side Diff: webkit/plugins/webview_plugin.cc

Issue 10392136: Add WebFrame pointer to WebViewClient::startDragging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/webview_plugin.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/plugins/webview_plugin.h" 5 #include "webkit/plugins/webview_plugin.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool WebViewPlugin::acceptsLoadDrops() { 187 bool WebViewPlugin::acceptsLoadDrops() {
188 return false; 188 return false;
189 } 189 }
190 190
191 void WebViewPlugin::setToolTipText(const WebKit::WebString& text, 191 void WebViewPlugin::setToolTipText(const WebKit::WebString& text,
192 WebKit::WebTextDirection hint) { 192 WebKit::WebTextDirection hint) {
193 if (container_) 193 if (container_)
194 container_->element().setAttribute("title", text); 194 container_->element().setAttribute("title", text);
195 } 195 }
196 196
197 void WebViewPlugin::startDragging(const WebDragData&, 197 void WebViewPlugin::startDragging(WebFrame*,
198 const WebDragData&,
198 WebDragOperationsMask, 199 WebDragOperationsMask,
199 const WebImage&, 200 const WebImage&,
200 const WebPoint&) { 201 const WebPoint&) {
201 // Immediately stop dragging. 202 // Immediately stop dragging.
202 web_view_->dragSourceSystemDragEnded(); 203 web_view_->dragSourceSystemDragEnded();
203 } 204 }
204 205
205 void WebViewPlugin::didInvalidateRect(const WebRect& rect) { 206 void WebViewPlugin::didInvalidateRect(const WebRect& rect) {
206 if (container_) 207 if (container_)
207 container_->invalidateRect(rect); 208 container_->invalidateRect(rect);
(...skipping 24 matching lines...) Expand all
232 return error; 233 return error;
233 } 234 }
234 235
235 void WebViewPlugin::didReceiveResponse(WebFrame* frame, 236 void WebViewPlugin::didReceiveResponse(WebFrame* frame,
236 unsigned identifier, 237 unsigned identifier,
237 const WebURLResponse& response) { 238 const WebURLResponse& response) {
238 WebFrameClient::didReceiveResponse(frame, identifier, response); 239 WebFrameClient::didReceiveResponse(frame, identifier, response);
239 } 240 }
240 241
241 } // namespace webkit 242 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/webview_plugin.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698