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

Unified Diff: Source/platform/ColorSuggestion.h

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
Index: Source/platform/ColorSuggestion.h
diff --git a/Source/core/inspector/JSONParser.h b/Source/platform/ColorSuggestion.h
similarity index 82%
copy from Source/core/inspector/JSONParser.h
copy to Source/platform/ColorSuggestion.h
index 7979944437139188ce4820f3e44a814811029f37..f5384d9c185f166021c3cdfe826ec0d0e3907f93 100644
--- a/Source/core/inspector/JSONParser.h
+++ b/Source/platform/ColorSuggestion.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,18 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSONParser_h
-#define JSONParser_h
+#ifndef ColorSuggestion_h
+#define ColorSuggestion_h
-#include "wtf/PassRefPtr.h"
+#include "platform/graphics/Color.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class JSONValue;
+struct ColorSuggestion {
+ Color color;
+ String label;
-PassRefPtr<JSONValue> parseJSON(const String& json);
+ ColorSuggestion(const Color& colorValue, const String& label)
+ : color(colorValue)
+ , label(label)
+ { }
+};
} // namespace WebCore
-#endif // !defined(JSONParser_h)
+#endif // ColorSuggestion_h

Powered by Google App Engine
This is Rietveld 408576698