OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |