rlz_enums.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // Copyright (c) 2012 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 RLZ_LIB_RLZ_ENUMS_H_
  5. #define RLZ_LIB_RLZ_ENUMS_H_
  6. namespace rlz_lib {
  7. // An Access Point offers a way to search using Google.
  8. enum AccessPoint {
  9. NO_ACCESS_POINT = 0,
  10. // Access points on Windows PCs.
  11. IE_DEFAULT_SEARCH, // The IE7+ chrome search box next to the address bar.
  12. IE_HOME_PAGE, // Search box on IE 5+ primary home page when Google.
  13. IETB_SEARCH_BOX, // IE Toolbar v4+ search box.
  14. QUICK_SEARCH_BOX, // Search box brought up by ctrl-ctrl key sequence,
  15. // distributed as a part of Google Desktop
  16. GD_DESKBAND, // Search box in deskbar when GD in deskbar mode.
  17. GD_SEARCH_GADGET, // Search gadget when GD in sidebar mode.
  18. GD_WEB_SERVER, // Boxes in web pages shown by local GD web server.
  19. GD_OUTLOOK, // Search box installed within outlook by GD.
  20. CHROME_OMNIBOX, // Chrome searches through the address bar omnibox (Win).
  21. CHROME_HOME_PAGE, // Chrome searches through Google as home page (Win).
  22. FFTB2_BOX, // Firefox Toolbar v2 Search Box.
  23. FFTB3_BOX, // Firefox Toolbar v3+ Search Box.
  24. PINYIN_IME_BHO, // Goopy Input Method Editor BHO (Pinyin).
  25. IGOOGLE_WEBPAGE, // Searches on iGoogle through partner deals.
  26. // Mobile idle screen search for different platforms.
  27. MOBILE_IDLE_SCREEN_BLACKBERRY,
  28. MOBILE_IDLE_SCREEN_WINMOB,
  29. MOBILE_IDLE_SCREEN_SYMBIAN,
  30. FF_HOME_PAGE, // Firefox home page when set to Google.
  31. FF_SEARCH_BOX, // Firefox search box when set to Google.
  32. IE_BROWSED_PAGE, // Search made in IE through user action (no product).
  33. QSB_WIN_BOX, // Search box brought up by ctrl+space by default,
  34. // distributed by toolbar and separate from the GD QSB
  35. WEBAPPS_CALENDAR, // Webapps use of calendar.
  36. WEBAPPS_DOCS, // Webapps use of writely.
  37. WEBAPPS_GMAIL, // Webapps use of Gmail.
  38. IETB_LINKDOCTOR, // Linkdoctor of IE Toolbar
  39. FFTB_LINKDOCTOR, // Linkdoctor of FF Toolbar
  40. IETB7_SEARCH_BOX, // IE Toolbar search box.
  41. TB8_SEARCH_BOX, // IE/FF Toolbar search box.
  42. CHROME_FRAME, // Chrome Frame.
  43. // Partner access points.
  44. PARTNER_AP_1,
  45. PARTNER_AP_2,
  46. PARTNER_AP_3,
  47. PARTNER_AP_4,
  48. PARTNER_AP_5,
  49. CHROME_MAC_OMNIBOX, // Chrome searches through the address bar omnibox (Mac).
  50. CHROME_MAC_HOME_PAGE,// Chrome searches through Google as home page (Mac).
  51. CHROMEOS_OMNIBOX, // ChromeOS searches through the address bar omnibox.
  52. CHROMEOS_HOME_PAGE, // ChromeOS searches through Google as home page.
  53. CHROMEOS_APP_LIST, // ChromeOS searches through the app launcher search box.
  54. // Chrome searches through the address bar omnibox (iOS) on tablet or phone.
  55. CHROME_IOS_OMNIBOX_TABLET,
  56. CHROME_IOS_OMNIBOX_MOBILE,
  57. CHROME_APP_LIST, // Chrome searches through the app launcher search box.
  58. CHROME_MAC_APP_LIST, // Chrome searches through the app launcher search box
  59. // (Mac).
  60. // Unclaimed access points - should be used first before creating new APs.
  61. // Please also make sure you re-name the enum before using an unclaimed value;
  62. // this acts as a check to ensure we don't have collisions.
  63. UNDEFINED_AP_Q,
  64. UNDEFINED_AP_R,
  65. UNDEFINED_AP_S,
  66. UNDEFINED_AP_T,
  67. UNDEFINED_AP_U,
  68. UNDEFINED_AP_V,
  69. UNDEFINED_AP_W,
  70. UNDEFINED_AP_X,
  71. UNDEFINED_AP_Y,
  72. UNDEFINED_AP_Z,
  73. PACK_AP0,
  74. PACK_AP1,
  75. PACK_AP2,
  76. PACK_AP3,
  77. PACK_AP4,
  78. PACK_AP5,
  79. PACK_AP6,
  80. PACK_AP7,
  81. PACK_AP8,
  82. PACK_AP9,
  83. PACK_AP10,
  84. PACK_AP11,
  85. PACK_AP12,
  86. PACK_AP13,
  87. // New Access Points should be added here without changing existing enums,
  88. // (i.e. before LAST_ACCESS_POINT)
  89. LAST_ACCESS_POINT
  90. };
  91. // A product is an entity which wants to gets credit for setting
  92. // an Access Point.
  93. enum Product {
  94. IE_TOOLBAR = 1,
  95. TOOLBAR_NOTIFIER,
  96. PACK,
  97. DESKTOP,
  98. CHROME,
  99. FF_TOOLBAR,
  100. QSB_WIN,
  101. WEBAPPS,
  102. PINYIN_IME,
  103. PARTNER
  104. // New Products should be added here without changing existing enums.
  105. };
  106. // Events that note Product and Access Point modifications.
  107. enum Event {
  108. INVALID_EVENT = 0,
  109. INSTALL = 1, // Access Point added to the system.
  110. SET_TO_GOOGLE, // Point set from non-Google provider to Google.
  111. FIRST_SEARCH, // First search from point since INSTALL
  112. REPORT_RLS, // Report old system "RLS" financial value for this point.
  113. // New Events should be added here without changing existing enums,
  114. // before LAST_EVENT.
  115. ACTIVATE, // Product being used for a period of time.
  116. LAST_EVENT
  117. };
  118. } // namespace rlz_lib
  119. #endif // RLZ_LIB_RLZ_ENUMS_H_