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

Unified Diff: third_party/WebKit/Source/devtools/front_end/mobile_throttling/CPUThrottlingManager.js

Issue 2915883002: DevTools: prepare to unify Network and CPU throttling UI (Closed)
Patch Set: gs Created 3 years, 7 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: third_party/WebKit/Source/devtools/front_end/mobile_throttling/CPUThrottlingManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js b/third_party/WebKit/Source/devtools/front_end/mobile_throttling/CPUThrottlingManager.js
similarity index 91%
rename from third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js
rename to third_party/WebKit/Source/devtools/front_end/mobile_throttling/CPUThrottlingManager.js
index 40a91109947fa4aaf0857a740674416ffa4c7b9c..412e9e9fe212a57f4e1bf03cccb92b32a89b965f 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/mobile_throttling/CPUThrottlingManager.js
@@ -5,7 +5,7 @@
/**
* @implements {SDK.SDKModelObserver<!SDK.EmulationModel>}
*/
-Components.CPUThrottlingManager = class extends Common.Object {
+MobileThrottling.CPUThrottlingManager = class extends Common.Object {
constructor() {
super();
this._throttlingRate = 1; // No throttling
@@ -31,7 +31,7 @@ Components.CPUThrottlingManager = class extends Common.Object {
for (var control of this._controls)
control.setSelectedIndex(index);
UI.inspectorView.setPanelIcon('timeline', icon);
- this.dispatchEventToListeners(Components.CPUThrottlingManager.Events.RateChanged);
+ this.dispatchEventToListeners(MobileThrottling.CPUThrottlingManager.Events.RateChanged);
}
/**
@@ -85,6 +85,6 @@ Components.CPUThrottlingManager = class extends Common.Object {
};
/** @enum {symbol} */
-Components.CPUThrottlingManager.Events = {
+MobileThrottling.CPUThrottlingManager.Events = {
RateChanged: Symbol('RateChanged')
};

Powered by Google App Engine
This is Rietveld 408576698