| 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 const v8::Handle<T>* handle = reinterpret_cast<const v8::Handle<T>*>(&va
lue); | 678 const v8::Handle<T>* handle = reinterpret_cast<const v8::Handle<T>*>(&va
lue); |
| 679 return *handle; | 679 return *handle; |
| 680 } | 680 } |
| 681 | 681 |
| 682 // Attaches |environment| to |function| and returns it. | 682 // Attaches |environment| to |function| and returns it. |
| 683 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment, v8::Isolate* isolate) | 683 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment, v8::Isolate* isolate) |
| 684 { | 684 { |
| 685 return v8::Function::New(isolate, function, environment); | 685 return v8::Function::New(isolate, function, environment); |
| 686 } | 686 } |
| 687 | 687 |
| 688 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); | 688 v8::Local<v8::Value> getHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, co
nst char*); |
| 689 v8::Local<v8::Value> getHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, v8
::Handle<v8::String>); |
| 690 bool setHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, const char*, v8::H
andle<v8::Value>); |
| 691 bool setHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::Str
ing>, v8::Handle<v8::Value>); |
| 692 bool deleteHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, const char*); |
| 693 bool deleteHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::
String>); |
| 694 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, const char*); |
| 695 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String>); |
| 689 | 696 |
| 690 v8::Isolate* mainThreadIsolate(); | 697 v8::Isolate* mainThreadIsolate(); |
| 691 v8::Isolate* toIsolate(ExecutionContext*); | 698 v8::Isolate* toIsolate(ExecutionContext*); |
| 692 v8::Isolate* toIsolate(Frame*); | 699 v8::Isolate* toIsolate(Frame*); |
| 693 | 700 |
| 694 // Can only be called by blink::initialize | 701 // Can only be called by blink::initialize |
| 695 void setMainThreadIsolate(v8::Isolate*); | 702 void setMainThreadIsolate(v8::Isolate*); |
| 696 | 703 |
| 697 // Converts a DOM object to a v8 value. | 704 // Converts a DOM object to a v8 value. |
| 698 // This is a no-inline version of toV8(). If you want to call toV8() | 705 // This is a no-inline version of toV8(). If you want to call toV8() |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 } | 737 } |
| 731 | 738 |
| 732 private: | 739 private: |
| 733 v8::Isolate* m_isolate; | 740 v8::Isolate* m_isolate; |
| 734 }; | 741 }; |
| 735 #endif | 742 #endif |
| 736 | 743 |
| 737 } // namespace WebCore | 744 } // namespace WebCore |
| 738 | 745 |
| 739 #endif // V8Binding_h | 746 #endif // V8Binding_h |
| OLD | NEW |