tile_source.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2016 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 COMPONENTS_NTP_TILES_TILE_SOURCE_H_
  5. #define COMPONENTS_NTP_TILES_TILE_SOURCE_H_
  6. namespace ntp_tiles {
  7. // The source of an NTP tile. Please update webui/ntp-tiles-internals* as well
  8. // when modifying these values.
  9. // A Java counterpart will be generated for this enum.
  10. // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.suggestions.tile
  11. enum class TileSource {
  12. // Tile comes from the personal top sites list, based on local history.
  13. TOP_SITES,
  14. // Tile is regionally popular.
  15. POPULAR,
  16. // Tile is a popular site baked into the binary.
  17. POPULAR_BAKED_IN,
  18. // Tile is a custom link.
  19. CUSTOM_LINKS,
  20. // Tile is on a custodian-managed allowlist.
  21. ALLOWLIST,
  22. // Tile containing the user-set home page is replacing the home page button.
  23. HOMEPAGE,
  24. // Tile comes from explore sites list.
  25. EXPLORE,
  26. LAST = EXPLORE
  27. };
  28. } // namespace ntp_tiles
  29. #endif // COMPONENTS_NTP_TILES_TILE_SOURCE_H_