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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceDocument.cpp

Issue 451013003: Rename V8WindowShell to WindowProxy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceDocument.h" 8 #include "V8TestInterfaceDocument.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
11 #include "bindings/core/v8/ScriptController.h" 11 #include "bindings/core/v8/ScriptController.h"
12 #include "bindings/core/v8/V8DOMConfiguration.h" 12 #include "bindings/core/v8/V8DOMConfiguration.h"
13 #include "bindings/core/v8/V8HiddenValue.h" 13 #include "bindings/core/v8/V8HiddenValue.h"
14 #include "bindings/core/v8/V8ObjectConstructor.h" 14 #include "bindings/core/v8/V8ObjectConstructor.h"
15 #include "bindings/core/v8/V8WindowShell.h" 15 #include "bindings/core/v8/WindowProxy.h"
16 #include "core/dom/ContextFeatures.h" 16 #include "core/dom/ContextFeatures.h"
17 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
18 #include "core/frame/LocalFrame.h" 18 #include "core/frame/LocalFrame.h"
19 #include "platform/RuntimeEnabledFeatures.h" 19 #include "platform/RuntimeEnabledFeatures.h"
20 #include "platform/TraceEvent.h" 20 #include "platform/TraceEvent.h"
21 #include "wtf/GetPtr.h" 21 #include "wtf/GetPtr.h"
22 #include "wtf/RefPtr.h" 22 #include "wtf/RefPtr.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 v8::Handle<v8::Object> wrap(TestInterfaceDocument* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 92 v8::Handle<v8::Object> wrap(TestInterfaceDocument* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
93 { 93 {
94 ASSERT(impl); 94 ASSERT(impl);
95 v8::Handle<v8::Object> wrapper = V8TestInterfaceDocument::createWrapper(impl , creationContext, isolate); 95 v8::Handle<v8::Object> wrapper = V8TestInterfaceDocument::createWrapper(impl , creationContext, isolate);
96 if (wrapper.IsEmpty()) 96 if (wrapper.IsEmpty())
97 return wrapper; 97 return wrapper;
98 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); 98 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate);
99 if (world.isMainWorld()) { 99 if (world.isMainWorld()) {
100 if (LocalFrame* frame = impl->frame()) 100 if (LocalFrame* frame = impl->frame())
101 frame->script().windowShell(world)->updateDocumentWrapper(wrapper); 101 frame->script().windowProxy(world)->updateDocumentWrapper(wrapper);
102 } 102 }
103 return wrapper; 103 return wrapper;
104 } 104 }
105 105
106 v8::Handle<v8::Object> V8TestInterfaceDocument::createWrapper(PassRefPtrWillBeRa wPtr<TestInterfaceDocument> impl, v8::Handle<v8::Object> creationContext, v8::Is olate* isolate) 106 v8::Handle<v8::Object> V8TestInterfaceDocument::createWrapper(PassRefPtrWillBeRa wPtr<TestInterfaceDocument> impl, v8::Handle<v8::Object> creationContext, v8::Is olate* isolate)
107 { 107 {
108 ASSERT(impl); 108 ASSERT(impl);
109 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceDocument>(impl.get(), i solate)); 109 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceDocument>(impl.get(), i solate));
110 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { 110 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
111 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 111 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
(...skipping 26 matching lines...) Expand all
138 #endif // !ENABLE(OILPAN) 138 #endif // !ENABLE(OILPAN)
139 } 139 }
140 140
141 template<> 141 template<>
142 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 142 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
143 { 143 {
144 return toV8(impl, creationContext, isolate); 144 return toV8(impl, creationContext, isolate);
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698