| 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/renderer/npapi/webplugin_delegate_proxy.h" | 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 if (invalidate_pending_) { | 517 if (invalidate_pending_) { |
| 518 // Only send the PaintAck message if this paint is in response to an | 518 // Only send the PaintAck message if this paint is in response to an |
| 519 // invalidate from the plugin, since this message acts as an access token | 519 // invalidate from the plugin, since this message acts as an access token |
| 520 // to ensure only one process is using the shared bitmap at a time. | 520 // to ensure only one process is using the shared bitmap at a time. |
| 521 invalidate_pending_ = false; | 521 invalidate_pending_ = false; |
| 522 Send(new PluginMsg_DidPaint(instance_id_)); | 522 Send(new PluginMsg_DidPaint(instance_id_)); |
| 523 } | 523 } |
| 524 } | 524 } |
| 525 | 525 |
| 526 bool WebPluginDelegateProxy::GetFormValue(base::string16* value) { | |
| 527 bool success = false; | |
| 528 Send(new PluginMsg_GetFormValue(instance_id_, value, &success)); | |
| 529 return success; | |
| 530 } | |
| 531 | |
| 532 void WebPluginDelegateProxy::SetFocus(bool focused) { | 526 void WebPluginDelegateProxy::SetFocus(bool focused) { |
| 533 Send(new PluginMsg_SetFocus(instance_id_, focused)); | 527 Send(new PluginMsg_SetFocus(instance_id_, focused)); |
| 534 } | 528 } |
| 535 | 529 |
| 536 bool WebPluginDelegateProxy::HandleInputEvent( | 530 bool WebPluginDelegateProxy::HandleInputEvent( |
| 537 const WebInputEvent& event, | 531 const WebInputEvent& event, |
| 538 WebCursor::CursorInfo* cursor_info) { | 532 WebCursor::CursorInfo* cursor_info) { |
| 539 bool handled = false; | 533 bool handled = false; |
| 540 WebCursor cursor; | 534 WebCursor cursor; |
| 541 Send(new PluginMsg_HandleInputEvent(instance_id_, &event, &handled, &cursor)); | 535 Send(new PluginMsg_HandleInputEvent(instance_id_, &event, &handled, &cursor)); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 index->mime_type == "application/x-vnd.movenetworks.qm" || | 759 index->mime_type == "application/x-vnd.movenetworks.qm" || |
| 766 index->mime_type == "application/x-vnd.mnplayer.qm") { | 760 index->mime_type == "application/x-vnd.mnplayer.qm") { |
| 767 return true; | 761 return true; |
| 768 } | 762 } |
| 769 } | 763 } |
| 770 return false; | 764 return false; |
| 771 } | 765 } |
| 772 #endif | 766 #endif |
| 773 | 767 |
| 774 } // namespace content | 768 } // namespace content |
| OLD | NEW |