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 |