| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class Frame; | 50 class Frame; |
| 51 class NodeFilter; | 51 class NodeFilter; |
| 52 class ScriptExecutionContext; | 52 class ScriptExecutionContext; |
| 53 class XPathNSResolver; | 53 class XPathNSResolver; |
| 54 | 54 |
| 55 const int kMaxRecursionDepth = 22; | 55 const int kMaxRecursionDepth = 22; |
| 56 | 56 |
| 57 // Schedule a DOM exception to be thrown, if the exception code is different | 57 // Schedule a DOM exception to be thrown, if the exception code is different |
| 58 // from zero. | 58 // from zero. |
| 59 v8::Handle<v8::Value> setDOMException(int, v8::Isolate*); | 59 v8::Handle<v8::Value> setDOMException(int, v8::Isolate*); |
| 60 v8::Handle<v8::Value> setDOMException(int, const char*, v8::Isolate*); |
| 60 | 61 |
| 61 // Schedule a JavaScript error to be thrown. | 62 // Schedule a JavaScript error to be thrown. |
| 62 v8::Handle<v8::Value> throwError(V8ErrorType, const char*, v8::Isolate*); | 63 v8::Handle<v8::Value> throwError(V8ErrorType, const char*, v8::Isolate*); |
| 63 | 64 |
| 64 // Schedule a JavaScript error to be thrown. | 65 // Schedule a JavaScript error to be thrown. |
| 65 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>, v8::Isolate*); | 66 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>, v8::Isolate*); |
| 66 | 67 |
| 67 // A helper for throwing JavaScript TypeError. | 68 // A helper for throwing JavaScript TypeError. |
| 68 v8::Handle<v8::Value> throwTypeError(const char*, v8::Isolate*); | 69 v8::Handle<v8::Value> throwTypeError(const char*, v8::Isolate*); |
| 69 | 70 |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 582 |
| 582 // Attaches |environment| to |function| and returns it. | 583 // Attaches |environment| to |function| and returns it. |
| 583 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) | 584 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) |
| 584 { | 585 { |
| 585 return v8::FunctionTemplate::New(function, environment)->GetFunction(); | 586 return v8::FunctionTemplate::New(function, environment)->GetFunction(); |
| 586 } | 587 } |
| 587 | 588 |
| 588 } // namespace WebCore | 589 } // namespace WebCore |
| 589 | 590 |
| 590 #endif // V8Binding_h | 591 #endif // V8Binding_h |
| OLD | NEW |