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

Side by Side Diff: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorPickerAdvancedComponent.java

Issue 2398543003: Move Android view based ColorPicker from ui/ to components/ (Closed)
Patch Set: add owners Created 4 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 unified diff | Download patch
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.components.web_contents_delegate_android;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.drawable.GradientDrawable; 8 import android.graphics.drawable.GradientDrawable;
9 import android.view.View; 9 import android.view.View;
10 import android.widget.SeekBar; 10 import android.widget.SeekBar;
11 import android.widget.SeekBar.OnSeekBarChangeListener; 11 import android.widget.SeekBar.OnSeekBarChangeListener;
12 import android.widget.TextView; 12 import android.widget.TextView;
13 13
14 import org.chromium.base.ApiCompatibilityUtils; 14 import org.chromium.base.ApiCompatibilityUtils;
15 15
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 * Sets the colors for the gradient view to interpolate through. 78 * Sets the colors for the gradient view to interpolate through.
79 * 79 *
80 * @param newColors The set of colors representing the interpolation points for the gradient. 80 * @param newColors The set of colors representing the interpolation points for the gradient.
81 */ 81 */
82 public void setGradientColors(int[] newColors) { 82 public void setGradientColors(int[] newColors) {
83 mGradientColors = newColors.clone(); 83 mGradientColors = newColors.clone();
84 mGradientDrawable.setColors(mGradientColors); 84 mGradientDrawable.setColors(mGradientColors);
85 mGradientView.setBackground(mGradientDrawable); 85 mGradientView.setBackground(mGradientDrawable);
86 } 86 }
87 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698