| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 com.android.webview.chromium; | 5 package com.android.webview.chromium; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
| 9 import android.graphics.BitmapFactory; | 9 import android.graphics.BitmapFactory; |
| 10 import android.graphics.Canvas; | 10 import android.graphics.Canvas; |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 } | 623 } |
| 624 | 624 |
| 625 /** | 625 /** |
| 626 * @see ContentViewClient#onReceivedTitle(String) | 626 * @see ContentViewClient#onReceivedTitle(String) |
| 627 */ | 627 */ |
| 628 @Override | 628 @Override |
| 629 public void onReceivedTitle(String title) { | 629 public void onReceivedTitle(String title) { |
| 630 try { | 630 try { |
| 631 TraceEvent.begin("WebViewContentsClientAdapter.onReceivedTitle"); | 631 TraceEvent.begin("WebViewContentsClientAdapter.onReceivedTitle"); |
| 632 if (mWebChromeClient != null) { | 632 if (mWebChromeClient != null) { |
| 633 if (TRACE) Log.d(TAG, "onReceivedTitle"); | 633 if (TRACE) Log.d(TAG, "onReceivedTitle=\"" + title + "\""); |
| 634 mWebChromeClient.onReceivedTitle(mWebView, title); | 634 mWebChromeClient.onReceivedTitle(mWebView, title); |
| 635 } | 635 } |
| 636 } finally { | 636 } finally { |
| 637 TraceEvent.end("WebViewContentsClientAdapter.onReceivedTitle"); | 637 TraceEvent.end("WebViewContentsClientAdapter.onReceivedTitle"); |
| 638 } | 638 } |
| 639 } | 639 } |
| 640 | 640 |
| 641 /** | 641 /** |
| 642 * @see ContentViewClient#shouldOverrideKeyEvent(KeyEvent) | 642 * @see ContentViewClient#shouldOverrideKeyEvent(KeyEvent) |
| 643 */ | 643 */ |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 mAwPermissionRequest.deny(); | 1284 mAwPermissionRequest.deny(); |
| 1285 } | 1285 } |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 @Override | 1288 @Override |
| 1289 public void deny() { | 1289 public void deny() { |
| 1290 mAwPermissionRequest.deny(); | 1290 mAwPermissionRequest.deny(); |
| 1291 } | 1291 } |
| 1292 } | 1292 } |
| 1293 } | 1293 } |
| OLD | NEW |