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

Side by Side Diff: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorSuggestionListAdapter.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.Color; 8 import android.graphics.Color;
9 import android.graphics.drawable.GradientDrawable; 9 import android.graphics.drawable.GradientDrawable;
10 import android.graphics.drawable.LayerDrawable; 10 import android.graphics.drawable.LayerDrawable;
11 import android.text.TextUtils; 11 import android.text.TextUtils;
12 import android.view.View; 12 import android.view.View;
13 import android.view.ViewGroup; 13 import android.view.ViewGroup;
14 import android.widget.AbsListView; 14 import android.widget.AbsListView;
15 import android.widget.BaseAdapter; 15 import android.widget.BaseAdapter;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 @Override 133 @Override
134 public Object getItem(int position) { 134 public Object getItem(int position) {
135 return null; 135 return null;
136 } 136 }
137 137
138 @Override 138 @Override
139 public int getCount() { 139 public int getCount() {
140 return (mSuggestions.length + COLORS_PER_ROW - 1) / COLORS_PER_ROW; 140 return (mSuggestions.length + COLORS_PER_ROW - 1) / COLORS_PER_ROW;
141 } 141 }
142 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698