| Index: public/web/WebScriptBindings.h
|
| diff --git a/public/web/WebDOMResourceProgressEvent.h b/public/web/WebScriptBindings.h
|
| similarity index 77%
|
| copy from public/web/WebDOMResourceProgressEvent.h
|
| copy to public/web/WebScriptBindings.h
|
| index b65d93c80e006d6e99c837e840eb38cb3a71055d..aca951edbb4270774da3f746eeae2d25ae105704 100644
|
| --- a/public/web/WebDOMResourceProgressEvent.h
|
| +++ b/public/web/WebScriptBindings.h
|
| @@ -28,19 +28,27 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebDOMResourceProgressEvent_h
|
| -#define WebDOMResourceProgressEvent_h
|
| +#ifndef WebScriptBindings_h
|
| +#define WebScriptBindings_h
|
|
|
| -#include "WebDOMProgressEvent.h"
|
| +#include "../platform/WebCommon.h"
|
| +
|
| +namespace v8 {
|
| +class Isolate;
|
| +class String;
|
| +template <class T> class Local;
|
| +}
|
|
|
| namespace WebKit {
|
|
|
| class WebString;
|
|
|
| -class WebDOMResourceProgressEvent : public WebDOMProgressEvent {
|
| +// A haphazard collection of functions for dealing with plugins.
|
| +class WebScriptBindings {
|
| public:
|
| - WebDOMResourceProgressEvent() { }
|
| - WEBKIT_EXPORT WebDOMResourceProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total, const WebString& url);
|
| + // Efficiently converts a WebString to a v8::String. You must have
|
| + // a HandleScope to guard the result's lifetime.
|
| + WEBKIT_EXPORT static v8::Local<v8::String> toV8String(const WebString&, v8::Isolate*);
|
| };
|
|
|
| } // namespace WebKit
|
|
|