view_type.mojom 938 B

123456789101112131415161718192021222324252627282930313233343536
  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. module extensions.mojom;
  5. // Icky RTTI used by a few systems to distinguish the host type of a given
  6. // WebContents.
  7. //
  8. // Do not change or reuse the the entry values in this list as this is used in
  9. // ExtensionViewType enum in tools/metrics/histograms/enums.xml.
  10. //
  11. // TODO(aa): Remove this and teach those systems to keep track of their own
  12. // data.
  13. //
  14. // The type of the view.
  15. enum ViewType {
  16. kInvalid = 0,
  17. kAppWindow = 1,
  18. kBackgroundContents = 2,
  19. // For custom parts of Chrome if no other type applies.
  20. kComponent = 3,
  21. kExtensionBackgroundPage = 4,
  22. kExtensionDialog = 5,
  23. kExtensionGuest = 6,
  24. kExtensionPopup = 7,
  25. // Panels were removed in https://crbug.com/571511.
  26. // DEPRECATED_kPanel = 8,
  27. kTabContents = 9,
  28. kOffscreenDocument = 10,
  29. };