| 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.init; | 5 package org.chromium.chrome.browser.init; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.content.Context; | 10 import android.content.Context; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 @Override | 200 @Override |
| 201 public void onLayoutChange(View v, int left, int top, int ri
ght, int bottom, | 201 public void onLayoutChange(View v, int left, int top, int ri
ght, int bottom, |
| 202 int oldLeft, int oldTop, int oldRight, int oldBottom
) { | 202 int oldLeft, int oldTop, int oldRight, int oldBottom
) { |
| 203 checkOrientation(); | 203 checkOrientation(); |
| 204 } | 204 } |
| 205 }); | 205 }); |
| 206 mMemoryUma = new MemoryUma(); | 206 mMemoryUma = new MemoryUma(); |
| 207 mNativeInitializationController.onNativeInitializationComplete(); | 207 mNativeInitializationController.onNativeInitializationComplete(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 /** | |
| 211 * Actions that may be run at some point after startup. Place tasks that are
not critical to the | |
| 212 * startup path here. This method will be called automatically and should n
ot be called | |
| 213 * directly by subclasses. | |
| 214 */ | |
| 215 protected void onDeferredStartup() { } | |
| 216 | |
| 217 @Override | 210 @Override |
| 218 public void onStartupFailure() { | 211 public void onStartupFailure() { |
| 219 ProcessInitException e = | 212 ProcessInitException e = |
| 220 new ProcessInitException(LoaderErrors.LOADER_ERROR_NATIVE_STARTU
P_FAILED); | 213 new ProcessInitException(LoaderErrors.LOADER_ERROR_NATIVE_STARTU
P_FAILED); |
| 221 ChromeApplication.reportStartupErrorAndExit(e); | 214 ChromeApplication.reportStartupErrorAndExit(e); |
| 222 } | 215 } |
| 223 | 216 |
| 224 /** | 217 /** |
| 225 * Extending classes should override {@link AsyncInitializationActivity#preI
nflationStartup()}, | 218 * Extending classes should override {@link AsyncInitializationActivity#preI
nflationStartup()}, |
| 226 * {@link AsyncInitializationActivity#setContentView()} and | 219 * {@link AsyncInitializationActivity#setContentView()} and |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 getDecorView().setVisibility(View.GONE); | 649 getDecorView().setVisibility(View.GONE); |
| 657 } | 650 } |
| 658 getViewTreeObserver().removeOnPreDrawListener(mPreDrawLi
stener); | 651 getViewTreeObserver().removeOnPreDrawListener(mPreDrawLi
stener); |
| 659 } | 652 } |
| 660 }); | 653 }); |
| 661 return true; | 654 return true; |
| 662 } | 655 } |
| 663 }; | 656 }; |
| 664 } | 657 } |
| 665 } | 658 } |
| OLD | NEW |