| Index: Source/core/css/CSSVariablesMapForEachCallback.h
|
| diff --git a/Source/bindings/v8/ScriptString.h b/Source/core/css/CSSVariablesMapForEachCallback.h
|
| similarity index 73%
|
| copy from Source/bindings/v8/ScriptString.h
|
| copy to Source/core/css/CSSVariablesMapForEachCallback.h
|
| index ed493f8bf4866b4fa7c815a4df81a456703301f0..bb412bbce29001678555a659ea02376228ed2f14 100644
|
| --- a/Source/bindings/v8/ScriptString.h
|
| +++ b/Source/core/css/CSSVariablesMapForEachCallback.h
|
| @@ -11,9 +11,6 @@
|
| * copyright notice, this list of conditions and the following disclaimer
|
| * in the documentation and/or other materials provided with the
|
| * distribution.
|
| - * * Neither the name of Google Inc. nor the names of its
|
| - * contributors may be used to endorse or promote products derived from
|
| - * this software without specific prior written permission.
|
| *
|
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| @@ -28,24 +25,24 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef ScriptString_h
|
| -#define ScriptString_h
|
| +#ifndef CSSVariablesMapForEachCallback_h
|
| +#define CSSVariablesMapForEachCallback_h
|
|
|
| #include "bindings/v8/ScriptValue.h"
|
| -#include "bindings/v8/V8Binding.h"
|
| +#include "wtf/RefCounted.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -class ScriptString : public ScriptValue {
|
| -public:
|
| - ScriptString() { }
|
| - ScriptString(v8::Handle<v8::String> value, v8::Isolate* isolate) : ScriptValue(value, isolate) { }
|
| +class CSSVariablesMap;
|
|
|
| - ScriptString concatenateWith(const String&);
|
| - String flattenToString() const;
|
| +class CSSVariablesMapForEachCallback : public RefCounted<CSSVariablesMapForEachCallback> {
|
| +public:
|
| + virtual ~CSSVariablesMapForEachCallback() { }
|
| + virtual bool handleItem(ScriptValue thisValue, const String& value, const String& name, CSSVariablesMap*) = 0;
|
| + virtual bool handleItem(const String& value, const String& name, CSSVariablesMap*) = 0;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // ScriptString_h
|
| +#endif // CSSVariablesMapForEachCallback_h
|
|
|