| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/ui/extras/about_tracing/record_selection_dialo
g.html"> | 8 <link rel="import" href="/tracing/ui/extras/about_tracing/record_selection_dialo
g.html"> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Step 2: Do the actual tracing dialog. | 70 // Step 2: Do the actual tracing dialog. |
| 71 var progressDlg; | 71 var progressDlg; |
| 72 var bufferPercentFullDiv; | 72 var bufferPercentFullDiv; |
| 73 function startTracing() { | 73 function startTracing() { |
| 74 progressDlg = new tr.ui.b.Overlay(); | 74 progressDlg = new tr.ui.b.Overlay(); |
| 75 progressDlg.textContent = 'Recording...'; | 75 progressDlg.textContent = 'Recording...'; |
| 76 progressDlg.userCanClose = false; | 76 progressDlg.userCanClose = false; |
| 77 | 77 |
| 78 bufferPercentFullDiv = document.createElement('div'); | 78 bufferPercentFullDiv = document.createElement('div'); |
| 79 progressDlg.appendChild(bufferPercentFullDiv); | 79 Polymer.dom(progressDlg).appendChild(bufferPercentFullDiv); |
| 80 | 80 |
| 81 var stopButton = document.createElement('button'); | 81 var stopButton = document.createElement('button'); |
| 82 stopButton.textContent = 'Stop'; | 82 stopButton.textContent = 'Stop'; |
| 83 progressDlg.clickStopButton = function() { | 83 progressDlg.clickStopButton = function() { |
| 84 stopButton.click(); | 84 stopButton.click(); |
| 85 }; | 85 }; |
| 86 progressDlg.appendChild(stopButton); | 86 Polymer.dom(progressDlg).appendChild(stopButton); |
| 87 | 87 |
| 88 var recordingOptions = { | 88 var recordingOptions = { |
| 89 categoryFilter: selectionDlg.categoryFilter(), | 89 categoryFilter: selectionDlg.categoryFilter(), |
| 90 useSystemTracing: selectionDlg.useSystemTracing, | 90 useSystemTracing: selectionDlg.useSystemTracing, |
| 91 tracingRecordMode: selectionDlg.tracingRecordMode, | 91 tracingRecordMode: selectionDlg.tracingRecordMode, |
| 92 useSampling: selectionDlg.useSampling | 92 useSampling: selectionDlg.useSampling |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 | 95 |
| 96 var requestPromise = tracingControllerClient.beginRecording( | 96 var requestPromise = tracingControllerClient.beginRecording( |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 __proto__: Error.prototype | 172 __proto__: Error.prototype |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 return { | 175 return { |
| 176 beginRecording: beginRecording, | 176 beginRecording: beginRecording, |
| 177 UserCancelledError: UserCancelledError, | 177 UserCancelledError: UserCancelledError, |
| 178 defaultTraceName: defaultTraceName | 178 defaultTraceName: defaultTraceName |
| 179 }; | 179 }; |
| 180 }); | 180 }); |
| 181 </script> | 181 </script> |
| OLD | NEW |