| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 ~WindowProxy(); | 57 ~WindowProxy(); |
| 58 DECLARE_TRACE(); | 58 DECLARE_TRACE(); |
| 59 | 59 |
| 60 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ?
m_scriptState->context() : v8::Local<v8::Context>(); } | 60 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ?
m_scriptState->context() : v8::Local<v8::Context>(); } |
| 61 ScriptState* getScriptState() const { return m_scriptState.get(); } | 61 ScriptState* getScriptState() const { return m_scriptState.get(); } |
| 62 | 62 |
| 63 // Update document object of the frame. | 63 // Update document object of the frame. |
| 64 void updateDocument(); | 64 void updateDocument(); |
| 65 | 65 |
| 66 void namedItemAdded(HTMLDocument*, const AtomicString&); |
| 67 void namedItemRemoved(HTMLDocument*, const AtomicString&); |
| 68 |
| 66 // Update the security origin of a document | 69 // Update the security origin of a document |
| 67 // (e.g., after setting docoument.domain). | 70 // (e.g., after setting docoument.domain). |
| 68 void updateSecurityOrigin(SecurityOrigin*); | 71 void updateSecurityOrigin(SecurityOrigin*); |
| 69 | 72 |
| 70 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } | 73 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } |
| 71 bool isGlobalInitialized() { return !m_global.isEmpty(); } | 74 bool isGlobalInitialized() { return !m_global.isEmpty(); } |
| 72 | 75 |
| 73 bool initializeIfNeeded(); | 76 bool initializeIfNeeded(); |
| 74 void updateDocumentWrapper(v8::Local<v8::Object> wrapper); | 77 void updateDocumentWrapper(v8::Local<v8::Object> wrapper); |
| 75 | 78 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 v8::Isolate* m_isolate; | 119 v8::Isolate* m_isolate; |
| 117 RefPtr<ScriptState> m_scriptState; | 120 RefPtr<ScriptState> m_scriptState; |
| 118 RefPtr<DOMWrapperWorld> m_world; | 121 RefPtr<DOMWrapperWorld> m_world; |
| 119 ScopedPersistent<v8::Object> m_global; | 122 ScopedPersistent<v8::Object> m_global; |
| 120 ScopedPersistent<v8::Object> m_document; | 123 ScopedPersistent<v8::Object> m_document; |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace blink | 126 } // namespace blink |
| 124 | 127 |
| 125 #endif // WindowProxy_h | 128 #endif // WindowProxy_h |
| OLD | NEW |