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/npapi/webplugin_impl.h" | 5 #include "webkit/plugins/npapi/webplugin_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 bool WebPluginImpl::handleInputEvent( | 414 bool WebPluginImpl::handleInputEvent( |
415 const WebInputEvent& event, WebCursorInfo& cursor_info) { | 415 const WebInputEvent& event, WebCursorInfo& cursor_info) { |
416 // Swallow context menu events in order to suppress the default context menu. | 416 // Swallow context menu events in order to suppress the default context menu. |
417 if (event.type == WebInputEvent::ContextMenu) | 417 if (event.type == WebInputEvent::ContextMenu) |
418 return true; | 418 return true; |
419 | 419 |
420 return delegate_->HandleInputEvent(event, &cursor_info); | 420 return delegate_->HandleInputEvent(event, &cursor_info); |
421 } | 421 } |
422 | 422 |
| 423 bool WebPluginImpl::handleDragStatusUpdate( |
| 424 WebKit::WebDragStatus dragStatus, |
| 425 const WebKit::WebDragData& drag_data, |
| 426 WebKit::WebDragOperationsMask drag_mask, |
| 427 const WebKit::WebPoint& position, |
| 428 const WebKit::WebPoint& screenPosition) { |
| 429 return false; |
| 430 } |
| 431 |
423 void WebPluginImpl::didReceiveResponse(const WebURLResponse& response) { | 432 void WebPluginImpl::didReceiveResponse(const WebURLResponse& response) { |
424 ignore_response_error_ = false; | 433 ignore_response_error_ = false; |
425 | 434 |
426 ResponseInfo response_info; | 435 ResponseInfo response_info; |
427 GetResponseInfo(response, &response_info); | 436 GetResponseInfo(response, &response_info); |
428 | 437 |
429 delegate_->DidReceiveManualResponse( | 438 delegate_->DidReceiveManualResponse( |
430 response_info.url, | 439 response_info.url, |
431 response_info.mime_type, | 440 response_info.mime_type, |
432 GetAllHeaders(response), | 441 GetAllHeaders(response), |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 webframe_->setReferrerForRequest(*request, plugin_url_); | 1444 webframe_->setReferrerForRequest(*request, plugin_url_); |
1436 break; | 1445 break; |
1437 | 1446 |
1438 default: | 1447 default: |
1439 break; | 1448 break; |
1440 } | 1449 } |
1441 } | 1450 } |
1442 | 1451 |
1443 } // namespace npapi | 1452 } // namespace npapi |
1444 } // namespace webkit | 1453 } // namespace webkit |
OLD | NEW |