OLD | NEW |
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 Loading... |
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; |
OLD | NEW |