Chromium Code Reviews| 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..5039d7ae3599fc7e95d78dc5e8f02db175035f39 |
| --- /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; |
|
newt (away)
2013/08/29 05:35:33
is this guaranteed non-null? if so, mention that h
|
| + |
| + /** |
| + * 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; |
| + } |
| +} |