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

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

Issue 2545343002: Add support for virtual files to Clank. (Closed)
Patch Set: Add support for virtual files to Clank. Created 4 years 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.annotation.TargetApi; 10 import android.annotation.TargetApi;
11 import android.app.Activity; 11 import android.app.Activity;
12 import android.app.PendingIntent; 12 import android.app.PendingIntent;
13 import android.content.ContentResolver;
14 import android.content.Context; 13 import android.content.Context;
15 import android.content.ContextWrapper; 14 import android.content.ContextWrapper;
16 import android.content.Intent; 15 import android.content.Intent;
17 import android.content.pm.PackageManager; 16 import android.content.pm.PackageManager;
18 import android.os.Build; 17 import android.os.Build;
19 import android.os.Bundle; 18 import android.os.Bundle;
20 import android.os.Process; 19 import android.os.Process;
21 import android.util.Log; 20 import android.util.Log;
22 import android.util.SparseArray; 21 import android.util.SparseArray;
23 import android.view.View; 22 import android.view.View;
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 } 501 }
503 502
504 /** 503 /**
505 * An interface that intent callback objects have to implement. 504 * An interface that intent callback objects have to implement.
506 */ 505 */
507 public interface IntentCallback { 506 public interface IntentCallback {
508 /** 507 /**
509 * Handles the data returned by the requested intent. 508 * Handles the data returned by the requested intent.
510 * @param window A window reference. 509 * @param window A window reference.
511 * @param resultCode Result code of the requested intent. 510 * @param resultCode Result code of the requested intent.
512 * @param contentResolver An instance of ContentResolver class for acces sing returned data.
513 * @param data The data returned by the intent. 511 * @param data The data returned by the intent.
514 */ 512 */
515 void onIntentCompleted(WindowAndroid window, int resultCode, 513 void onIntentCompleted(WindowAndroid window, int resultCode, Intent data );
516 ContentResolver contentResolver, Intent data);
517 } 514 }
518 515
519 /** 516 /**
520 * Callback for permission requests. 517 * Callback for permission requests.
521 */ 518 */
522 public interface PermissionCallback { 519 public interface PermissionCallback {
523 /** 520 /**
524 * Called upon completing a permission request. 521 * Called upon completing a permission request.
525 * @param permissions The list of permissions in the result. 522 * @param permissions The list of permissions in the result.
526 * @param grantResults Whether the permissions were granted. 523 * @param grantResults Whether the permissions were granted.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 private native long nativeInit(int displayId); 727 private native long nativeInit(int displayId);
731 private native void nativeOnVSync(long nativeWindowAndroid, 728 private native void nativeOnVSync(long nativeWindowAndroid,
732 long vsyncTimeMicros, 729 long vsyncTimeMicros,
733 long vsyncPeriodMicros); 730 long vsyncPeriodMicros);
734 private native void nativeOnVisibilityChanged(long nativeWindowAndroid, bool ean visible); 731 private native void nativeOnVisibilityChanged(long nativeWindowAndroid, bool ean visible);
735 private native void nativeOnActivityStopped(long nativeWindowAndroid); 732 private native void nativeOnActivityStopped(long nativeWindowAndroid);
736 private native void nativeOnActivityStarted(long nativeWindowAndroid); 733 private native void nativeOnActivityStarted(long nativeWindowAndroid);
737 private native void nativeDestroy(long nativeWindowAndroid); 734 private native void nativeDestroy(long nativeWindowAndroid);
738 735
739 } 736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698