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

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

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 29 matching lines...) Expand all
40 #include "bindings/v8/V8StringResource.h" 40 #include "bindings/v8/V8StringResource.h"
41 #include "bindings/v8/V8ThrowException.h" 41 #include "bindings/v8/V8ThrowException.h"
42 #include "bindings/v8/V8ValueCache.h" 42 #include "bindings/v8/V8ValueCache.h"
43 #include "platform/heap/Heap.h" 43 #include "platform/heap/Heap.h"
44 #include "wtf/MathExtras.h" 44 #include "wtf/MathExtras.h"
45 #include "wtf/text/AtomicString.h" 45 #include "wtf/text/AtomicString.h"
46 #include <v8.h> 46 #include <v8.h>
47 47
48 namespace WebCore { 48 namespace WebCore {
49 49
50 class DOMWindow; 50 class LocalDOMWindow;
51 class Document; 51 class Document;
52 class EventListener; 52 class EventListener;
53 class ExecutionContext; 53 class ExecutionContext;
54 class ExceptionState; 54 class ExceptionState;
55 class LocalFrame; 55 class LocalFrame;
56 class NodeFilter; 56 class NodeFilter;
57 class ScriptWrappable; 57 class ScriptWrappable;
58 class XPathNSResolver; 58 class XPathNSResolver;
59 59
60 namespace TraceEvent { 60 namespace TraceEvent {
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 } 752 }
753 753
754 TONATIVE_EXCEPTION(uint32_t, sequenceLength, lengthValue->Int32Value()); 754 TONATIVE_EXCEPTION(uint32_t, sequenceLength, lengthValue->Int32Value());
755 length = sequenceLength; 755 length = sequenceLength;
756 return v8Value; 756 return v8Value;
757 } 757 }
758 758
759 v8::Isolate* toIsolate(ExecutionContext*); 759 v8::Isolate* toIsolate(ExecutionContext*);
760 v8::Isolate* toIsolate(LocalFrame*); 760 v8::Isolate* toIsolate(LocalFrame*);
761 761
762 DOMWindow* toDOMWindow(v8::Handle<v8::Value>, v8::Isolate*); 762 LocalDOMWindow* toDOMWindow(v8::Handle<v8::Value>, v8::Isolate*);
763 DOMWindow* toDOMWindow(v8::Handle<v8::Context>); 763 LocalDOMWindow* toDOMWindow(v8::Handle<v8::Context>);
764 DOMWindow* enteredDOMWindow(v8::Isolate*); 764 LocalDOMWindow* enteredDOMWindow(v8::Isolate*);
765 DOMWindow* currentDOMWindow(v8::Isolate*); 765 LocalDOMWindow* currentDOMWindow(v8::Isolate*);
766 DOMWindow* callingDOMWindow(v8::Isolate*); 766 LocalDOMWindow* callingDOMWindow(v8::Isolate*);
767 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>); 767 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>);
768 ExecutionContext* currentExecutionContext(v8::Isolate*); 768 ExecutionContext* currentExecutionContext(v8::Isolate*);
769 ExecutionContext* callingExecutionContext(v8::Isolate*); 769 ExecutionContext* callingExecutionContext(v8::Isolate*);
770 770
771 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld . 771 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld .
772 // This method returns an empty context if there is no frame or the frame is alr eady detached. 772 // This method returns an empty context if there is no frame or the frame is alr eady detached.
773 v8::Local<v8::Context> toV8Context(ExecutionContext*, DOMWrapperWorld&); 773 v8::Local<v8::Context> toV8Context(ExecutionContext*, DOMWrapperWorld&);
774 // Returns a V8 context associated with a LocalFrame and a DOMWrapperWorld. 774 // Returns a V8 context associated with a LocalFrame and a DOMWrapperWorld.
775 // This method returns an empty context if the frame is already detached. 775 // This method returns an empty context if the frame is already detached.
776 v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&); 776 v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 m_block.Reset(); 963 m_block.Reset();
964 } 964 }
965 965
966 private: 966 private:
967 v8::TryCatch& m_block; 967 v8::TryCatch& m_block;
968 }; 968 };
969 969
970 } // namespace WebCore 970 } // namespace WebCore
971 971
972 #endif // V8Binding_h 972 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698