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

Unified Diff: chrome/browser/resources/tracing/tracing_controller.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/tracing/tracing_controller.js
diff --git a/chrome/browser/resources/gpu_internals/tracing_controller.js b/chrome/browser/resources/tracing/tracing_controller.js
similarity index 94%
rename from chrome/browser/resources/gpu_internals/tracing_controller.js
rename to chrome/browser/resources/tracing/tracing_controller.js
index ff202341868cdad108b9dfac513e555cf54225ea..494cf6852b66f340191dc7640fe933020a4b6cf8 100644
--- a/chrome/browser/resources/gpu_internals/tracing_controller.js
+++ b/chrome/browser/resources/tracing/tracing_controller.js
@@ -6,13 +6,13 @@
/**
* @fileoverview State and UI for trace data collection.
*/
-cr.define('gpu', function() {
+cr.define('tracing', function() {
function TracingController() {
this.overlay_ = document.createElement('div');
- this.overlay_.className = 'gpu-tracing-overlay';
+ this.overlay_.className = 'tracing-overlay';
- cr.ui.decorate(this.overlay_, gpu.Overlay);
+ cr.ui.decorate(this.overlay_, tracing.Overlay);
this.statusDiv_ = document.createElement('div');
this.overlay_.appendChild(this.statusDiv_);
@@ -30,7 +30,7 @@ cr.define('gpu', function() {
if (browserBridge.debugMode) {
var tracingControllerTests = document.createElement('script');
tracingControllerTests.src =
- './gpu_internals/tracing_controller_tests.js';
+ './tracing/tracing_controller_tests.js';
document.body.appendChild(tracingControllerTests);
}
@@ -81,7 +81,7 @@ cr.define('gpu', function() {
chrome.send('beginTracing');
this.beginRequestBufferPercentFull_();
} else {
- gpu.tracingControllerTestHarness.beginTracing();
+ tracing.tracingControllerTestHarness.beginTracing();
}
this.tracingEnabled_ = true;
@@ -125,7 +125,7 @@ cr.define('gpu', function() {
},
/**
- * Callbed by gpu c++ code when new GPU trace data arrives.
+ * Called by tracing c++ code when new trace data arrives.
*/
onTraceDataCollected: function(events) {
this.statusDiv_.textContent = 'Processing trace...';
@@ -150,7 +150,7 @@ cr.define('gpu', function() {
if (!browserBridge.debugMode) {
chrome.send('endTracingAsync');
} else {
- gpu.tracingControllerTestHarness.endTracing();
+ tracing.tracingControllerTestHarness.endTracing();
}
}, 100);
},
« no previous file with comments | « chrome/browser/resources/tracing/tracing_controller.css ('k') | chrome/browser/resources/tracing/tracing_controller_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698