content_restriction.h 748 B

1234567891011121314151617181920212223
  1. // Copyright 2021 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. #ifndef PDF_CONTENT_RESTRICTION_H_
  5. #define PDF_CONTENT_RESTRICTION_H_
  6. namespace chrome_pdf {
  7. // Used for disabling browser commands because of restrictions on how the data
  8. // is to be used (i.e. can't copy/print). Must be kept in sync with
  9. // `ContentRestriction` in chrome/common/content_restriction.h.
  10. enum ContentRestriction {
  11. kContentRestrictionCopy = 1 << 0,
  12. kContentRestrictionCut = 1 << 1,
  13. kContentRestrictionPaste = 1 << 2,
  14. kContentRestrictionPrint = 1 << 3,
  15. kContentRestrictionSave = 1 << 4
  16. };
  17. } // namespace chrome_pdf
  18. #endif // PDF_CONTENT_RESTRICTION_H_