CefTransitionType.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //
  2. // This file manually written from cef/include/internal/cef_types.h.
  3. // C API name: cef_resource_type_t.
  4. //
  5. namespace Xilium.CefGlue
  6. {
  7. using System;
  8. /// <summary>
  9. /// Transition type for a request. Made up of one source value and 0 or more
  10. /// qualifiers.
  11. /// </summary>
  12. [Flags]
  13. public enum CefTransitionType : uint
  14. {
  15. /// <summary>
  16. /// Source is a link click or the JavaScript window.open function. This is
  17. /// also the default value for requests like sub-resource loads that are not
  18. /// navigations.
  19. /// </summary>
  20. Link = 0,
  21. /// <summary>
  22. /// Source is some other "explicit" navigation. This is the default value for
  23. /// navigations where the actual type is unknown. See also TT_DIRECT_LOAD_FLAG.
  24. /// </summary>
  25. Explicit = 1,
  26. /// <summary>
  27. /// Source is a subframe navigation. This is any content that is automatically
  28. /// loaded in a non-toplevel frame. For example, if a page consists of several
  29. /// frames containing ads, those ad URLs will have this transition type.
  30. /// The user may not even realize the content in these pages is a separate
  31. /// frame, so may not care about the URL.
  32. /// </summary>
  33. AutoSubframe = 3,
  34. /// <summary>
  35. /// Source is a subframe navigation explicitly requested by the user that will
  36. /// generate new navigation entries in the back/forward list. These are
  37. /// probably more important than frames that were automatically loaded in
  38. /// the background because the user probably cares about the fact that this
  39. /// link was loaded.
  40. /// </summary>
  41. ManualSubframe = 4,
  42. /// <summary>
  43. /// Source is a form submission by the user. NOTE: In some situations
  44. /// submitting a form does not result in this transition type. This can happen
  45. /// if the form uses a script to submit the contents.
  46. /// </summary>
  47. FormSubmit = 7,
  48. /// <summary>
  49. /// Source is a "reload" of the page via the Reload function or by re-visiting
  50. /// the same URL. NOTE: This is distinct from the concept of whether a
  51. /// particular load uses "reload semantics" (i.e. bypasses cached data).
  52. /// </summary>
  53. Reload = 8,
  54. /// <summary>
  55. /// General mask defining the bits used for the source values.
  56. /// </summary>
  57. SourceMask = 0xFF,
  58. // Qualifiers.
  59. // Any of the core values above can be augmented by one or more qualifiers.
  60. // These qualifiers further define the transition.
  61. /// <summary>
  62. /// Attempted to visit a URL but was blocked.
  63. /// </summary>
  64. BlockedFlag = 0x00800000,
  65. /// <summary>
  66. /// Used the Forward or Back function to navigate among browsing history.
  67. /// Will be ORed to the transition type for the original load.
  68. /// </summary>
  69. ForwardBackFlag = 0x01000000,
  70. /// <summary>
  71. /// Loaded a URL directly via CreateBrowser, LoadURL or LoadRequest.
  72. /// </summary>
  73. DirectLoadFlag = 0x02000000,
  74. /// <summary>
  75. /// The beginning of a navigation chain.
  76. /// </summary>
  77. ChainStartFlag = 0x10000000,
  78. /// <summary>
  79. /// The last transition in a redirect chain.
  80. /// </summary>
  81. ChainEndFlag = 0x20000000,
  82. /// <summary>
  83. /// Redirects caused by JavaScript or a meta refresh tag on the page.
  84. /// </summary>
  85. ClientRedirectFlag = 0x40000000,
  86. /// <summary>
  87. /// Redirects sent from the server by HTTP headers.
  88. /// </summary>
  89. ServerRedirectFlag = 0x80000000,
  90. /// <summary>
  91. /// Used to test whether a transition involves a redirect.
  92. /// </summary>
  93. IsRedirectMask = 0xC0000000,
  94. /// <summary>
  95. /// General mask defining the bits used for the qualifiers.
  96. /// </summary>
  97. QualifierMask = 0xFFFFFF00,
  98. }
  99. }