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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkSalientImageView.java

Issue 1206673003: Merge java_staging/src into java/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.chrome.browser.enhancedbookmarks; 5 package org.chromium.chrome.browser.enhancedbookmarks;
6 6
7 import android.animation.AnimatorListenerAdapter; 7 import android.animation.AnimatorListenerAdapter;
8 import android.content.Context; 8 import android.content.Context;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 import android.graphics.BitmapShader; 10 import android.graphics.BitmapShader;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 }; 171 };
172 172
173 boolean isSalientImageLoaded = model.salientImageForUrl(url, mSalientIma geCallback); 173 boolean isSalientImageLoaded = model.salientImageForUrl(url, mSalientIma geCallback);
174 174
175 // If there is no image or the image is still loading asynchronously, sh ow pure color. 175 // If there is no image or the image is still loading asynchronously, sh ow pure color.
176 if (!isSalientImageLoaded) { 176 if (!isSalientImageLoaded) {
177 mSolidColorImage.setImageDrawable(new CircularDrawable(color)); 177 mSolidColorImage.setImageDrawable(new CircularDrawable(color));
178 } 178 }
179 } 179 }
180 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698