pdf/pdfium/pdfium_engine.cc
[chromium-dfly.git] / pdf / pdf_features.cc
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 // "Incremental loading" refers to loading the PDF as it arrives.
16 // TODO(crbug.com/1064175): Remove this once incremental loading is fixed.
17 const base::Feature kPdfIncrementalLoading = {
18     "PdfIncrementalLoading", base::FEATURE_DISABLED_BY_DEFAULT};
19
20 // "Partial loading" refers to loading only specific parts of the PDF.
21 // TODO(crbug.com/1064175): Remove this once partial loading is fixed.
22 const base::Feature kPdfPartialLoading = {"PdfPartialLoading",
23                                           base::FEATURE_DISABLED_BY_DEFAULT};
24
25 const base::Feature kPdfViewerDocumentProperties = {
26     "PdfViewerDocumentProperties", base::FEATURE_DISABLED_BY_DEFAULT};
27
28 const base::Feature kPdfViewerPresentationMode = {
29     "PdfViewerPresentationMode", base::FEATURE_ENABLED_BY_DEFAULT};
30
31 // Feature has no effect if Chrome is built with no XFA support.
32 const base::Feature kPdfXfaSupport = {"PdfXfaSupport",
33                                       base::FEATURE_DISABLED_BY_DEFAULT};
34
35 const base::Feature kTabAcrossPDFAnnotations = {
36     "TabAcrossPDFAnnotations", base::FEATURE_ENABLED_BY_DEFAULT};
37
38 }  // namespace features
39 }  // namespace chrome_pdf