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

Side by Side Diff: Source/devtools/front_end/components/InspectElementModeController.js

Issue 408853002: [DevTools] Make toolbar counters declarative. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed comment 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { 86 {
87 if (!WebInspector.inspectElementModeController) 87 if (!WebInspector.inspectElementModeController)
88 return false; 88 return false;
89 WebInspector.inspectElementModeController._toggleSearch(); 89 WebInspector.inspectElementModeController._toggleSearch();
90 return true; 90 return true;
91 } 91 }
92 } 92 }
93 93
94 /** 94 /**
95 * @constructor 95 * @constructor
96 * @implements {WebInspector.StatusBarButton.Provider} 96 * @implements {WebInspector.StatusBarItem.Provider}
97 */ 97 */
98 WebInspector.InspectElementModeController.ToggleButtonProvider = function() 98 WebInspector.InspectElementModeController.ToggleButtonProvider = function()
99 { 99 {
100 } 100 }
101 101
102 WebInspector.InspectElementModeController.ToggleButtonProvider.prototype = { 102 WebInspector.InspectElementModeController.ToggleButtonProvider.prototype = {
103 /** 103 /**
104 * @return {?WebInspector.StatusBarButton} 104 * @return {?WebInspector.StatusBarItem}
105 */ 105 */
106 button: function() 106 item: function()
107 { 107 {
108 if (!WebInspector.inspectElementModeController) 108 if (!WebInspector.inspectElementModeController)
109 return null; 109 return null;
110 110
111 return WebInspector.inspectElementModeController._toggleSearchButton; 111 return WebInspector.inspectElementModeController._toggleSearchButton;
112 } 112 }
113 } 113 }
114 114
115 /** @type {?WebInspector.InspectElementModeController} */ 115 /** @type {?WebInspector.InspectElementModeController} */
116 WebInspector.inspectElementModeController = null; 116 WebInspector.inspectElementModeController = null;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/DockController.js ('k') | Source/devtools/front_end/components/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698