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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/host/UserMetrics.js

Issue 2678233002: DevTools: track more elements panel user actions (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 Host.UserMetrics.Action = { 65 Host.UserMetrics.Action = {
66 WindowDocked: 1, 66 WindowDocked: 1,
67 WindowUndocked: 2, 67 WindowUndocked: 2,
68 ScriptsBreakpointSet: 3, 68 ScriptsBreakpointSet: 3,
69 TimelineStarted: 4, 69 TimelineStarted: 4,
70 ProfilesCPUProfileTaken: 5, 70 ProfilesCPUProfileTaken: 5,
71 ProfilesHeapProfileTaken: 6, 71 ProfilesHeapProfileTaken: 6,
72 AuditsStarted: 7, 72 AuditsStarted: 7,
73 ConsoleEvaluated: 8, 73 ConsoleEvaluated: 8,
74 FileSavedInWorkspace: 9, 74 FileSavedInWorkspace: 9,
75 DeviceModeEnabled: 10, 75 DeviceModeEnabled: 10,
pfeldman 2017/02/07 19:15:27 Here it is!
76 AnimationsPlaybackRateChanged: 11, 76 AnimationsPlaybackRateChanged: 11,
77 RevisionApplied: 12, 77 RevisionApplied: 12,
78 FileSystemDirectoryContentReceived: 13, 78 FileSystemDirectoryContentReceived: 13,
79 StyleRuleEdited: 14, 79 StyleRuleEdited: 14,
80 CommandEvaluatedInConsolePanel: 15, 80 CommandEvaluatedInConsolePanel: 15,
81 DOMPropertiesExpanded: 16, 81 DOMPropertiesExpanded: 16,
82 ResizedViewInResponsiveMode: 17, 82 ResizedViewInResponsiveMode: 17,
83 TimelinePageReloadStarted: 18, 83 TimelinePageReloadStarted: 18,
84 ConnectToNodeJSFromFrontend: 19, 84 ConnectToNodeJSFromFrontend: 19,
85 ConnectToNodeJSDirectly: 20, 85 ConnectToNodeJSDirectly: 20,
86 DeviceModeToggleOn: 21,
87 DeviceModeToggleOff: 22,
88 InspectElementModeToggleOn: 23,
89 InspectElementModeToggleOff: 24,
90 ElementsTreeOutlineClick: 25,
86 }; 91 };
87 92
88 Host.UserMetrics._PanelCodes = { 93 Host.UserMetrics._PanelCodes = {
89 elements: 1, 94 elements: 1,
90 resources: 2, 95 resources: 2,
91 network: 3, 96 network: 3,
92 sources: 4, 97 sources: 4,
93 timeline: 5, 98 timeline: 5,
94 heap_profiler: 6, 99 heap_profiler: 6,
95 audits: 7, 100 audits: 7,
96 console: 8, 101 console: 8,
97 layers: 9, 102 layers: 9,
98 'drawer-console': 10, 103 'drawer-console': 10,
99 'drawer-animations': 11, 104 'drawer-animations': 11,
100 'drawer-network.config': 12, 105 'drawer-network.config': 12,
101 'drawer-rendering': 13, 106 'drawer-rendering': 13,
102 'drawer-sensors': 14, 107 'drawer-sensors': 14,
103 'drawer-sources.search': 15, 108 'drawer-sources.search': 15,
104 security: 16, 109 security: 16,
105 js_profiler: 17 110 js_profiler: 17
106 }; 111 };
107 112
108 /** @type {!Host.UserMetrics} */ 113 /** @type {!Host.UserMetrics} */
109 Host.userMetrics = new Host.UserMetrics(); 114 Host.userMetrics = new Host.UserMetrics();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698