| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.content.Context; | 7 import android.content.Context; |
| 8 import android.view.KeyEvent; | 8 import android.view.KeyEvent; |
| 9 import android.view.View; | 9 import android.view.View; |
| 10 import android.webkit.URLUtil; | 10 import android.webkit.URLUtil; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 public void onUpdateTitle(String title) { | 67 public void onUpdateTitle(String title) { |
| 68 mAwContentsClient.onReceivedTitle(title); | 68 mAwContentsClient.onReceivedTitle(title); |
| 69 } | 69 } |
| 70 | 70 |
| 71 @Override | 71 @Override |
| 72 public boolean shouldOverrideKeyEvent(KeyEvent event) { | 72 public boolean shouldOverrideKeyEvent(KeyEvent event) { |
| 73 return mAwContentsClient.shouldOverrideKeyEvent(event); | 73 return mAwContentsClient.shouldOverrideKeyEvent(event); |
| 74 } | 74 } |
| 75 | 75 |
| 76 @Override | 76 @Override |
| 77 final public ContentVideoViewClient getContentVideoViewClient() { | 77 public final ContentVideoViewClient getContentVideoViewClient() { |
| 78 return new AwContentVideoViewClient(); | 78 return new AwContentVideoViewClient(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 @Override | 81 @Override |
| 82 public boolean shouldBlockMediaRequest(String url) { | 82 public boolean shouldBlockMediaRequest(String url) { |
| 83 return mAwSettings != null ? | 83 return mAwSettings != null ? |
| 84 mAwSettings.getBlockNetworkLoads() && URLUtil.isNetworkUrl(url)
: true; | 84 mAwSettings.getBlockNetworkLoads() && URLUtil.isNetworkUrl(url)
: true; |
| 85 } | 85 } |
| 86 } | 86 } |
| OLD | NEW |