content_restriction.h 930 B

1234567891011121314151617181920212223242526
  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).
  9. // TODO(crbug.com/702993): Must be kept in sync with `ContentRestriction` in
  10. // chrome/common/content_restriction.h. While there's a transitive static
  11. // assertion that the enums match, a direct static assertion should be added
  12. // when `PP_ContentRestriction` is removed.
  13. enum ContentRestriction {
  14. kContentRestrictionCopy = 1 << 0,
  15. kContentRestrictionCut = 1 << 1,
  16. kContentRestrictionPaste = 1 << 2,
  17. kContentRestrictionPrint = 1 << 3,
  18. kContentRestrictionSave = 1 << 4
  19. };
  20. } // namespace chrome_pdf
  21. #endif // PDF_CONTENT_RESTRICTION_H_