1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_METRICS_APPLESCRIPT_H_
6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_METRICS_APPLESCRIPT_H_
8 namespace AppleScript
{
10 // The AppleScript verb commands that are being recorded in a histogram. These
11 // values should not be re-ordered or removed.
12 enum AppleScriptCommand
{
16 TAB_EXECUTE_JAVASCRIPT
,
29 WINDOW_ENTER_PRESENTATION_MODE
,
30 WINDOW_EXIT_PRESENTATION_MODE
,
31 APPLESCRIPT_COMMAND_EVENTS_COUNT
34 // Logs the sample's UMA metrics into the AppleScript.CommandEvent histogram
35 void LogAppleScriptUMA(AppleScriptCommand sample
);
39 #endif // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_METRICS_APPLESCRIPT_H_