| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
| 8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
| 9 import android.graphics.RectF; | 9 import android.graphics.RectF; |
| 10 import android.net.http.SslError; |
| 10 import android.os.Handler; | 11 import android.os.Handler; |
| 11 import android.os.Looper; | 12 import android.os.Looper; |
| 12 import android.os.Message; | 13 import android.os.Message; |
| 13 import android.util.Log; | 14 import android.util.Log; |
| 14 import android.view.KeyEvent; | 15 import android.view.KeyEvent; |
| 15 import android.webkit.ConsoleMessage; | 16 import android.webkit.ConsoleMessage; |
| 16 import android.webkit.GeolocationPermissions; | 17 import android.webkit.GeolocationPermissions; |
| 18 import android.webkit.SslErrorHandler; |
| 17 import android.webkit.ValueCallback; | 19 import android.webkit.ValueCallback; |
| 18 | 20 |
| 19 import org.chromium.content.browser.ContentViewClient; | 21 import org.chromium.content.browser.ContentViewClient; |
| 20 import org.chromium.content.browser.ContentViewCore; | 22 import org.chromium.content.browser.ContentViewCore; |
| 21 import org.chromium.content.browser.WebContentsObserverAndroid; | 23 import org.chromium.content.browser.WebContentsObserverAndroid; |
| 22 import org.chromium.net.NetError; | 24 import org.chromium.net.NetError; |
| 23 | 25 |
| 24 /** | 26 /** |
| 25 * Base-class that an AwContents embedder derives from to receive callbacks. | 27 * Base-class that an AwContents embedder derives from to receive callbacks. |
| 26 * This extends ContentViewClient, as in many cases we want to pass-thru Content
ViewCore | 28 * This extends ContentViewClient, as in many cases we want to pass-thru Content
ViewCore |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 222 |
| 221 public abstract boolean shouldIgnoreNavigation(String url); | 223 public abstract boolean shouldIgnoreNavigation(String url); |
| 222 | 224 |
| 223 public abstract void onUnhandledKeyEvent(KeyEvent event); | 225 public abstract void onUnhandledKeyEvent(KeyEvent event); |
| 224 | 226 |
| 225 public abstract boolean onConsoleMessage(ConsoleMessage consoleMessage); | 227 public abstract boolean onConsoleMessage(ConsoleMessage consoleMessage); |
| 226 | 228 |
| 227 public abstract void onReceivedHttpAuthRequest(AwHttpAuthHandler handler, | 229 public abstract void onReceivedHttpAuthRequest(AwHttpAuthHandler handler, |
| 228 String host, String realm); | 230 String host, String realm); |
| 229 | 231 |
| 232 public abstract void onReceivedSslError(SslErrorHandler handler, SslError er
ror); |
| 233 |
| 230 public abstract void onReceivedLoginRequest(String realm, String account, St
ring args); | 234 public abstract void onReceivedLoginRequest(String realm, String account, St
ring args); |
| 231 | 235 |
| 232 public abstract void onFormResubmission(Message dontResend, Message resend); | 236 public abstract void onFormResubmission(Message dontResend, Message resend); |
| 233 | 237 |
| 234 public abstract void onDownloadStart(String url, String userAgent, String co
ntentDisposition, | 238 public abstract void onDownloadStart(String url, String userAgent, String co
ntentDisposition, |
| 235 String mimeType, long contentLength); | 239 String mimeType, long contentLength); |
| 236 | 240 |
| 237 public abstract void onGeolocationPermissionsShowPrompt(String origin, | 241 public abstract void onGeolocationPermissionsShowPrompt(String origin, |
| 238 GeolocationPermissions.Callback callback); | 242 GeolocationPermissions.Callback callback); |
| 239 | 243 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } | 290 } |
| 287 | 291 |
| 288 @Override | 292 @Override |
| 289 final public void onContextualActionBarShown() { | 293 final public void onContextualActionBarShown() { |
| 290 } | 294 } |
| 291 | 295 |
| 292 @Override | 296 @Override |
| 293 final public void onContextualActionBarHidden() { | 297 final public void onContextualActionBarHidden() { |
| 294 } | 298 } |
| 295 } | 299 } |
| OLD | NEW |