| 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 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // renderer over the IPC channel. | 60 // renderer over the IPC channel. |
| 61 void OnInit(const PluginMsg_Init_Params& params, | 61 void OnInit(const PluginMsg_Init_Params& params, |
| 62 bool* transparent, | 62 bool* transparent, |
| 63 bool* result); | 63 bool* result); |
| 64 void OnWillSendRequest(int id, const GURL& url, int http_status_code); | 64 void OnWillSendRequest(int id, const GURL& url, int http_status_code); |
| 65 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); | 65 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); |
| 66 void OnDidReceiveData(int id, const std::vector<char>& buffer, | 66 void OnDidReceiveData(int id, const std::vector<char>& buffer, |
| 67 int data_offset); | 67 int data_offset); |
| 68 void OnDidFinishLoading(int id); | 68 void OnDidFinishLoading(int id); |
| 69 void OnDidFail(int id); | 69 void OnDidFail(int id); |
| 70 void OnDidFinishLoadWithReason(const GURL& url, int reason, int notify_id); | |
| 71 void OnSetFocus(bool focused); | 70 void OnSetFocus(bool focused); |
| 72 void OnHandleInputEvent(const blink::WebInputEvent* event, | 71 void OnHandleInputEvent(const blink::WebInputEvent* event, |
| 73 bool* handled, WebCursor* cursor); | 72 bool* handled, WebCursor* cursor); |
| 74 void OnPaint(const gfx::Rect& damaged_rect); | 73 void OnPaint(const gfx::Rect& damaged_rect); |
| 75 void OnDidPaint(); | 74 void OnDidPaint(); |
| 76 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); | 75 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); |
| 77 void OnGetPluginScriptableObject(int* route_id); | 76 void OnGetPluginScriptableObject(int* route_id); |
| 78 void OnSendJavaScriptStream(const GURL& url, | 77 void OnSendJavaScriptStream(const GURL& url, |
| 79 const std::string& result, | 78 const std::string& result, |
| 80 bool success, | 79 bool success); |
| 81 int notify_id); | |
| 82 void OnGetFormValue(base::string16* value, bool* success); | 80 void OnGetFormValue(base::string16* value, bool* success); |
| 83 | 81 |
| 84 void OnSetContentAreaFocus(bool has_focus); | 82 void OnSetContentAreaFocus(bool has_focus); |
| 85 #if defined(OS_WIN) && !defined(USE_AURA) | 83 #if defined(OS_WIN) && !defined(USE_AURA) |
| 86 void OnImeCompositionUpdated(const base::string16& text, | 84 void OnImeCompositionUpdated(const base::string16& text, |
| 87 const std::vector<int>& clauses, | 85 const std::vector<int>& clauses, |
| 88 const std::vector<int>& target, | 86 const std::vector<int>& target, |
| 89 int cursor_position); | 87 int cursor_position); |
| 90 void OnImeCompositionCompleted(const base::string16& text); | 88 void OnImeCompositionCompleted(const base::string16& text); |
| 91 #endif | 89 #endif |
| 92 #if defined(OS_MACOSX) | 90 #if defined(OS_MACOSX) |
| 93 void OnSetWindowFocus(bool has_focus); | 91 void OnSetWindowFocus(bool has_focus); |
| 94 void OnContainerHidden(); | 92 void OnContainerHidden(); |
| 95 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, | 93 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, |
| 96 bool has_focus); | 94 bool has_focus); |
| 97 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 95 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
| 98 const gfx::Rect& view_frame); | 96 const gfx::Rect& view_frame); |
| 99 void OnImeCompositionCompleted(const base::string16& text); | 97 void OnImeCompositionCompleted(const base::string16& text); |
| 100 #endif | 98 #endif |
| 101 | 99 |
| 102 void OnDidReceiveManualResponse( | 100 void OnDidReceiveManualResponse( |
| 103 const GURL& url, | 101 const GURL& url, |
| 104 const PluginMsg_DidReceiveResponseParams& params); | 102 const PluginMsg_DidReceiveResponseParams& params); |
| 105 void OnDidReceiveManualData(const std::vector<char>& buffer); | 103 void OnDidReceiveManualData(const std::vector<char>& buffer); |
| 106 void OnDidFinishManualLoading(); | 104 void OnDidFinishManualLoading(); |
| 107 void OnDidManualLoadFail(); | 105 void OnDidManualLoadFail(); |
| 108 void OnHandleURLRequestReply(unsigned long resource_id, | 106 void OnHandleURLRequestReply(unsigned long resource_id, |
| 109 const GURL& url, | 107 const GURL& url); |
| 110 int notify_id); | |
| 111 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); | 108 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); |
| 112 void OnFetchURL(const PluginMsg_FetchURL_Params& params); | 109 void OnFetchURL(const PluginMsg_FetchURL_Params& params); |
| 113 | 110 |
| 114 std::string mime_type_; | 111 std::string mime_type_; |
| 115 int instance_id_; | 112 int instance_id_; |
| 116 | 113 |
| 117 scoped_refptr<PluginChannel> channel_; | 114 scoped_refptr<PluginChannel> channel_; |
| 118 | 115 |
| 119 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; | 116 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; |
| 120 WebPluginDelegateImpl* delegate_; | 117 WebPluginDelegateImpl* delegate_; |
| 121 WebPluginProxy* webplugin_; | 118 WebPluginProxy* webplugin_; |
| 122 bool in_destructor_; | 119 bool in_destructor_; |
| 123 | 120 |
| 124 // The url of the main frame hosting the plugin. | 121 // The url of the main frame hosting the plugin. |
| 125 GURL page_url_; | 122 GURL page_url_; |
| 126 | 123 |
| 127 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 124 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
| 128 }; | 125 }; |
| 129 | 126 |
| 130 } // namespace content | 127 } // namespace content |
| 131 | 128 |
| 132 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 129 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| OLD | NEW |