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

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

Issue 434403003: [DevTools] Add user metric action DeviceModeEnabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 WebInspector.UserMetrics._ActionCodes = { 46 WebInspector.UserMetrics._ActionCodes = {
47 WindowDocked: 1, 47 WindowDocked: 1,
48 WindowUndocked: 2, 48 WindowUndocked: 2,
49 ScriptsBreakpointSet: 3, 49 ScriptsBreakpointSet: 3,
50 TimelineStarted: 4, 50 TimelineStarted: 4,
51 ProfilesCPUProfileTaken: 5, 51 ProfilesCPUProfileTaken: 5,
52 ProfilesHeapProfileTaken: 6, 52 ProfilesHeapProfileTaken: 6,
53 AuditsStarted: 7, 53 AuditsStarted: 7,
54 ConsoleEvaluated: 8, 54 ConsoleEvaluated: 8,
55 FileSavedInWorkspace: 9 55 FileSavedInWorkspace: 9,
56 DeviceModeEnabled: 10
56 } 57 }
57 58
58 WebInspector.UserMetrics._PanelCodes = { 59 WebInspector.UserMetrics._PanelCodes = {
59 elements: 1, 60 elements: 1,
60 resources: 2, 61 resources: 2,
61 network: 3, 62 network: 3,
62 sources: 4, 63 sources: 4,
63 timeline: 5, 64 timeline: 5,
64 profiles: 6, 65 profiles: 6,
65 audits: 7, 66 audits: 7,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 99 }
99 100
100 WebInspector.UserMetrics._Recorder.prototype = { 101 WebInspector.UserMetrics._Recorder.prototype = {
101 record: function() 102 record: function()
102 { 103 {
103 InspectorFrontendHost.recordActionTaken(this._actionCode); 104 InspectorFrontendHost.recordActionTaken(this._actionCode);
104 } 105 }
105 } 106 }
106 107
107 WebInspector.userMetrics = new WebInspector.UserMetrics(); 108 WebInspector.userMetrics = new WebInspector.UserMetrics();
OLDNEW
« no previous file with comments | « LayoutTests/inspector/user-metrics-expected.txt ('k') | Source/devtools/front_end/main/AdvancedApp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698