| 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, | |
| 79 const std::string& result, | |
| 80 bool success, | |
| 81 int notify_id); | |
| 82 void OnGetFormValue(base::string16* value, bool* success); | 77 void OnGetFormValue(base::string16* value, bool* success); |
| 83 | 78 |
| 84 void OnSetContentAreaFocus(bool has_focus); | 79 void OnSetContentAreaFocus(bool has_focus); |
| 85 #if defined(OS_WIN) && !defined(USE_AURA) | 80 #if defined(OS_WIN) && !defined(USE_AURA) |
| 86 void OnImeCompositionUpdated(const base::string16& text, | 81 void OnImeCompositionUpdated(const base::string16& text, |
| 87 const std::vector<int>& clauses, | 82 const std::vector<int>& clauses, |
| 88 const std::vector<int>& target, | 83 const std::vector<int>& target, |
| 89 int cursor_position); | 84 int cursor_position); |
| 90 void OnImeCompositionCompleted(const base::string16& text); | 85 void OnImeCompositionCompleted(const base::string16& text); |
| 91 #endif | 86 #endif |
| 92 #if defined(OS_MACOSX) | 87 #if defined(OS_MACOSX) |
| 93 void OnSetWindowFocus(bool has_focus); | 88 void OnSetWindowFocus(bool has_focus); |
| 94 void OnContainerHidden(); | 89 void OnContainerHidden(); |
| 95 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, | 90 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, |
| 96 bool has_focus); | 91 bool has_focus); |
| 97 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 92 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
| 98 const gfx::Rect& view_frame); | 93 const gfx::Rect& view_frame); |
| 99 void OnImeCompositionCompleted(const base::string16& text); | 94 void OnImeCompositionCompleted(const base::string16& text); |
| 100 #endif | 95 #endif |
| 101 | 96 |
| 102 void OnDidReceiveManualResponse( | |
| 103 const GURL& url, | |
| 104 const PluginMsg_DidReceiveResponseParams& params); | |
| 105 void OnDidReceiveManualData(const std::vector<char>& buffer); | |
| 106 void OnDidFinishManualLoading(); | |
| 107 void OnDidManualLoadFail(); | |
| 108 void OnHandleURLRequestReply(unsigned long resource_id, | |
| 109 const GURL& url, | |
| 110 int notify_id); | |
| 111 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); | |
| 112 void OnFetchURL(const PluginMsg_FetchURL_Params& params); | |
| 113 | |
| 114 std::string mime_type_; | 97 std::string mime_type_; |
| 115 int instance_id_; | 98 int instance_id_; |
| 116 | 99 |
| 117 scoped_refptr<PluginChannel> channel_; | 100 scoped_refptr<PluginChannel> channel_; |
| 118 | 101 |
| 119 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; | 102 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; |
| 120 WebPluginDelegateImpl* delegate_; | 103 WebPluginDelegateImpl* delegate_; |
| 121 WebPluginProxy* webplugin_; | 104 WebPluginProxy* webplugin_; |
| 122 bool in_destructor_; | 105 bool in_destructor_; |
| 123 | 106 |
| 124 // The url of the main frame hosting the plugin. | 107 // The url of the main frame hosting the plugin. |
| 125 GURL page_url_; | 108 GURL page_url_; |
| 126 | 109 |
| 127 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 110 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
| 128 }; | 111 }; |
| 129 | 112 |
| 130 } // namespace content | 113 } // namespace content |
| 131 | 114 |
| 132 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 115 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| OLD | NEW |