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