| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include <v8.h> | 43 #include <v8.h> |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 class DOMStringList; | 47 class DOMStringList; |
| 48 class DOMWindow; | 48 class DOMWindow; |
| 49 class Document; | 49 class Document; |
| 50 class Frame; | 50 class Frame; |
| 51 class NodeFilter; | 51 class NodeFilter; |
| 52 class ScriptExecutionContext; | 52 class ScriptExecutionContext; |
| 53 class ScriptWrappable; |
| 53 class XPathNSResolver; | 54 class XPathNSResolver; |
| 54 | 55 |
| 55 const int kMaxRecursionDepth = 22; | 56 const int kMaxRecursionDepth = 22; |
| 56 | 57 |
| 57 // 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 |
| 58 // from zero. | 59 // from zero. |
| 59 v8::Handle<v8::Value> setDOMException(int, v8::Isolate*); | 60 v8::Handle<v8::Value> setDOMException(int, 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*); |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 const v8::Handle<T>* handle = reinterpret_cast<const v8::Handle<T>*>(&va
lue); | 579 const v8::Handle<T>* handle = reinterpret_cast<const v8::Handle<T>*>(&va
lue); |
| 579 return *handle; | 580 return *handle; |
| 580 } | 581 } |
| 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 |
| 589 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); |
| 590 |
| 588 } // namespace WebCore | 591 } // namespace WebCore |
| 589 | 592 |
| 590 #endif // V8Binding_h | 593 #endif // V8Binding_h |
| OLD | NEW |