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

Side by Side Diff: ui/android/java/src/org/chromium/ui/ColorPickerAdvanced.java

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.ui; 5 package org.chromium.ui;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Color; 8 import android.graphics.Color;
9 import android.util.AttributeSet; 9 import android.util.AttributeSet;
10 import android.view.LayoutInflater; 10 import android.view.LayoutInflater;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 */ 63 */
64 private void init() { 64 private void init() {
65 setOrientation(LinearLayout.VERTICAL); 65 setOrientation(LinearLayout.VERTICAL);
66 66
67 mHueDetails = createAndAddNewGradient(R.string.color_picker_hue, 67 mHueDetails = createAndAddNewGradient(R.string.color_picker_hue,
68 HUE_SEEK_BAR_MAX, this); 68 HUE_SEEK_BAR_MAX, this);
69 mSaturationDetails = createAndAddNewGradient(R.string.color_picker_satur ation, 69 mSaturationDetails = createAndAddNewGradient(R.string.color_picker_satur ation,
70 SATURATION_SEEK_BAR_MAX, this); 70 SATURATION_SEEK_BAR_MAX, this);
71 mValueDetails = createAndAddNewGradient(R.string.color_picker_value, 71 mValueDetails = createAndAddNewGradient(R.string.color_picker_value,
72 VALUE_SEEK_BAR_MAX, this); 72 VALUE_SEEK_BAR_MAX, this);
73
74 refreshGradientComponents(); 73 refreshGradientComponents();
75 } 74 }
76 75
77 /** 76 /**
78 * Creates a new GradientDetails object from the parameters provided, initia lizes it, 77 * Creates a new GradientDetails object from the parameters provided, initia lizes it,
79 * and adds it to this advanced view. 78 * and adds it to this advanced view.
80 * 79 *
81 * @param textResourceId The text to display for the label. 80 * @param textResourceId The text to display for the label.
82 * @param seekBarMax The maximum value of the seek bar for the gradient. 81 * @param seekBarMax The maximum value of the seek bar for the gradient.
83 * @param seekBarListener Object listening to when the user changes the seek bar. 82 * @param seekBarListener Object listening to when the user changes the seek bar.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 @Override 242 @Override
244 public void onStartTrackingTouch(SeekBar seekBar) { 243 public void onStartTrackingTouch(SeekBar seekBar) {
245 // Do nothing. 244 // Do nothing.
246 } 245 }
247 246
248 @Override 247 @Override
249 public void onStopTrackingTouch(SeekBar seekBar) { 248 public void onStopTrackingTouch(SeekBar seekBar) {
250 // Do nothing. 249 // Do nothing.
251 } 250 }
252 } 251 }
OLDNEW
« no previous file with comments | « ui/android/java/resource_map/org/chromium/ui/R.java ('k') | ui/android/java/src/org/chromium/ui/ColorPickerDialog.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698