OLD | NEW |
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.test; | 5 package org.chromium.android_webview.test; |
6 | 6 |
7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 import android.graphics.Picture; | 8 import android.graphics.Picture; |
9 import android.net.http.SslError; | 9 import android.net.http.SslError; |
10 import android.webkit.ConsoleMessage; | 10 import android.webkit.ConsoleMessage; |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 @Override | 438 @Override |
439 public void onNewPicture(Picture picture) { | 439 public void onNewPicture(Picture picture) { |
440 mPictureListenerHelper.notifyCalled(picture); | 440 mPictureListenerHelper.notifyCalled(picture); |
441 } | 441 } |
442 | 442 |
443 /** | 443 /** |
444 * Callback helper for ShouldOverrideUrlLoading. | 444 * Callback helper for ShouldOverrideUrlLoading. |
445 */ | 445 */ |
446 public static class ShouldOverrideUrlLoadingHelper extends CallbackHelper { | 446 public static class ShouldOverrideUrlLoadingHelper extends CallbackHelper { |
447 private String mShouldOverrideUrlLoadingUrl; | 447 private String mShouldOverrideUrlLoadingUrl; |
448 private boolean mShouldOverrideUrlLoadingReturnValue = false; | 448 private boolean mShouldOverrideUrlLoadingReturnValue; |
449 private boolean mIsRedirect; | 449 private boolean mIsRedirect; |
450 private boolean mHasUserGesture; | 450 private boolean mHasUserGesture; |
451 private boolean mIsMainFrame; | 451 private boolean mIsMainFrame; |
452 void setShouldOverrideUrlLoadingUrl(String url) { | 452 void setShouldOverrideUrlLoadingUrl(String url) { |
453 mShouldOverrideUrlLoadingUrl = url; | 453 mShouldOverrideUrlLoadingUrl = url; |
454 } | 454 } |
455 void setShouldOverrideUrlLoadingReturnValue(boolean value) { | 455 void setShouldOverrideUrlLoadingReturnValue(boolean value) { |
456 mShouldOverrideUrlLoadingReturnValue = value; | 456 mShouldOverrideUrlLoadingReturnValue = value; |
457 } | 457 } |
458 public String getShouldOverrideUrlLoadingUrl() { | 458 public String getShouldOverrideUrlLoadingUrl() { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 public boolean hasTouchIcon(String url) { | 612 public boolean hasTouchIcon(String url) { |
613 return mTouchIcons.get(url); | 613 return mTouchIcons.get(url); |
614 } | 614 } |
615 } | 615 } |
616 | 616 |
617 @Override | 617 @Override |
618 public void onReceivedTouchIconUrl(String url, boolean precomposed) { | 618 public void onReceivedTouchIconUrl(String url, boolean precomposed) { |
619 mTouchIconHelper.notifyTouchIcon(url, precomposed); | 619 mTouchIconHelper.notifyTouchIcon(url, precomposed); |
620 } | 620 } |
621 } | 621 } |
OLD | NEW |