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.Picture; |
7 import android.graphics.Rect; | 8 import android.graphics.Rect; |
8 import android.graphics.RectF; | 9 import android.graphics.RectF; |
9 import android.os.Handler; | 10 import android.os.Handler; |
10 import android.os.Looper; | 11 import android.os.Looper; |
11 import android.os.Message; | 12 import android.os.Message; |
12 import android.util.Log; | 13 import android.util.Log; |
13 import android.view.KeyEvent; | 14 import android.view.KeyEvent; |
14 import android.webkit.ConsoleMessage; | 15 import android.webkit.ConsoleMessage; |
15 import android.webkit.GeolocationPermissions; | 16 import android.webkit.GeolocationPermissions; |
16 | 17 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 protected abstract void onRequestFocus(); | 243 protected abstract void onRequestFocus(); |
243 | 244 |
244 //--------------------------------------------------------------------------
------------------ | 245 //--------------------------------------------------------------------------
------------------ |
245 // Other WebView-specific methods | 246 // Other WebView-specific methods |
246 //--------------------------------------------------------------------------
------------------ | 247 //--------------------------------------------------------------------------
------------------ |
247 // | 248 // |
248 | 249 |
249 public abstract void onFindResultReceived(int activeMatchOrdinal, int number
OfMatches, | 250 public abstract void onFindResultReceived(int activeMatchOrdinal, int number
OfMatches, |
250 boolean isDoneCounting); | 251 boolean isDoneCounting); |
251 | 252 |
| 253 /** |
| 254 * Called whenever there is a new content picture available. |
| 255 * @param picture New picture. |
| 256 */ |
| 257 public abstract void onNewPicture(Picture picture); |
| 258 |
252 public abstract void onPageStarted(String url); | 259 public abstract void onPageStarted(String url); |
253 | 260 |
254 public abstract void onPageFinished(String url); | 261 public abstract void onPageFinished(String url); |
255 | 262 |
256 public abstract void onReceivedError(int errorCode, String description, Stri
ng failingUrl); | 263 public abstract void onReceivedError(int errorCode, String description, Stri
ng failingUrl); |
257 | 264 |
258 //--------------------------------------------------------------------------
------------------ | 265 //--------------------------------------------------------------------------
------------------ |
259 // Stuff that we ignore since it only makes sense for Chrome bro
wser | 266 // Stuff that we ignore since it only makes sense for Chrome bro
wser |
260 //--------------------------------------------------------------------------
------------------ | 267 //--------------------------------------------------------------------------
------------------ |
261 // | 268 // |
262 | 269 |
263 @Override | 270 @Override |
264 final public boolean shouldOverrideScroll(float dx, float dy, float scrollX,
float scrollY) { | 271 final public boolean shouldOverrideScroll(float dx, float dy, float scrollX,
float scrollY) { |
265 return false; | 272 return false; |
266 } | 273 } |
267 | 274 |
268 @Override | 275 @Override |
269 final public void onContextualActionBarShown() { | 276 final public void onContextualActionBarShown() { |
270 } | 277 } |
271 | 278 |
272 @Override | 279 @Override |
273 final public void onContextualActionBarHidden() { | 280 final public void onContextualActionBarHidden() { |
274 } | 281 } |
275 } | 282 } |
OLD | NEW |