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.app.ActivityManager; | 7 import android.app.ActivityManager; |
8 import android.content.ComponentCallbacks2; | 8 import android.content.ComponentCallbacks2; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.content.Intent; | 10 import android.content.Intent; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 @Override | 356 @Override |
357 public void setWebContentsDebuggingEnabled(boolean enable) { | 357 public void setWebContentsDebuggingEnabled(boolean enable) { |
358 // Web Contents debugging is always enabled on debug bui
lds. | 358 // Web Contents debugging is always enabled on debug bui
lds. |
359 if (!isBuildDebuggable()) { | 359 if (!isBuildDebuggable()) { |
360 WebViewChromiumFactoryProvider.this.setWebContentsDe
buggingEnabled( | 360 WebViewChromiumFactoryProvider.this.setWebContentsDe
buggingEnabled( |
361 enable); | 361 enable); |
362 } | 362 } |
363 } | 363 } |
364 | 364 |
365 // TODO enable after L release to AOSP | 365 @Override |
366 //@Override | |
367 public void clearClientCertPreferences(Runnable onCleared) { | 366 public void clearClientCertPreferences(Runnable onCleared) { |
368 AwContentsStatics.clearClientCertPreferences(onCleared); | 367 AwContentsStatics.clearClientCertPreferences(onCleared); |
369 } | 368 } |
370 | 369 |
371 @Override | 370 @Override |
372 public void freeMemoryForTests() { | 371 public void freeMemoryForTests() { |
373 if (ActivityManager.isRunningInTestHarness()) { | 372 if (ActivityManager.isRunningInTestHarness()) { |
374 MemoryPressureListener.maybeNotifyMemoryPresure( | 373 MemoryPressureListener.maybeNotifyMemoryPresure( |
375 ComponentCallbacks2.TRIM_MEMORY_COMPLETE); | 374 ComponentCallbacks2.TRIM_MEMORY_COMPLETE); |
376 } | 375 } |
377 } | 376 } |
378 | 377 |
379 // TODO: Add @Override. | 378 @Override |
380 public void enableSlowWholeDocumentDraw() { | 379 public void enableSlowWholeDocumentDraw() { |
381 WebViewChromium.enableSlowWholeDocumentDraw(); | 380 WebViewChromium.enableSlowWholeDocumentDraw(); |
382 } | 381 } |
383 | 382 |
384 @Override | 383 @Override |
385 public Uri[] parseFileChooserResult(int resultCode, Intent i
ntent) { | 384 public Uri[] parseFileChooserResult(int resultCode, Intent i
ntent) { |
386 return AwContentsClient.parseFileChooserResult(resultCod
e, intent); | 385 return AwContentsClient.parseFileChooserResult(resultCod
e, intent); |
387 } | 386 } |
388 }; | 387 }; |
389 } | 388 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 browserContext.getHttpAuthDatabase(context)); | 464 browserContext.getHttpAuthDatabase(context)); |
466 } | 465 } |
467 } | 466 } |
468 return mWebViewDatabase; | 467 return mWebViewDatabase; |
469 } | 468 } |
470 | 469 |
471 WebViewDelegate getWebViewDelegate() { | 470 WebViewDelegate getWebViewDelegate() { |
472 return mWebViewDelegate; | 471 return mWebViewDelegate; |
473 } | 472 } |
474 } | 473 } |
OLD | NEW |