Chromium Code Reviews| 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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.graphics.Bitmap; | 10 import android.graphics.Bitmap; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 } | 164 } |
| 165 | 165 |
| 166 void setWebViewClient(WebViewClient client) { | 166 void setWebViewClient(WebViewClient client) { |
| 167 if (client != null) { | 167 if (client != null) { |
| 168 mWebViewClient = client; | 168 mWebViewClient = client; |
| 169 } else { | 169 } else { |
| 170 mWebViewClient = sNullWebViewClient; | 170 mWebViewClient = sNullWebViewClient; |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 WebViewClient getWebViewClient() { | |
| 175 return mWebViewClient; | |
|
sgurun-gerrit only
2016/09/30 17:55:23
what does this return if no webviewclient is set?
hush (inactive)
2016/09/30 18:01:26
It returns the sNullWebViewClient
Nate Fischer
2016/09/30 18:02:09
This one gets initialized to sNullWebViewClient (a
| |
| 176 } | |
| 177 | |
| 174 void setWebChromeClient(WebChromeClient client) { | 178 void setWebChromeClient(WebChromeClient client) { |
| 175 mWebChromeClient = client; | 179 mWebChromeClient = client; |
| 176 } | 180 } |
| 177 | 181 |
| 182 WebChromeClient getWebChromeClient() { | |
| 183 return mWebChromeClient; | |
| 184 } | |
| 185 | |
| 178 void setDownloadListener(DownloadListener listener) { | 186 void setDownloadListener(DownloadListener listener) { |
| 179 mDownloadListener = listener; | 187 mDownloadListener = listener; |
| 180 } | 188 } |
| 181 | 189 |
| 182 void setFindListener(WebView.FindListener listener) { | 190 void setFindListener(WebView.FindListener listener) { |
| 183 mFindListener = listener; | 191 mFindListener = listener; |
| 184 } | 192 } |
| 185 | 193 |
| 186 void setPictureListener(WebView.PictureListener listener, boolean invalidate Only) { | 194 void setPictureListener(WebView.PictureListener listener, boolean invalidate Only) { |
| 187 mPictureListener = listener; | 195 mPictureListener = listener; |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1296 mAwPermissionRequest.deny(); | 1304 mAwPermissionRequest.deny(); |
| 1297 } | 1305 } |
| 1298 } | 1306 } |
| 1299 | 1307 |
| 1300 @Override | 1308 @Override |
| 1301 public void deny() { | 1309 public void deny() { |
| 1302 mAwPermissionRequest.deny(); | 1310 mAwPermissionRequest.deny(); |
| 1303 } | 1311 } |
| 1304 } | 1312 } |
| 1305 } | 1313 } |
| OLD | NEW |