| 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 "content/plugin/webplugin_proxy.h" | 5 #include "content/plugin/webplugin_proxy.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 void WebPluginProxy::CancelDocumentLoad() { | 613 void WebPluginProxy::CancelDocumentLoad() { |
| 614 Send(new PluginHostMsg_CancelDocumentLoad(route_id_)); | 614 Send(new PluginHostMsg_CancelDocumentLoad(route_id_)); |
| 615 } | 615 } |
| 616 | 616 |
| 617 void WebPluginProxy::InitiateHTTPRangeRequest( | 617 void WebPluginProxy::InitiateHTTPRangeRequest( |
| 618 const char* url, const char* range_info, int range_request_id) { | 618 const char* url, const char* range_info, int range_request_id) { |
| 619 Send(new PluginHostMsg_InitiateHTTPRangeRequest( | 619 Send(new PluginHostMsg_InitiateHTTPRangeRequest( |
| 620 route_id_, url, range_info, range_request_id)); | 620 route_id_, url, range_info, range_request_id)); |
| 621 } | 621 } |
| 622 | 622 |
| 623 void WebPluginProxy::DidStartLoading() { |
| 624 Send(new PluginHostMsg_DidStartLoading(route_id_)); |
| 625 } |
| 626 |
| 627 void WebPluginProxy::DidStopLoading() { |
| 628 Send(new PluginHostMsg_DidStopLoading(route_id_)); |
| 629 } |
| 630 |
| 623 void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, | 631 void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, |
| 624 bool defer) { | 632 bool defer) { |
| 625 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); | 633 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); |
| 626 } | 634 } |
| 627 | 635 |
| 628 #if defined(OS_MACOSX) | 636 #if defined(OS_MACOSX) |
| 629 void WebPluginProxy::FocusChanged(bool focused) { | 637 void WebPluginProxy::FocusChanged(bool focused) { |
| 630 IPC::Message* msg = new PluginHostMsg_FocusChanged(route_id_, focused); | 638 IPC::Message* msg = new PluginHostMsg_FocusChanged(route_id_, focused); |
| 631 Send(msg); | 639 Send(msg); |
| 632 } | 640 } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 int input_type; | 717 int input_type; |
| 710 gfx::Rect caret_rect; | 718 gfx::Rect caret_rect; |
| 711 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 719 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
| 712 return; | 720 return; |
| 713 | 721 |
| 714 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 722 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
| 715 } | 723 } |
| 716 #endif | 724 #endif |
| 717 | 725 |
| 718 } // namespace content | 726 } // namespace content |
| OLD | NEW |