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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 DOMWindow* toDOMWindow(v8::Handle<v8::Context>); | 650 DOMWindow* toDOMWindow(v8::Handle<v8::Context>); |
651 DOMWindow* enteredDOMWindow(v8::Isolate*); | 651 DOMWindow* enteredDOMWindow(v8::Isolate*); |
652 DOMWindow* currentDOMWindow(v8::Isolate*); | 652 DOMWindow* currentDOMWindow(v8::Isolate*); |
653 DOMWindow* callingDOMWindow(v8::Isolate*); | 653 DOMWindow* callingDOMWindow(v8::Isolate*); |
654 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>); | 654 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>); |
655 ExecutionContext* currentExecutionContext(v8::Isolate*); | 655 ExecutionContext* currentExecutionContext(v8::Isolate*); |
656 ExecutionContext* callingExecutionContext(v8::Isolate*); | 656 ExecutionContext* callingExecutionContext(v8::Isolate*); |
657 | 657 |
658 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld
. | 658 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld
. |
659 // This method returns an empty context if there is no frame or the frame is alr
eady detached. | 659 // This method returns an empty context if there is no frame or the frame is alr
eady detached. |
660 v8::Local<v8::Context> toV8Context(ExecutionContext*, DOMWrapperWorld*); | 660 v8::Local<v8::Context> toV8Context(ExecutionContext*, DOMWrapperWorld&); |
661 // Returns a V8 context associated with a LocalFrame and a DOMWrapperWorld. | 661 // Returns a V8 context associated with a LocalFrame and a DOMWrapperWorld. |
662 // This method returns an empty context if the frame is already detached. | 662 // This method returns an empty context if the frame is already detached. |
663 v8::Local<v8::Context> toV8Context(v8::Isolate*, LocalFrame*, DOMWrapperWorld*); | 663 v8::Local<v8::Context> toV8Context(v8::Isolate*, LocalFrame*, DOMWrapperWorld&); |
664 | 664 |
665 // Returns the frame object of the window object associated with | 665 // Returns the frame object of the window object associated with |
666 // a context, if the window is currently being displayed in the LocalFrame. | 666 // a context, if the window is currently being displayed in the LocalFrame. |
667 LocalFrame* toFrameIfNotDetached(v8::Handle<v8::Context>); | 667 LocalFrame* toFrameIfNotDetached(v8::Handle<v8::Context>); |
668 | 668 |
669 // If the current context causes out of memory, JavaScript setting | 669 // If the current context causes out of memory, JavaScript setting |
670 // is disabled and it returns true. | 670 // is disabled and it returns true. |
671 bool handleOutOfMemory(); | 671 bool handleOutOfMemory(); |
672 v8::Local<v8::Value> handleMaxRecursionDepthExceeded(v8::Isolate*); | 672 v8::Local<v8::Value> handleMaxRecursionDepthExceeded(v8::Isolate*); |
673 void crashIfV8IsDead(); | 673 void crashIfV8IsDead(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 v8::HandleScope m_handleScope; | 757 v8::HandleScope m_handleScope; |
758 v8::Handle<v8::Context> m_context; | 758 v8::Handle<v8::Context> m_context; |
759 v8::Context::Scope m_contextScope; | 759 v8::Context::Scope m_contextScope; |
760 RefPtr<DOMWrapperWorld> m_world; | 760 RefPtr<DOMWrapperWorld> m_world; |
761 OwnPtr<V8PerContextData> m_perContextData; | 761 OwnPtr<V8PerContextData> m_perContextData; |
762 }; | 762 }; |
763 | 763 |
764 } // namespace WebCore | 764 } // namespace WebCore |
765 | 765 |
766 #endif // V8Binding_h | 766 #endif // V8Binding_h |
OLD | NEW |