Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: ash/common/system/chromeos/palette/palette_ids.h

Issue 2308823002: Add UMA stats for pen palette (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/system/chromeos/palette/palette_ids.h
diff --git a/ash/common/system/chromeos/palette/palette_ids.h b/ash/common/system/chromeos/palette/palette_ids.h
index 31dfe1323b3a674d1e686637f8241cd5fb770250..a5693f703ae9b6c93d60bf30b6d90491858a5131 100644
--- a/ash/common/system/chromeos/palette/palette_ids.h
+++ b/ash/common/system/chromeos/palette/palette_ids.h
@@ -27,10 +27,42 @@ enum class PaletteToolId {
MAGNIFY,
};
+// Usage of each pen palette option. This enum is used to back an UMA histogram
+// and should be treated as append-only.
+enum PaletteTrayOptions {
+ PALETTE_CLOSED_NO_ACTION = 0,
+ PALETTE_SETTINGS_BUTTON,
+ PALETTE_HELP_BUTTON,
+ PALETTE_CAPTURE_REGION,
+ PALETTE_CAPTURE_SCREEN,
+ PALETTE_NEW_NOTE,
+ PALETTE_MAGNIFY,
+ PALETTE_LASER_POINTER,
+ PALETTE_OPTIONS_COUNT
+};
+
+// Type of palette mode cancellation. This enum is used to back an UMA histogram
+// and should be treated as append-only.
+enum PaletteModeCancelType {
+ PALETTE_MODE_LASER_POINTER_CANCELLED = 0,
+ PALETTE_MODE_LASER_POINTER_SWITCHED,
+ PALETTE_MODE_MAGNIFY_CANCELLED,
+ PALETTE_MODE_MAGNIFY_SWITCHED,
+ PALETTE_MODE_CANCEL_TYPE_COUNT
+};
+
// Helper functions that convert PaletteToolIds and PaletteGroups to strings.
ASH_EXPORT std::string PaletteToolIdToString(PaletteToolId tool_id);
ASH_EXPORT std::string PaletteGroupToString(PaletteGroup group);
+// Helper functions that convert PaletteToolIds to PaletteTrayOptions.
+ASH_EXPORT PaletteTrayOptions
+PaletteToolIdToPaletteTrayOptions(PaletteToolId tool_id);
+
+// Helper functions that convert PaletteToolIds to PaletteModeCancelType.
+ASH_EXPORT PaletteModeCancelType
+PaletteToolIdToPaletteModeCancelType(PaletteToolId tool_id, bool is_switched);
+
} // namespace ash
#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
« no previous file with comments | « ash/common/system/chromeos/palette/mock_palette_tool_delegate.h ('k') | ash/common/system/chromeos/palette/palette_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698