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

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
« no previous file with comments | « Source/platform/ColorChooserClient.h ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/ColorSuggestion.h
diff --git a/Source/core/dom/Promise.h b/Source/platform/ColorSuggestion.h
similarity index 83%
copy from Source/core/dom/Promise.h
copy to Source/platform/ColorSuggestion.h
index 2c842aa4c117365f9c564c21d18cf38dc6a1a6d4..c012792e7effb0a37ca73f1c0601f6bf2baa9089 100644
--- a/Source/core/dom/Promise.h
+++ b/Source/platform/ColorSuggestion.h
@@ -28,19 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// FIXME: This file should be deleted.
-#ifndef Promise_h
-#define Promise_h
+#ifndef ColorSuggestion_h
+#define ColorSuggestion_h
-#include "wtf/RefCounted.h"
+#include "platform/graphics/Color.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
-// An empty class. This is here because a generated file use it.
-class Promise : public RefCounted<Promise> {
+struct ColorSuggestion {
+ Color color;
+ String label;
+
+ ColorSuggestion(const Color& colorValue, const String& label)
+ : color(colorValue)
+ , label(label)
+ { }
};
} // namespace WebCore
-
-#endif // Promise_h
+#endif // ColorSuggestion_h
« no previous file with comments | « Source/platform/ColorChooserClient.h ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698