| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |