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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 if (delegate_->IsWindowless() && use_shm_pixmap_) { | 629 if (delegate_->IsWindowless() && use_shm_pixmap_) { |
630 CreateShmPixmapFromDIB(windowless_dibs_[0].get(), | 630 CreateShmPixmapFromDIB(windowless_dibs_[0].get(), |
631 window_rect, | 631 window_rect, |
632 &windowless_shm_pixmaps_[0]); | 632 &windowless_shm_pixmaps_[0]); |
633 CreateShmPixmapFromDIB(windowless_dibs_[1].get(), | 633 CreateShmPixmapFromDIB(windowless_dibs_[1].get(), |
634 window_rect, | 634 window_rect, |
635 &windowless_shm_pixmaps_[1]); | 635 &windowless_shm_pixmaps_[1]); |
636 } | 636 } |
637 } | 637 } |
638 | 638 |
| 639 #elif defined(OS_ANDROID) |
| 640 |
| 641 void WebPluginProxy::SetWindowlessBuffers( |
| 642 const TransportDIB::Handle& windowless_buffer0, |
| 643 const TransportDIB::Handle& windowless_buffer1, |
| 644 const TransportDIB::Handle& background_buffer, |
| 645 const gfx::Rect& window_rect) { |
| 646 NOTIMPLEMENTED(); |
| 647 } |
| 648 |
639 #endif | 649 #endif |
640 | 650 |
641 void WebPluginProxy::CancelDocumentLoad() { | 651 void WebPluginProxy::CancelDocumentLoad() { |
642 Send(new PluginHostMsg_CancelDocumentLoad(route_id_)); | 652 Send(new PluginHostMsg_CancelDocumentLoad(route_id_)); |
643 } | 653 } |
644 | 654 |
645 void WebPluginProxy::InitiateHTTPRangeRequest( | 655 void WebPluginProxy::InitiateHTTPRangeRequest( |
646 const char* url, const char* range_info, int range_request_id) { | 656 const char* url, const char* range_info, int range_request_id) { |
647 Send(new PluginHostMsg_InitiateHTTPRangeRequest( | 657 Send(new PluginHostMsg_InitiateHTTPRangeRequest( |
648 route_id_, url, range_info, range_request_id)); | 658 route_id_, url, range_info, range_request_id)); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 // Retrieve the IME status from a plug-in and send it to a renderer process | 780 // Retrieve the IME status from a plug-in and send it to a renderer process |
771 // when the plug-in has updated it. | 781 // when the plug-in has updated it. |
772 int input_type; | 782 int input_type; |
773 gfx::Rect caret_rect; | 783 gfx::Rect caret_rect; |
774 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 784 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
775 return; | 785 return; |
776 | 786 |
777 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 787 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
778 } | 788 } |
779 #endif | 789 #endif |
OLD | NEW |