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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarLayout.java

Issue 1256343004: [Android] Add phone progress bar animation behind a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: telemetry_perf_unittest fix attempt #1 Created 5 years, 4 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.toolbar; 5 package org.chromium.chrome.browser.toolbar;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.content.Context; 8 import android.content.Context;
9 import android.graphics.Canvas; 9 import android.graphics.Canvas;
10 import android.graphics.Rect; 10 import android.graphics.Rect;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 }); 162 });
163 mAppMenuButtonHelper = appMenuButtonHelper; 163 mAppMenuButtonHelper = appMenuButtonHelper;
164 } 164 }
165 165
166 /** 166 /**
167 * This function handles native dependent initialization for this class 167 * This function handles native dependent initialization for this class
168 */ 168 */
169 public void onNativeLibraryReady() { 169 public void onNativeLibraryReady() {
170 mNativeLibraryReady = true; 170 mNativeLibraryReady = true;
171 mProgressBar.initializeAnimation();
171 } 172 }
172 173
173 /** 174 /**
174 * @return The menu button view. 175 * @return The menu button view.
175 */ 176 */
176 protected View getMenuButton() { 177 protected View getMenuButton() {
177 return mMenuButton; 178 return mMenuButton;
178 } 179 }
179 180
180 /** 181 /**
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 } 585 }
585 586
586 /** 587 /**
587 * Opens hompage in the current tab. 588 * Opens hompage in the current tab.
588 */ 589 */
589 protected void openHomepage() { 590 protected void openHomepage() {
590 getLocationBar().hideSuggestions(); 591 getLocationBar().hideSuggestions();
591 if (mToolbarTabController != null) mToolbarTabController.openHomepage(); 592 if (mToolbarTabController != null) mToolbarTabController.openHomepage();
592 } 593 }
593 } 594 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698