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

Unified Diff: Source/core/css/CSSVariablesMapForEachCallback.h

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and review changes Created 7 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSVariablesMap.idl ('k') | Source/core/css/CSSVariablesMapForEachCallback.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/css/CSSVariablesMap.idl ('k') | Source/core/css/CSSVariablesMapForEachCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698