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