OLD | NEW |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 { | 63 { |
64 return m_context.newLocal(m_isolate); | 64 return m_context.newLocal(m_isolate); |
65 } | 65 } |
66 | 66 |
67 v8::Isolate* isolate() | 67 v8::Isolate* isolate() |
68 { | 68 { |
69 return m_isolate; | 69 return m_isolate; |
70 } | 70 } |
71 | 71 |
72 DOMWindow* domWindow() const; | 72 DOMWindow* domWindow() const; |
| 73 DOMWrapperWorld *domWrapperWorld() const; |
73 ScriptExecutionContext* scriptExecutionContext() const; | 74 ScriptExecutionContext* scriptExecutionContext() const; |
74 | 75 |
75 static ScriptState* forContext(v8::Local<v8::Context>); | 76 static ScriptState* forContext(v8::Local<v8::Context>); |
76 static ScriptState* current(); | 77 static ScriptState* current(); |
77 | 78 |
78 protected: | 79 protected: |
79 ScriptState() | 80 ScriptState() |
80 : m_isolate(v8::Isolate::GetCurrent()) | 81 : m_isolate(v8::Isolate::GetCurrent()) |
81 { | 82 { |
82 } | 83 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 ScriptState* scriptStateFromNode(DOMWrapperWorld*, Node*); | 135 ScriptState* scriptStateFromNode(DOMWrapperWorld*, Node*); |
135 ScriptState* scriptStateFromPage(DOMWrapperWorld*, Page*); | 136 ScriptState* scriptStateFromPage(DOMWrapperWorld*, Page*); |
136 ScriptState* scriptStateFromWorkerContext(WorkerContext*); | 137 ScriptState* scriptStateFromWorkerContext(WorkerContext*); |
137 | 138 |
138 inline DOMWrapperWorld* debuggerWorld() { return mainThreadNormalWorld(); } | 139 inline DOMWrapperWorld* debuggerWorld() { return mainThreadNormalWorld(); } |
139 inline DOMWrapperWorld* pluginWorld() { return mainThreadNormalWorld(); } | 140 inline DOMWrapperWorld* pluginWorld() { return mainThreadNormalWorld(); } |
140 | 141 |
141 } | 142 } |
142 | 143 |
143 #endif // ScriptState_h | 144 #endif // ScriptState_h |
OLD | NEW |