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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 delegate_->ShowContextMenu(mouse_event); | 158 delegate_->ShowContextMenu(mouse_event); |
159 } | 159 } |
160 return true; | 160 return true; |
161 } | 161 } |
162 current_cursor_ = cursor; | 162 current_cursor_ = cursor; |
163 bool handled = web_view_->handleInputEvent(event); | 163 bool handled = web_view_->handleInputEvent(event); |
164 cursor = current_cursor_; | 164 cursor = current_cursor_; |
165 return handled; | 165 return handled; |
166 } | 166 } |
167 | 167 |
| 168 bool WebViewPlugin::handleDragStatusUpdate( |
| 169 WebKit::WebDragStatus dragStatus, |
| 170 const WebKit::WebDragData& drag_data, |
| 171 WebKit::WebDragOperationsMask drag_mask, |
| 172 const WebKit::WebPoint& position, |
| 173 const WebKit::WebPoint& screenPosition) { |
| 174 return false; |
| 175 } |
| 176 |
168 void WebViewPlugin::didReceiveResponse(const WebURLResponse& response) { | 177 void WebViewPlugin::didReceiveResponse(const WebURLResponse& response) { |
169 DCHECK(response_.isNull()); | 178 DCHECK(response_.isNull()); |
170 response_ = response; | 179 response_ = response; |
171 } | 180 } |
172 | 181 |
173 void WebViewPlugin::didReceiveData(const char* data, int data_length) { | 182 void WebViewPlugin::didReceiveData(const char* data, int data_length) { |
174 data_.push_back(std::string(data, data_length)); | 183 data_.push_back(std::string(data, data_length)); |
175 } | 184 } |
176 | 185 |
177 void WebViewPlugin::didFinishLoading() { | 186 void WebViewPlugin::didFinishLoading() { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 return error; | 242 return error; |
234 } | 243 } |
235 | 244 |
236 void WebViewPlugin::didReceiveResponse(WebFrame* frame, | 245 void WebViewPlugin::didReceiveResponse(WebFrame* frame, |
237 unsigned identifier, | 246 unsigned identifier, |
238 const WebURLResponse& response) { | 247 const WebURLResponse& response) { |
239 WebFrameClient::didReceiveResponse(frame, identifier, response); | 248 WebFrameClient::didReceiveResponse(frame, identifier, response); |
240 } | 249 } |
241 | 250 |
242 } // namespace webkit | 251 } // namespace webkit |
OLD | NEW |