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

Unified Diff: ui/android/java/src/org/chromium/ui/ColorSuggestion.java

Issue 23593006: Add support for datalist to input type color Base URL: https://chromium.googlesource.com/chromium/src.git@colorstretch
Patch Set: 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
Index: ui/android/java/src/org/chromium/ui/ColorSuggestion.java
diff --git a/ui/android/java/src/org/chromium/ui/ColorSuggestion.java b/ui/android/java/src/org/chromium/ui/ColorSuggestion.java
new file mode 100644
index 0000000000000000000000000000000000000000..4e964a767d247c4fe7973be01bab42ea098cfbbb
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/ColorSuggestion.java
@@ -0,0 +1,24 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.ui;
+
+/**
+ * Color suggestion container used to store information for each color button that will be shown in
+ * the simple color picker.
+ */
+public class ColorSuggestion {
+ final int mColor;
+ final String mLabel;
+
+ /**
+ * Constructs a color suggestion container.
+ * @param color The suggested color.
+ * @param label The label for the suggestion.
+ */
+ public ColorSuggestion(int color, String label) {
+ mColor = color;
+ mLabel = label;
+ }
+}
« no previous file with comments | « ui/android/java/src/org/chromium/ui/ColorPickerSimple.java ('k') | ui/android/java/strings/android_ui_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698