OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void namedItemRemoved(HTMLDocument*, const AtomicString&); | 67 void namedItemRemoved(HTMLDocument*, const AtomicString&); |
68 | 68 |
69 // Update the security origin of a document | 69 // Update the security origin of a document |
70 // (e.g., after setting docoument.domain). | 70 // (e.g., after setting docoument.domain). |
71 void updateSecurityOrigin(SecurityOrigin*); | 71 void updateSecurityOrigin(SecurityOrigin*); |
72 | 72 |
73 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } | 73 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } |
74 bool isGlobalInitialized() { return !m_global.isEmpty(); } | 74 bool isGlobalInitialized() { return !m_global.isEmpty(); } |
75 | 75 |
76 bool initializeIfNeeded(); | 76 bool initializeIfNeeded(); |
77 void updateDocumentWrapper(v8::Handle<v8::Object> wrapper); | 77 void updateDocumentWrapper(v8::Local<v8::Object> wrapper); |
78 | 78 |
79 void clearForNavigation(); | 79 void clearForNavigation(); |
80 void clearForClose(); | 80 void clearForClose(); |
81 | 81 |
82 void takeGlobalFrom(WindowProxy*); | 82 void takeGlobalFrom(WindowProxy*); |
83 | 83 |
84 DOMWrapperWorld& world() { return *m_world; } | 84 DOMWrapperWorld& world() { return *m_world; } |
85 | 85 |
86 private: | 86 private: |
87 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*); | 87 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*); |
(...skipping 22 matching lines...) Expand all Loading... |
110 v8::Isolate* m_isolate; | 110 v8::Isolate* m_isolate; |
111 RefPtr<ScriptState> m_scriptState; | 111 RefPtr<ScriptState> m_scriptState; |
112 RefPtr<DOMWrapperWorld> m_world; | 112 RefPtr<DOMWrapperWorld> m_world; |
113 ScopedPersistent<v8::Object> m_global; | 113 ScopedPersistent<v8::Object> m_global; |
114 ScopedPersistent<v8::Object> m_document; | 114 ScopedPersistent<v8::Object> m_document; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif // WindowProxy_h | 119 #endif // WindowProxy_h |
OLD | NEW |