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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h

Issue 1858613002: bindings: Makes the window object be the inner global object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void setSecurityToken(SecurityOrigin*); 98 void setSecurityToken(SecurityOrigin*);
99 99
100 // The JavaScript wrapper for the document object is cached on the global 100 // The JavaScript wrapper for the document object is cached on the global
101 // object for fast access. UpdateDocumentProperty sets the wrapper 101 // object for fast access. UpdateDocumentProperty sets the wrapper
102 // for the current document on the global object. 102 // for the current document on the global object.
103 void updateDocumentProperty(); 103 void updateDocumentProperty();
104 104
105 // Updates Activity Logger for the current context. 105 // Updates Activity Logger for the current context.
106 void updateActivityLogger(); 106 void updateActivityLogger();
107 107
108 // Creates a new v8::Context with the window wrapper object as the global
109 // object (aka the inner global). Note that the window wrapper and its
110 // prototype chain do not get fully initialized yet, e.g. the window
111 // wrapper is not yet associated with the native DOMWindow object.
108 void createContext(); 112 void createContext();
109 bool installDOMWindow(); 113
114 // Associates the window wrapper and its prototype chain with the native
115 // DOMWindow object. Also does some more Window-specific initialization.
116 bool setupWindowPrototypeChain();
110 117
111 Member<Frame> m_frame; 118 Member<Frame> m_frame;
112 v8::Isolate* m_isolate; 119 v8::Isolate* m_isolate;
113 RefPtr<ScriptState> m_scriptState; 120 RefPtr<ScriptState> m_scriptState;
114 RefPtr<DOMWrapperWorld> m_world; 121 RefPtr<DOMWrapperWorld> m_world;
115 ScopedPersistent<v8::Object> m_global; 122 ScopedPersistent<v8::Object> m_global;
116 ScopedPersistent<v8::Object> m_document; 123 ScopedPersistent<v8::Object> m_document;
117 }; 124 };
118 125
119 } // namespace blink 126 } // namespace blink
120 127
121 #endif // WindowProxy_h 128 #endif // WindowProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698