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

Side by Side Diff: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java

Issue 1001573003: [Android] Stop hiding the RWHV layer subtree when hiding the widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Semi-working build Created 5 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.ui.base; 5 package org.chromium.ui.base;
6 6
7 import android.animation.Animator; 7 import android.animation.Animator;
8 import android.animation.AnimatorListenerAdapter; 8 import android.animation.AnimatorListenerAdapter;
9 import android.annotation.SuppressLint; 9 import android.annotation.SuppressLint;
10 import android.app.Activity; 10 import android.app.Activity;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 Object errors = bundle.getSerializable(WINDOW_CALLBACK_ERRORS); 230 Object errors = bundle.getSerializable(WINDOW_CALLBACK_ERRORS);
231 if (errors instanceof HashMap) { 231 if (errors instanceof HashMap) {
232 @SuppressWarnings("unchecked") 232 @SuppressWarnings("unchecked")
233 HashMap<Integer, String> intentErrors = (HashMap<Integer, String>) e rrors; 233 HashMap<Integer, String> intentErrors = (HashMap<Integer, String>) e rrors;
234 mIntentErrors = intentErrors; 234 mIntentErrors = intentErrors;
235 } 235 }
236 } 236 }
237 237
238 /** 238 /**
239 * For window instances associated with an activity, notifies any listeners
240 * that the activity has been paused.
241 */
242 protected void onActivityPaused() {
243 if (mNativeWindowAndroid == 0) return;
244 nativeOnActivityPaused(mNativeWindowAndroid);
245 }
246
247 /**
248 * For window instances associated with an activity, notifies any listeners
249 * that the activity has been paused.
250 */
251 protected void onActivityResumed() {
252 if (mNativeWindowAndroid == 0) return;
253 nativeOnActivityResumed(mNativeWindowAndroid);
254 }
255
256 /**
239 * Responds to the intent result if the intent was created by the native win dow. 257 * Responds to the intent result if the intent was created by the native win dow.
240 * @param requestCode Request code of the requested intent. 258 * @param requestCode Request code of the requested intent.
241 * @param resultCode Result code of the requested intent. 259 * @param resultCode Result code of the requested intent.
242 * @param data The data returned by the intent. 260 * @param data The data returned by the intent.
243 * @return Boolean value of whether the intent was started by the native win dow. 261 * @return Boolean value of whether the intent was started by the native win dow.
244 */ 262 */
245 public boolean onActivityResult(int requestCode, int resultCode, Intent data ) { 263 public boolean onActivityResult(int requestCode, int resultCode, Intent data ) {
246 return false; 264 return false;
247 } 265 }
248 266
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 mAnimationPlaceholderView.setWillNotDraw(true); 363 mAnimationPlaceholderView.setWillNotDraw(true);
346 } 364 }
347 } 365 }
348 }); 366 });
349 } 367 }
350 368
351 private native long nativeInit(); 369 private native long nativeInit();
352 private native void nativeOnVSync(long nativeWindowAndroid, 370 private native void nativeOnVSync(long nativeWindowAndroid,
353 long vsyncTimeMicros, 371 long vsyncTimeMicros,
354 long vsyncPeriodMicros); 372 long vsyncPeriodMicros);
373 private native void nativeOnActivityPaused(long nativeWindowAndroid);
374 private native void nativeOnActivityResumed(long nativeWindowAndroid);
355 private native void nativeDestroy(long nativeWindowAndroid); 375 private native void nativeDestroy(long nativeWindowAndroid);
356 376
357 } 377 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698