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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js

Issue 1531583004: [DevTools] Improve Device Mode icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolbar-refactor
Patch Set: test Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.App} 7 * @implements {WebInspector.App}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.ScreencastApp = function() 10 WebInspector.ScreencastApp = function()
11 { 11 {
12 this._enabledSetting = WebInspector.settings.createSetting("screencastEnable d", true); 12 this._enabledSetting = WebInspector.settings.createSetting("screencastEnable d", true);
13 this._toggleButton = new WebInspector.ToolbarToggle(WebInspector.UIString("T oggle screencast"), "screencast-toolbar-item"); 13 this._toggleButton = new WebInspector.ToolbarToggle(WebInspector.UIString("T oggle screencast"), "phone-toolbar-item");
14 this._toggleButton.setToggled(this._enabledSetting.get()); 14 this._toggleButton.setToggled(this._enabledSetting.get());
15 this._toggleButton.addEventListener("click", this._toggleButtonClicked, this ); 15 this._toggleButton.addEventListener("click", this._toggleButtonClicked, this );
16 WebInspector.targetManager.observeTargets(this); 16 WebInspector.targetManager.observeTargets(this);
17 }; 17 };
18 18
19 WebInspector.ScreencastApp.prototype = { 19 WebInspector.ScreencastApp.prototype = {
20 /** 20 /**
21 * @override 21 * @override
22 * @param {!Document} document 22 * @param {!Document} document
23 * @param {function()} callback 23 * @param {function()} callback
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 WebInspector.ScreencastAppProvider.prototype = { 139 WebInspector.ScreencastAppProvider.prototype = {
140 /** 140 /**
141 * @override 141 * @override
142 * @return {!WebInspector.App} 142 * @return {!WebInspector.App}
143 */ 143 */
144 createApp: function() 144 createApp: function()
145 { 145 {
146 return WebInspector.ScreencastApp._instance(); 146 return WebInspector.ScreencastApp._instance();
147 } 147 }
148 }; 148 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698