OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Gets the NPObject associated with the plugin for scripting. | 66 // Gets the NPObject associated with the plugin for scripting. |
67 virtual NPObject* GetPluginScriptableObject() = 0; | 67 virtual NPObject* GetPluginScriptableObject() = 0; |
68 | 68 |
69 // Receives notification about a resource load that the plugin initiated | 69 // Receives notification about a resource load that the plugin initiated |
70 // for a frame. | 70 // for a frame. |
71 virtual void DidFinishLoadWithReason(NPReason reason) = 0; | 71 virtual void DidFinishLoadWithReason(NPReason reason) = 0; |
72 | 72 |
73 // Returns the process id of the process that is running the plugin. | 73 // Returns the process id of the process that is running the plugin. |
74 virtual int GetProcessId() = 0; | 74 virtual int GetProcessId() = 0; |
75 | 75 |
76 // Returns the window handle for this plugin if it's a windowed plugin, | |
77 // or NULL otherwise. | |
78 virtual gfx::ViewHandle GetWindowHandle() = 0; | |
79 | |
80 virtual void FlushGeometryUpdates() = 0; | 76 virtual void FlushGeometryUpdates() = 0; |
81 | 77 |
82 // The result of the script execution is returned via this function. | 78 // The result of the script execution is returned via this function. |
83 virtual void SendJavaScriptStream(const std::string& url, | 79 virtual void SendJavaScriptStream(const std::string& url, |
84 const std::wstring& result, | 80 const std::wstring& result, |
85 bool success, bool notify_needed, | 81 bool success, bool notify_needed, |
86 int notify_data) = 0; | 82 int notify_data) = 0; |
87 | 83 |
88 // Receives notification about data being available. | 84 // Receives notification about data being available. |
89 virtual void DidReceiveManualResponse(const std::string& url, | 85 virtual void DidReceiveManualResponse(const std::string& url, |
(...skipping 25 matching lines...) Expand all Loading... |
115 void* stream) = 0; | 111 void* stream) = 0; |
116 // Notifies the delegate about a Get/Post URL request getting routed | 112 // Notifies the delegate about a Get/Post URL request getting routed |
117 virtual void URLRequestRouted(const std::string&url, bool notify_needed, | 113 virtual void URLRequestRouted(const std::string&url, bool notify_needed, |
118 void* notify_data) = 0; | 114 void* notify_data) = 0; |
119 private: | 115 private: |
120 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); | 116 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); |
121 }; | 117 }; |
122 | 118 |
123 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 119 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
124 | 120 |
OLD | NEW |