| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 { | 134 { |
| 135 m_value = nullptr; | 135 m_value = nullptr; |
| 136 } | 136 } |
| 137 | 137 |
| 138 v8::Handle<v8::Value> v8Value() const; | 138 v8::Handle<v8::Value> v8Value() const; |
| 139 v8::Handle<v8::Value> v8ValueUnsafe() const; | 139 v8::Handle<v8::Value> v8ValueUnsafe() const; |
| 140 | 140 |
| 141 bool toString(String&) const; | 141 bool toString(String&) const; |
| 142 PassRefPtr<JSONValue> toJSONValue(ScriptState*) const; | 142 PassRefPtr<JSONValue> toJSONValue(ScriptState*) const; |
| 143 | 143 |
| 144 static ScriptValue createNull(ScriptState*); |
| 145 |
| 144 private: | 146 private: |
| 145 RefPtr<ScriptState> m_scriptState; | 147 RefPtr<ScriptState> m_scriptState; |
| 146 RefPtr<SharedPersistent<v8::Value> > m_value; | 148 RefPtr<SharedPersistent<v8::Value> > m_value; |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace blink | 151 } // namespace blink |
| 150 | 152 |
| 151 #endif // ScriptValue_h | 153 #endif // ScriptValue_h |
| OLD | NEW |