Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java |
| index 8654f436c7b20c8ae97221a8959c0adc4a76f973..b6970742d08eaf5ca6eec09cd1ccabfcc7e7dc37 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java |
| @@ -54,6 +54,8 @@ import org.chromium.ui.text.SpanApplier.SpanInfo; |
| import java.util.Locale; |
| +import jp.tomorrowkey.android.gifplayer.BaseGifImage; |
| + |
| /** |
| * The native new tab page, represented by some basic data such as title and url, and an Android |
| * View that displays the page. |
| @@ -538,6 +540,20 @@ public class NewTabPageView extends FrameLayout |
| } |
| /** |
| + * Updates the GIF animation for the logo. |
| + */ |
| + void updateLogoGif(BaseGifImage gifImage) { |
|
newt (away)
2015/09/18 20:46:03
how about "playAnimatedLogo()"?
Ian Wen
2015/09/22 21:39:06
Done.
|
| + mSearchProviderLogoView.updateGif(gifImage); |
| + } |
| + |
| + /** |
| + * @return Whether the GIF animation is playing in the logo. |
| + */ |
| + boolean isGifPlaying() { |
|
newt (away)
2015/09/18 20:46:03
"isAnimatedLogoPlaying()"
Ian Wen
2015/09/22 21:39:06
Done.
|
| + return mSearchProviderLogoView.isGifPlaying(); |
| + } |
| + |
| + /** |
| * @return Whether URL focus animations are currently disabled. |
| */ |
| boolean urlFocusAnimationsDisabled() { |