| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 ASSERT(isEmpty() || m_scriptState); | 78 ASSERT(isEmpty() || m_scriptState); |
| 79 } | 79 } |
| 80 | 80 |
| 81 ScriptValue(const ScriptValue& value) | 81 ScriptValue(const ScriptValue& value) |
| 82 : m_scriptState(value.m_scriptState) | 82 : m_scriptState(value.m_scriptState) |
| 83 , m_value(value.m_value) | 83 , m_value(value.m_value) |
| 84 { | 84 { |
| 85 ASSERT(isEmpty() || m_scriptState); | 85 ASSERT(isEmpty() || m_scriptState); |
| 86 } | 86 } |
| 87 | 87 |
| 88 ScriptState* scriptState() const | 88 ScriptState* getScriptState() const |
| 89 { | 89 { |
| 90 return m_scriptState.get(); | 90 return m_scriptState.get(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 v8::Isolate* isolate() const | 93 v8::Isolate* isolate() const |
| 94 { | 94 { |
| 95 return m_scriptState ? m_scriptState->isolate() : v8::Isolate::GetCurren
t(); | 95 return m_scriptState ? m_scriptState->isolate() : v8::Isolate::GetCurren
t(); |
| 96 } | 96 } |
| 97 | 97 |
| 98 v8::Local<v8::Context> context() const | 98 v8::Local<v8::Context> context() const |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 static ScriptValue createNull(ScriptState*); | 182 static ScriptValue createNull(ScriptState*); |
| 183 | 183 |
| 184 private: | 184 private: |
| 185 RefPtr<ScriptState> m_scriptState; | 185 RefPtr<ScriptState> m_scriptState; |
| 186 RefPtr<SharedPersistent<v8::Value>> m_value; | 186 RefPtr<SharedPersistent<v8::Value>> m_value; |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace blink | 189 } // namespace blink |
| 190 | 190 |
| 191 #endif // ScriptValue_h | 191 #endif // ScriptValue_h |
| OLD | NEW |