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

Side by Side Diff: Source/bindings/v8/V8WindowShell.cpp

Issue 26547005: IDL compiler: [PerContextEnabled] for getters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 7 years, 2 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/v8/V8PerContextData.cpp ('k') | Source/bindings/v8/WrapperTypeInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 bool V8WindowShell::installDOMWindow() 303 bool V8WindowShell::installDOMWindow()
304 { 304 {
305 DOMWrapperWorld::setInitializingWindow(true); 305 DOMWrapperWorld::setInitializingWindow(true);
306 DOMWindow* window = m_frame->domWindow(); 306 DOMWindow* window = m_frame->domWindow();
307 v8::Local<v8::Object> windowWrapper = V8ObjectConstructor::newInstance(V8Per ContextData::from(m_context.newLocal(m_isolate))->constructorForType(&V8Window:: info)); 307 v8::Local<v8::Object> windowWrapper = V8ObjectConstructor::newInstance(V8Per ContextData::from(m_context.newLocal(m_isolate))->constructorForType(&V8Window:: info));
308 if (windowWrapper.IsEmpty()) 308 if (windowWrapper.IsEmpty())
309 return false; 309 return false;
310 310
311 V8Window::installPerContextProperties(windowWrapper, window, m_isolate); 311 V8Window::installPerContextEnabledProperties(windowWrapper, window, m_isolat e);
312 312
313 V8DOMWrapper::setNativeInfo(v8::Handle<v8::Object>::Cast(windowWrapper->GetP rototype()), &V8Window::info, window); 313 V8DOMWrapper::setNativeInfo(v8::Handle<v8::Object>::Cast(windowWrapper->GetP rototype()), &V8Window::info, window);
314 314
315 // Install the windowWrapper as the prototype of the innerGlobalObject. 315 // Install the windowWrapper as the prototype of the innerGlobalObject.
316 // The full structure of the global object is as follows: 316 // The full structure of the global object is as follows:
317 // 317 //
318 // outerGlobalObject (Empty object, remains after navigation) 318 // outerGlobalObject (Empty object, remains after navigation)
319 // -- has prototype --> innerGlobalObject (Holds global variables, changes during navigation) 319 // -- has prototype --> innerGlobalObject (Holds global variables, changes during navigation)
320 // -- has prototype --> DOMWindow instance 320 // -- has prototype --> DOMWindow instance
321 // -- has prototype --> Window.prototype 321 // -- has prototype --> Window.prototype
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 void V8WindowShell::updateSecurityOrigin() 502 void V8WindowShell::updateSecurityOrigin()
503 { 503 {
504 ASSERT(m_world->isMainWorld()); 504 ASSERT(m_world->isMainWorld());
505 if (m_context.isEmpty()) 505 if (m_context.isEmpty())
506 return; 506 return;
507 v8::HandleScope handleScope(m_isolate); 507 v8::HandleScope handleScope(m_isolate);
508 setSecurityToken(); 508 setSecurityToken();
509 } 509 }
510 510
511 } // WebCore 511 } // WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8PerContextData.cpp ('k') | Source/bindings/v8/WrapperTypeInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698