| OLD | NEW |
| (Empty) |
| 1 // Copyright 2008-2009 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 | |
| 16 // Declares the usage metrics used by the worker module. | |
| 17 | |
| 18 #ifndef OMAHA_UI_UI_METRICS_H__ | |
| 19 #define OMAHA_UI_UI_METRICS_H__ | |
| 20 | |
| 21 #include "omaha/statsreport/metrics.h" | |
| 22 | |
| 23 namespace omaha { | |
| 24 | |
| 25 // Time (ms) until the user canceled. | |
| 26 DECLARE_METRIC_timing(worker_ui_cancel_ms); | |
| 27 // How many times the user canceled. Only includes confirmed cancels. | |
| 28 DECLARE_METRIC_count(worker_ui_cancels); | |
| 29 | |
| 30 // How many times the user has clicked on the x button of the UI. | |
| 31 DECLARE_METRIC_count(worker_ui_click_x); | |
| 32 | |
| 33 // How many times the user has hit the esc key. | |
| 34 DECLARE_METRIC_count(worker_ui_esc_key_total); | |
| 35 | |
| 36 // How many times the "Restart Browser Now/Later" buttons were displayed. | |
| 37 DECLARE_METRIC_count(worker_ui_restart_browser_buttons_displayed); | |
| 38 // How many times the user clicked "Restart Browser Now". | |
| 39 DECLARE_METRIC_count(worker_ui_restart_browser_now_click); | |
| 40 // How many times the "Restart Browsers Now/Later" buttons were displayed. | |
| 41 DECLARE_METRIC_count(worker_ui_restart_all_browsers_buttons_displayed); | |
| 42 // How many times the user clicked "Restart Browsers Now". | |
| 43 DECLARE_METRIC_count(worker_ui_restart_all_browsers_now_click); | |
| 44 // How many times the "Restart Now/Later" (reboot) buttons were displayed. | |
| 45 DECLARE_METRIC_count(worker_ui_reboot_buttons_displayed); | |
| 46 // How many times the user clicked "Restart Now" (reboot). | |
| 47 DECLARE_METRIC_count(worker_ui_reboot_now_click); | |
| 48 | |
| 49 // How many times the user was offered the "Help Me Fix This" link. | |
| 50 DECLARE_METRIC_count(worker_ui_get_help_displayed); | |
| 51 // How many times the user clicked the "Help Me Fix This" link. | |
| 52 DECLARE_METRIC_count(worker_ui_get_help_click); | |
| 53 | |
| 54 } // namespace omaha | |
| 55 | |
| 56 #endif // OMAHA_UI_UI_METRICS_H__ | |
| OLD | NEW |