Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: trunk/Source/bindings/v8/V8Binding.h

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « trunk/Source/bindings/v8/V8AbstractEventListener.cpp ('k') | trunk/Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698