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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContentsClient.java

Issue 1066053002: [Android] Allow custom ActionMode creation via ContentViewClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 8 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.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.graphics.Bitmap; 10 import android.graphics.Bitmap;
11 import android.graphics.Picture; 11 import android.graphics.Picture;
12 import android.net.Uri; 12 import android.net.Uri;
13 import android.net.http.SslError; 13 import android.net.http.SslError;
14 import android.os.Looper; 14 import android.os.Looper;
15 import android.os.Message; 15 import android.os.Message;
16 import android.view.KeyEvent; 16 import android.view.KeyEvent;
17 import android.view.View; 17 import android.view.View;
18 import android.webkit.ConsoleMessage; 18 import android.webkit.ConsoleMessage;
19 import android.webkit.GeolocationPermissions; 19 import android.webkit.GeolocationPermissions;
20 import android.webkit.ValueCallback; 20 import android.webkit.ValueCallback;
21 import android.webkit.WebChromeClient; 21 import android.webkit.WebChromeClient;
22 22
23 import org.chromium.android_webview.permission.AwPermissionRequest; 23 import org.chromium.android_webview.permission.AwPermissionRequest;
24 import org.chromium.base.annotations.SuppressFBWarnings; 24 import org.chromium.base.annotations.SuppressFBWarnings;
25 import org.chromium.content.browser.SelectActionMode;
26 import org.chromium.content.browser.SelectActionModeCallback.ActionHandler;
25 27
26 import java.security.Principal; 28 import java.security.Principal;
27 import java.util.HashMap; 29 import java.util.HashMap;
28 30
29 /** 31 /**
30 * Base-class that an AwContents embedder derives from to receive callbacks. 32 * Base-class that an AwContents embedder derives from to receive callbacks.
31 * This extends ContentViewClient, as in many cases we want to pass-thru Content ViewCore 33 * This extends ContentViewClient, as in many cases we want to pass-thru Content ViewCore
32 * callbacks right to our embedder, and this setup facilities that. 34 * callbacks right to our embedder, and this setup facilities that.
33 * For any other callbacks we need to make transformations of (e.g. adapt parame ters 35 * For any other callbacks we need to make transformations of (e.g. adapt parame ters
34 * or perform filtering) we can provide final overrides for methods here, and th en introduce 36 * or perform filtering) we can provide final overrides for methods here, and th en introduce
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // 313 //
312 public abstract void onFindResultReceived(int activeMatchOrdinal, int number OfMatches, 314 public abstract void onFindResultReceived(int activeMatchOrdinal, int number OfMatches,
313 boolean isDoneCounting); 315 boolean isDoneCounting);
314 316
315 /** 317 /**
316 * Called whenever there is a new content picture available. 318 * Called whenever there is a new content picture available.
317 * @param picture New picture. 319 * @param picture New picture.
318 */ 320 */
319 public abstract void onNewPicture(Picture picture); 321 public abstract void onNewPicture(Picture picture);
320 322
323 public abstract SelectActionMode startActionMode(
324 View view, ActionHandler actionHandler, boolean floating);
325
326 public abstract boolean supportsFloatingActionMode();
321 } 327 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698