Chromium Code Reviews

Side by Side Diff: sky/engine/bindings/core/v8/WindowProxy.h

Issue 863253002: Update from https://crrev.com/312600 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 66 matching lines...)
77 bool initialize(); 77 bool initialize();
78 78
79 enum GlobalDetachmentBehavior { 79 enum GlobalDetachmentBehavior {
80 DoNotDetachGlobal, 80 DoNotDetachGlobal,
81 DetachGlobal 81 DetachGlobal
82 }; 82 };
83 void disposeContext(GlobalDetachmentBehavior); 83 void disposeContext(GlobalDetachmentBehavior);
84 84
85 // The JavaScript wrapper for the document object is cached on the global 85 // The JavaScript wrapper for the document object is cached on the global
86 // object for fast access. UpdateDocumentProperty sets the wrapper 86 // object for fast access. UpdateDocumentProperty sets the wrapper
87 // for the current document on the global object. ClearDocumentProperty 87 // for the current document on the global object.
88 // deletes the document wrapper from the global object.
89 void updateDocumentProperty(); 88 void updateDocumentProperty();
90 void clearDocumentProperty();
91 89
92 void createContext(); 90 void createContext();
93 bool installDOMWindow(); 91 bool installDOMWindow();
94 92
95 static WindowProxy* enteredIsolatedWorldContext(); 93 static WindowProxy* enteredIsolatedWorldContext();
96 94
97 LocalFrame* m_frame; 95 LocalFrame* m_frame;
98 v8::Isolate* m_isolate; 96 v8::Isolate* m_isolate;
99 RefPtr<ScriptState> m_scriptState; 97 RefPtr<ScriptState> m_scriptState;
100 RefPtr<DOMWrapperWorld> m_world; 98 RefPtr<DOMWrapperWorld> m_world;
101 ScopedPersistent<v8::Object> m_global; 99 ScopedPersistent<v8::Object> m_global;
102 ScopedPersistent<v8::Object> m_document; 100 ScopedPersistent<v8::Object> m_document;
103 }; 101 };
104 102
105 } // namespace blink 103 } // namespace blink
106 104
107 #endif // SKY_ENGINE_BINDINGS_CORE_V8_WINDOWPROXY_H_ 105 #endif // SKY_ENGINE_BINDINGS_CORE_V8_WINDOWPROXY_H_
OLDNEW

Powered by Google App Engine