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

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

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 17 matching lines...) Expand all
28 28
29 /** 29 /**
30 * @constructor 30 * @constructor
31 */ 31 */
32 WebInspector.InspectElementModeController = function() 32 WebInspector.InspectElementModeController = function()
33 { 33 {
34 this._toggleSearchButton = new WebInspector.StatusBarButton(WebInspector.UIS tring("Select an element in the page to inspect it."), "node-search-status-bar-i tem"); 34 this._toggleSearchButton = new WebInspector.StatusBarButton(WebInspector.UIS tring("Select an element in the page to inspect it."), "node-search-status-bar-i tem");
35 this._shortcut = WebInspector.InspectElementModeController.createShortcut(); 35 this._shortcut = WebInspector.InspectElementModeController.createShortcut();
36 } 36 }
37 37
38 /**
39 * @return {!WebInspector.KeyboardShortcut.Descriptor}
40 */
38 WebInspector.InspectElementModeController.createShortcut = function() 41 WebInspector.InspectElementModeController.createShortcut = function()
39 { 42 {
40 return WebInspector.KeyboardShortcut.makeDescriptor("c", WebInspector.Keyboa rdShortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift) ; 43 return WebInspector.KeyboardShortcut.makeDescriptor("c", WebInspector.Keyboa rdShortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift) ;
41 } 44 }
42 45
43 WebInspector.InspectElementModeController.prototype = { 46 WebInspector.InspectElementModeController.prototype = {
44 /** 47 /**
45 * @return {boolean} 48 * @return {boolean}
46 */ 49 */
47 enabled: function() 50 enabled: function()
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 { 106 {
104 if (!WebInspector.inspectElementModeController) 107 if (!WebInspector.inspectElementModeController)
105 return null; 108 return null;
106 109
107 return WebInspector.inspectElementModeController._toggleSearchButton; 110 return WebInspector.inspectElementModeController._toggleSearchButton;
108 } 111 }
109 } 112 }
110 113
111 /** @type {?WebInspector.InspectElementModeController} */ 114 /** @type {?WebInspector.InspectElementModeController} */
112 WebInspector.inspectElementModeController = null; 115 WebInspector.inspectElementModeController = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698