Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: Source/bindings/core/v8/ScriptValue.h

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/core/v8/ScriptValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/core/v8/ScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698