| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(); |
| OLD | NEW |