1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "pdf/pdf_features.h" 6 7 #include "build/chromeos_buildflags.h" 8 9 namespace chrome_pdf { 10 namespace features { 11 12 const base::Feature kAccessiblePDFForm = {"AccessiblePDFForm", 13 base::FEATURE_DISABLED_BY_DEFAULT}; 14 15 const base::Feature kPdfHonorJsContentSettings = { 16 "PdfHonorJsContentSettings", base::FEATURE_ENABLED_BY_DEFAULT}; 17 18 // "Incremental loading" refers to loading the PDF as it arrives. 19 // TODO(crbug.com/1064175): Remove this once incremental loading is fixed. 20 const base::Feature kPdfIncrementalLoading = { 21 "PdfIncrementalLoading", base::FEATURE_DISABLED_BY_DEFAULT}; 22 23 // "Partial loading" refers to loading only specific parts of the PDF. 24 // TODO(crbug.com/1064175): Remove this once partial loading is fixed. 25 const base::Feature kPdfPartialLoading = {"PdfPartialLoading", 26 base::FEATURE_DISABLED_BY_DEFAULT}; 27 28 const base::Feature kPDFViewerUpdate = {"PDFViewerUpdate", 29 base::FEATURE_DISABLED_BY_DEFAULT}; 30 31 const base::Feature kPdfViewerPresentationMode = { 32 "PdfViewerPresentationMode", base::FEATURE_DISABLED_BY_DEFAULT}; 33 34 const base::Feature kSaveEditedPDFForm = {"SaveEditedPDFForm", 35 #if BUILDFLAG(IS_ASH) 36 base::FEATURE_ENABLED_BY_DEFAULT 37 #else 38 base::FEATURE_DISABLED_BY_DEFAULT 39 #endif // BUILDFLAG(IS_ASH) 40 }; 41 42 const base::Feature kTabAcrossPDFAnnotations = { 43 "TabAcrossPDFAnnotations", base::FEATURE_ENABLED_BY_DEFAULT}; 44 45 } // namespace features 46 } // namespace chrome_pdf 47