| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class NodeFilter; | 51 class NodeFilter; |
| 52 class ScriptExecutionContext; | 52 class ScriptExecutionContext; |
| 53 class ScriptWrappable; | 53 class ScriptWrappable; |
| 54 class XPathNSResolver; | 54 class XPathNSResolver; |
| 55 | 55 |
| 56 const int kMaxRecursionDepth = 22; | 56 const int kMaxRecursionDepth = 22; |
| 57 | 57 |
| 58 // Schedule a DOM exception to be thrown, if the exception code is different | 58 // Schedule a DOM exception to be thrown, if the exception code is different |
| 59 // from zero. | 59 // from zero. |
| 60 v8::Handle<v8::Value> setDOMException(int, v8::Isolate*); | 60 v8::Handle<v8::Value> setDOMException(int, v8::Isolate*); |
| 61 v8::Handle<v8::Value> setDOMException(int, const String&, v8::Isolate*); |
| 61 | 62 |
| 62 // Schedule a JavaScript error to be thrown. | 63 // Schedule a JavaScript error to be thrown. |
| 63 v8::Handle<v8::Value> throwError(V8ErrorType, const String&, v8::Isolate*); | 64 v8::Handle<v8::Value> throwError(V8ErrorType, const String&, v8::Isolate*); |
| 64 | 65 |
| 65 // Schedule a JavaScript error to be thrown. | 66 // Schedule a JavaScript error to be thrown. |
| 66 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>); | 67 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>); |
| 67 | 68 |
| 68 // A helper for throwing JavaScript TypeError. | 69 // A helper for throwing JavaScript TypeError. |
| 69 v8::Handle<v8::Value> throwTypeError(v8::Isolate*); | 70 v8::Handle<v8::Value> throwTypeError(v8::Isolate*); |
| 70 v8::Handle<v8::Value> throwTypeError(const String&, v8::Isolate*); | 71 v8::Handle<v8::Value> throwTypeError(const String&, v8::Isolate*); |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) | 586 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) |
| 586 { | 587 { |
| 587 return v8::FunctionTemplate::New(function, environment)->GetFunction(); | 588 return v8::FunctionTemplate::New(function, environment)->GetFunction(); |
| 588 } | 589 } |
| 589 | 590 |
| 590 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); | 591 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); |
| 591 | 592 |
| 592 } // namespace WebCore | 593 } // namespace WebCore |
| 593 | 594 |
| 594 #endif // V8Binding_h | 595 #endif // V8Binding_h |
| OLD | NEW |