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

Side by Side Diff: Source/devtools/front_end/main/App.js

Issue 408853002: [DevTools] Make toolbar counters declarative. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
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.Console.UIDelegate} 7 * @implements {WebInspector.Console.UIDelegate}
8 */ 8 */
9 WebInspector.App = function() 9 WebInspector.App = function()
10 { 10 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }, 58 },
59 59
60 showConsole: function() 60 showConsole: function()
61 { 61 {
62 WebInspector.Revealer.reveal(WebInspector.console); 62 WebInspector.Revealer.reveal(WebInspector.console);
63 } 63 }
64 }; 64 };
65 65
66 /** 66 /**
67 * @constructor 67 * @constructor
68 * @implements {WebInspector.StatusBarButton.Provider} 68 * @implements {WebInspector.StatusBarItem.Provider}
69 */ 69 */
70 WebInspector.App.EmulationButtonProvider = function() 70 WebInspector.App.EmulationButtonProvider = function()
71 { 71 {
72 } 72 }
73 73
74 WebInspector.App.EmulationButtonProvider.prototype = { 74 WebInspector.App.EmulationButtonProvider.prototype = {
75 /** 75 /**
76 * @return {?WebInspector.StatusBarButton} 76 * @return {?WebInspector.StatusBarItem}
77 */ 77 */
78 button: function() 78 item: function()
79 { 79 {
80 if (!(WebInspector.app instanceof WebInspector.App)) 80 if (!(WebInspector.app instanceof WebInspector.App))
81 return null; 81 return null;
82 return WebInspector.app._toggleEmulationButton || null; 82 return WebInspector.app._toggleEmulationButton || null;
83 } 83 }
84 } 84 }
85 85
86 /** 86 /**
87 * @type {!WebInspector.App} 87 * @type {!WebInspector.App}
88 */ 88 */
89 WebInspector.app; 89 WebInspector.app;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698