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 org.chromium.chrome.browser.preferences; | 5 package org.chromium.chrome.browser.preferences; |
6 | 6 |
7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
8 import org.chromium.base.ThreadUtils; | 8 import org.chromium.base.ThreadUtils; |
9 import org.chromium.chrome.browser.search_engines.TemplateUrlService; | 9 import org.chromium.chrome.browser.search_engines.TemplateUrlService; |
10 | 10 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 } | 526 } |
527 | 527 |
528 /** | 528 /** |
529 * @return Whether printing is enabled. | 529 * @return Whether printing is enabled. |
530 */ | 530 */ |
531 public boolean isPrintingEnabled() { | 531 public boolean isPrintingEnabled() { |
532 return nativeGetPrintingEnabled(); | 532 return nativeGetPrintingEnabled(); |
533 } | 533 } |
534 | 534 |
535 /** | 535 /** |
| 536 * @return Whether printing is managed by policy. |
| 537 */ |
| 538 public boolean isPrintingManaged() { |
| 539 return nativeGetPrintingManaged(); |
| 540 } |
| 541 |
| 542 /** |
536 * Adds/Edit a popup exception | 543 * Adds/Edit a popup exception |
537 * | 544 * |
538 * @param pattern attribute for the popup exception pattern | 545 * @param pattern attribute for the popup exception pattern |
539 * @param allow attribute to specify whether to allow or block pattern | 546 * @param allow attribute to specify whether to allow or block pattern |
540 */ | 547 */ |
541 public void setPopupException(String pattern, boolean allow) { | 548 public void setPopupException(String pattern, boolean allow) { |
542 nativeSetPopupException(pattern, allow); | 549 nativeSetPopupException(pattern, allow); |
543 } | 550 } |
544 | 551 |
545 /** | 552 /** |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 private native boolean nativeGetJavaScriptManaged(); | 651 private native boolean nativeGetJavaScriptManaged(); |
645 private native boolean nativeGetTranslateEnabled(); | 652 private native boolean nativeGetTranslateEnabled(); |
646 private native boolean nativeGetTranslateManaged(); | 653 private native boolean nativeGetTranslateManaged(); |
647 private native boolean nativeGetResolveNavigationErrorEnabled(); | 654 private native boolean nativeGetResolveNavigationErrorEnabled(); |
648 private native boolean nativeGetResolveNavigationErrorManaged(); | 655 private native boolean nativeGetResolveNavigationErrorManaged(); |
649 private native boolean nativeGetProtectedMediaIdentifierEnabled(); | 656 private native boolean nativeGetProtectedMediaIdentifierEnabled(); |
650 private native boolean nativeGetCrashReportManaged(); | 657 private native boolean nativeGetCrashReportManaged(); |
651 private native boolean nativeGetIncognitoModeEnabled(); | 658 private native boolean nativeGetIncognitoModeEnabled(); |
652 private native boolean nativeGetIncognitoModeManaged(); | 659 private native boolean nativeGetIncognitoModeManaged(); |
653 private native boolean nativeGetPrintingEnabled(); | 660 private native boolean nativeGetPrintingEnabled(); |
| 661 private native boolean nativeGetPrintingManaged(); |
654 private native boolean nativeGetForceSafeSearch(); | 662 private native boolean nativeGetForceSafeSearch(); |
655 private native void nativeSetTranslateEnabled(boolean enabled); | 663 private native void nativeSetTranslateEnabled(boolean enabled); |
656 private native void nativeResetTranslateDefaults(); | 664 private native void nativeResetTranslateDefaults(); |
657 private native boolean nativeGetJavaScriptEnabled(); | 665 private native boolean nativeGetJavaScriptEnabled(); |
658 private native void nativeSetJavaScriptEnabled(boolean enabled); | 666 private native void nativeSetJavaScriptEnabled(boolean enabled); |
659 private native void nativeClearBrowsingData(boolean history, boolean cache, | 667 private native void nativeClearBrowsingData(boolean history, boolean cache, |
660 boolean cookiesAndSiteData, boolean passwords, boolean formData); | 668 boolean cookiesAndSiteData, boolean passwords, boolean formData); |
661 private native boolean nativeGetAllowCookiesEnabled(); | 669 private native boolean nativeGetAllowCookiesEnabled(); |
662 private native void nativeSetAllowCookiesEnabled(boolean allow); | 670 private native void nativeSetAllowCookiesEnabled(boolean allow); |
663 private native void nativeSetDoNotTrackEnabled(boolean enabled); | 671 private native void nativeSetDoNotTrackEnabled(boolean enabled); |
(...skipping 30 matching lines...) Expand all Loading... |
694 private native void nativeResetAcceptLanguages(String defaultLocale); | 702 private native void nativeResetAcceptLanguages(String defaultLocale); |
695 private native String nativeGetSyncLastAccountName(); | 703 private native String nativeGetSyncLastAccountName(); |
696 private native String nativeGetSupervisedUserCustodianName(); | 704 private native String nativeGetSupervisedUserCustodianName(); |
697 private native String nativeGetSupervisedUserCustodianEmail(); | 705 private native String nativeGetSupervisedUserCustodianEmail(); |
698 private native String nativeGetSupervisedUserCustodianProfileImageURL(); | 706 private native String nativeGetSupervisedUserCustodianProfileImageURL(); |
699 private native int nativeGetDefaultSupervisedUserFilteringBehavior(); | 707 private native int nativeGetDefaultSupervisedUserFilteringBehavior(); |
700 private native String nativeGetSupervisedUserSecondCustodianName(); | 708 private native String nativeGetSupervisedUserSecondCustodianName(); |
701 private native String nativeGetSupervisedUserSecondCustodianEmail(); | 709 private native String nativeGetSupervisedUserSecondCustodianEmail(); |
702 private native String nativeGetSupervisedUserSecondCustodianProfileImageURL(
); | 710 private native String nativeGetSupervisedUserSecondCustodianProfileImageURL(
); |
703 } | 711 } |
OLD | NEW |