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; | 5 package org.chromium.chrome.browser; |
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.app.SearchManager; | 10 import android.app.SearchManager; |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 }); | 1174 }); |
1175 } | 1175 } |
1176 | 1176 |
1177 mRemoveWindowBackgroundDone = true; | 1177 mRemoveWindowBackgroundDone = true; |
1178 } | 1178 } |
1179 | 1179 |
1180 @Override | 1180 @Override |
1181 public void finishNativeInitialization() { | 1181 public void finishNativeInitialization() { |
1182 mNativeInitialized = true; | 1182 mNativeInitialized = true; |
1183 maybeRemoveWindowBackground(); | 1183 maybeRemoveWindowBackground(); |
1184 DownloadManagerService.getDownloadManagerService( | 1184 DownloadManagerService.getDownloadManagerService().onActivityLaunched(); |
1185 getApplicationContext()).onActivityLaunched(); | |
1186 | 1185 |
1187 VrShellDelegate.onNativeLibraryAvailable(); | 1186 VrShellDelegate.onNativeLibraryAvailable(); |
1188 super.finishNativeInitialization(); | 1187 super.finishNativeInitialization(); |
1189 } | 1188 } |
1190 | 1189 |
1191 /** | 1190 /** |
1192 * Called when the accessibility status of this device changes. This might
be triggered by | 1191 * Called when the accessibility status of this device changes. This might
be triggered by |
1193 * touch exploration or general accessibility status updates. It is an aggr
egate of two other | 1192 * touch exploration or general accessibility status updates. It is an aggr
egate of two other |
1194 * accessibility update methods. | 1193 * accessibility update methods. |
1195 * @see #onAccessibilityModeChanged(boolean) | 1194 * @see #onAccessibilityModeChanged(boolean) |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 * draw over VR contents should be hidden in this call. | 2135 * draw over VR contents should be hidden in this call. |
2137 */ | 2136 */ |
2138 public void onEnterVR() {} | 2137 public void onEnterVR() {} |
2139 | 2138 |
2140 /** | 2139 /** |
2141 * Called when VR mode using this activity is exited. Any state set for VR s
hould be restored | 2140 * Called when VR mode using this activity is exited. Any state set for VR s
hould be restored |
2142 * in this call, including showing 2D UI that was hidden. | 2141 * in this call, including showing 2D UI that was hidden. |
2143 */ | 2142 */ |
2144 public void onExitVR() {} | 2143 public void onExitVR() {} |
2145 } | 2144 } |
OLD | NEW |