Changeset 168919 in webkit


Ignore:
Timestamp:
May 15, 2014 8:32:19 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Should remove JSDoc comment blocks.
https://bugs.webkit.org/show_bug.cgi?id=132984

Patch by Jono Wells <jonowells@apple.com> on 2014-05-15
Reviewed by Timothy Hatcher.

Remove JSDoc comment blocks. These are no longer necessary.

  • UserInterface/Base/Main.js:
  • UserInterface/Base/Object.js:
  • UserInterface/Controllers/DOMTreeManager.js:
  • UserInterface/Models/CSSCompletions.js:
  • UserInterface/Models/DOMNode.js:
  • UserInterface/Models/SourceMap.js:
  • UserInterface/Protocol/InspectorBackend.js:
  • UserInterface/Protocol/RemoteObject.js:
  • UserInterface/Views/ApplicationCacheFrameContentView.js:
  • UserInterface/Views/ConsoleMessage.js:
  • UserInterface/Views/ConsoleMessageImpl.js:
  • UserInterface/Views/ContextMenu.js:
  • UserInterface/Views/DOMTreeElement.js:
  • UserInterface/Views/DOMTreeOutline.js:
  • UserInterface/Views/DOMTreeUpdater.js:
  • UserInterface/Views/DataGrid.js:
  • UserInterface/Views/DatabaseContentView.js:
  • UserInterface/Views/EditingSupport.js:
  • UserInterface/Views/ObjectPropertiesSection.js:
  • UserInterface/Views/Popover.js:
  • UserInterface/Views/TreeOutline.js:

JSDoc style comment blocks removed.

Location:
trunk/Source/WebInspectorUI
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r168678 r168919  
     12014-05-15  Jono Wells  <jonowells@apple.com>
     2
     3        Web Inspector: Should remove JSDoc comment blocks.
     4        https://bugs.webkit.org/show_bug.cgi?id=132984
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Remove JSDoc comment blocks. These are no longer necessary.
     9
     10        * UserInterface/Base/Main.js:
     11        * UserInterface/Base/Object.js:
     12        * UserInterface/Controllers/DOMTreeManager.js:
     13        * UserInterface/Models/CSSCompletions.js:
     14        * UserInterface/Models/DOMNode.js:
     15        * UserInterface/Models/SourceMap.js:
     16        * UserInterface/Protocol/InspectorBackend.js:
     17        * UserInterface/Protocol/RemoteObject.js:
     18        * UserInterface/Views/ApplicationCacheFrameContentView.js:
     19        * UserInterface/Views/ConsoleMessage.js:
     20        * UserInterface/Views/ConsoleMessageImpl.js:
     21        * UserInterface/Views/ContextMenu.js:
     22        * UserInterface/Views/DOMTreeElement.js:
     23        * UserInterface/Views/DOMTreeOutline.js:
     24        * UserInterface/Views/DOMTreeUpdater.js:
     25        * UserInterface/Views/DataGrid.js:
     26        * UserInterface/Views/DatabaseContentView.js:
     27        * UserInterface/Views/EditingSupport.js:
     28        * UserInterface/Views/ObjectPropertiesSection.js:
     29        * UserInterface/Views/Popover.js:
     30        * UserInterface/Views/TreeOutline.js:
     31        JSDoc style comment blocks removed.
     32
    1332014-05-13  Radu Stavila  <stavila@adobe.com>
    234
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r168484 r168919  
    16971697}
    16981698
    1699 /**
    1700  * @param {Element} element
    1701  * @param {Array.<Object>} resultRanges
    1702  * @param {string} styleClass
    1703  * @param {Array.<Object>=} changes
    1704  */
    17051699WebInspector.highlightRangesWithStyleClass = function(element, resultRanges, styleClass, changes)
    17061700{
  • trunk/Source/WebInspectorUI/UserInterface/Base/Object.js

    r164543 r168919  
    2424 */
    2525
    26 /**
    27  * @constructor
    28  */
    2926WebInspector.Object = function()
    3027{
    3128}
    3229
    33 /**
    34  * @param {function} constructor
    35  */
    3630WebInspector.Object.addConstructorFunctions = function(subclassConstructor)
    3731{
     
    4741}
    4842
    49 /**
    50  * @param {string} eventType
    51  * @param {function(WebInspector.Event)} listener
    52  * @param {Object=} thisObject
    53  */
    5443WebInspector.Object.addEventListener = function(eventType, listener, thisObject)
    5544{
     
    8069};
    8170
    82 /**
    83  * @param {string} eventType
    84  * @param {function(WebInspector.Event)} listener
    85  * @param {Object=} thisObject
    86  */
    8771WebInspector.Object.removeEventListener = function(eventType, listener, thisObject)
    8872{
     
    123107};
    124108
    125 /**
    126  * @param {string} eventType
    127  * @return {boolean}
    128  */
    129109WebInspector.Object.hasEventListeners = function(eventType)
    130110{
     
    137117    constructor: WebInspector.Object,
    138118
    139     /**
    140      * @param {string} eventType
    141      * @param {function(WebInspector.Event)} listener
    142      * @param {Object=} thisObject
    143      */
    144119    addEventListener: WebInspector.Object.addEventListener,
    145120
    146     /**
    147      * @param {string} eventType
    148      * @param {function(WebInspector.Event)} listener
    149      * @param {Object=} thisObject
    150      */
    151121    removeEventListener: WebInspector.Object.removeEventListener,
    152122
    153123    removeAllListeners: WebInspector.Object.removeAllListeners,
    154124
    155     /**
    156      * @param {string} eventType
    157      * @return {boolean}
    158      */
    159125    hasEventListeners: WebInspector.Object.hasEventListeners,
    160126
    161     /**
    162      * @param {string} eventType
    163      * @param {*=} eventData
    164      * @return {boolean}
    165      */
    166127    dispatchEventToListeners: function(eventType, eventData)
    167128    {
     
    205166}
    206167
    207 /**
    208  * @constructor
    209  * @param {WebInspector.Object} target
    210  * @param {string} type
    211  * @param {*=} data
    212  */
    213168WebInspector.Event = function(target, type, data)
    214169{
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js

    r168306 r168919  
    3131 */
    3232
    33 /**
    34  * @extends {WebInspector.Object}
    35  * @constructor
    36  */
    3733WebInspector.DOMTreeManager = function() {
    38     /** @type {Object|undefined} */
    3934    this._idToDOMNode = {};
    4035    this._document = null;
     
    4237    this._flows = new Map;
    4338    this._contentNodesToFlowsMap = new Map;
    44 }
     39};
    4540
    4641WebInspector.Object.addConstructorFunctions(WebInspector.DOMTreeManager);
     
    6964
    7065WebInspector.DOMTreeManager.prototype = {
    71     /**
    72      * @param {function(WebInspector.DOMDocument)=} callback
    73      */
    7466    requestDocument: function(callback)
    7567    {
     
    8779        this._pendingDocumentRequestCallbacks = [callback];
    8880
    89         /**
    90          * @this {WebInspector.DOMTreeManager}
    91          * @param {?Protocol.Error} error
    92          * @param {DOMAgent.Node} root
    93          */
    9481        function onDocumentAvailable(error, root)
    9582        {
     
    10895    },
    10996
    110     /**
    111      * @param {RuntimeAgent.RemoteObjectId} objectId
    112      * @param {function()=} callback
    113      */
    11497    pushNodeToFrontend: function(objectId, callback)
    11598    {
     
    117100    },
    118101
    119     /**
    120      * @param {string} path
    121      * @param {function(?WebInspector.DOMNode)=} callback
    122      */
    123102    pushNodeByPathToFrontend: function(path, callback)
    124103    {
    125         var callbackCast = /** @type {function(*)} */ callback;
     104        var callbackCast = callback;
    126105        this._dispatchWhenDocumentAvailable(DOMAgent.pushNodeByPathToFrontend.bind(DOMAgent, path), callbackCast);
    127106    },
    128107
    129     /**
    130      * @param {function(*)=} callback
    131      * @return {function(?Protocol.Error,*=)|undefined}
    132      */
    133108    _wrapClientCallback: function(callback)
    134109    {
     
    142117    },
    143118
    144     /**
    145      * @param {function(function()=)} func
    146      * @param {function(*)=} callback
    147      */
    148119    _dispatchWhenDocumentAvailable: function(func, callback)
    149120    {
    150         var callbackWrapper = /** @type {function(?Protocol.Error, *=)} */ this._wrapClientCallback(callback);
     121        var callbackWrapper = this._wrapClientCallback(callback);
    151122
    152123        function onDocumentAvailable()
     
    162133    },
    163134
    164     /**
    165      * @param {DOMAgent.NodeId} nodeId
    166      * @param {string} name
    167      * @param {string} value
    168      */
    169135    _attributeModified: function(nodeId, name, value)
    170136    {
     
    177143    },
    178144
    179     /**
    180      * @param {DOMAgent.NodeId} nodeId
    181      * @param {string} name
    182      */
    183145    _attributeRemoved: function(nodeId, name)
    184146    {
     
    191153    },
    192154
    193     /**
    194      * @param {Array.<DOMAgent.NodeId>} nodeIds
    195      */
    196155    _inlineStyleInvalidated: function(nodeIds)
    197156    {
     
    205164    _loadNodeAttributes: function()
    206165    {
    207         /**
    208          * @this {WebInspector.DOMTreeManager}
    209          * @param {DOMAgent.NodeId} nodeId
    210          * @param {?Protocol.Error} error
    211          * @param {Array.<string>} attributes
    212          */
    213166        function callback(nodeId, error, attributes)
    214167        {
     
    234187    },
    235188
    236     /**
    237      * @param {DOMAgent.NodeId} nodeId
    238      * @param {string} newValue
    239      */
    240189    _characterDataModified: function(nodeId, newValue)
    241190    {
     
    245194    },
    246195
    247     /**
    248      * @param {DOMAgent.NodeId} nodeId
    249      * @return {WebInspector.DOMNode|undefined}
    250      */
    251196    nodeForId: function(nodeId)
    252197    {
     
    259204    },
    260205
    261     /**
    262      * @param {DOMAgent.Node} payload
    263      */
    264206    _setDocument: function(payload)
    265207    {
     
    272214    },
    273215
    274     /**
    275      * @param {DOMAgent.Node} payload
    276      */
    277216    _setDetachedRoot: function(payload)
    278217    {
     
    280219    },
    281220
    282     /**
    283      * @param {DOMAgent.NodeId} parentId
    284      * @param {Array.<DOMAgent.Node>} payloads
    285      */
    286221    _setChildNodes: function(parentId, payloads)
    287222    {
     
    295230    },
    296231
    297     /**
    298      * @param {DOMAgent.NodeId} nodeId
    299      * @param {number} newValue
    300      */
    301232    _childNodeCountUpdated: function(nodeId, newValue)
    302233    {
     
    306237    },
    307238
    308     /**
    309      * @param {DOMAgent.NodeId} parentId
    310      * @param {DOMAgent.NodeId} prevId
    311      * @param {DOMAgent.Node} payload
    312      */
    313239    _childNodeInserted: function(parentId, prevId, payload)
    314240    {
     
    320246    },
    321247
    322     /**
    323      * @param {DOMAgent.NodeId} parentId
    324      * @param {DOMAgent.NodeId} nodeId
    325      */
    326248    _childNodeRemoved: function(parentId, nodeId)
    327249    {
     
    333255    },
    334256
    335     /**
    336      * @param {DOMAgent.Node} node
    337      */
    338257    _unbind: function(node)
    339258    {
     
    345264    },
    346265
    347     /**
    348      * @param {number} nodeId
    349      */
    350266    inspectElement: function(nodeId)
    351267    {
     
    374290    },
    375291
    376     /**
    377      * @param {string} query
    378      * @param {function(number)} searchCallback
    379      */
    380292    performSearch: function(query, searchCallback)
    381293    {
    382294        this.cancelSearch();
    383295
    384         /**
    385          * @param {?Protocol.Error} error
    386          * @param {string} searchId
    387          * @param {number} resultsCount
    388          */
    389296        function callback(error, searchId, resultsCount)
    390297        {
     
    395302    },
    396303
    397     /**
    398      * @param {number} index
    399      * @param {?function(DOMAgent.Node)} callback
    400      */
    401304    searchResult: function(index, callback)
    402305    {
    403306        if (this._searchId) {
    404             /**
    405              * @param {?Protocol.Error} error
    406              * @param {Array.<number>} nodeIds
    407              */
    408307            function mycallback(error, nodeIds)
    409308            {
     
    431330    },
    432331
    433     /**
    434      * @param {DOMAgent.NodeId} nodeId
    435      * @param {string} selectors
    436      * @param {function(?DOMAgent.NodeId)=} callback
    437      */
    438332    querySelector: function(nodeId, selectors, callback)
    439333    {
    440         var callbackCast = /** @type {function(*)|undefined} */callback;
     334        var callbackCast = callback;
    441335        DOMAgent.querySelector(nodeId, selectors, this._wrapClientCallback(callbackCast));
    442336    },
    443337
    444     /**
    445      * @param {DOMAgent.NodeId} nodeId
    446      * @param {string} selectors
    447      * @param {function(?Array.<DOMAgent.NodeId>)=} callback
    448      */
    449338    querySelectorAll: function(nodeId, selectors, callback)
    450339    {
    451         var callbackCast = /** @type {function(*)|undefined} */callback;
     340        var callbackCast = callback;
    452341        DOMAgent.querySelectorAll(nodeId, selectors, this._wrapClientCallback(callbackCast));
    453342    },
    454343
    455     /**
    456      * @param {?number} nodeId
    457      * @param {string=} mode
    458      */
    459344    highlightDOMNode: function(nodeId, mode)
    460345    {
     
    489374    },
    490375
    491     /**
    492      * @param {?DOMAgent.NodeId} nodeId
    493      */
    494376    highlightDOMNodeForTwoSeconds: function(nodeId)
    495377    {
     
    514396    },
    515397
    516     /**
    517      * @param {string=} mode
    518      */
    519398    _buildHighlightConfig: function(mode)
    520399    {
     
    824703        }
    825704    }
    826 }
     705};
    827706
    828707WebInspector.DOMTreeManager.prototype.__proto__ = WebInspector.Object.prototype;
  • trunk/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js

    r164543 r168919  
    3232 */
    3333
    34 /**
    35  * @constructor
    36  */
    3734WebInspector.CSSCompletions = function(properties, acceptEmptyPrefix)
    3835{
     
    7673}
    7774
    78 
    79 /**
    80  * @type {WebInspector.CSSCompletions}
    81  */
    8275WebInspector.CSSCompletions.cssNameCompletions = null;
    8376
  • trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js

    r166449 r168919  
    3131 */
    3232
    33 /**
    34  * @constructor
    35  * @param {WebInspector.DOMAgent} domAgent
    36  * @param {?WebInspector.DOMNode} doc
    37  * @param {boolean} isInShadowTree
    38  * @param {DOMAgent.Node} payload
    39  */
    4033WebInspector.DOMNode = function(domAgent, doc, isInShadowTree, payload) {
    4134    WebInspector.Object.call(this);
     
    206199        this._childNodeCount = count;
    207200    },
    208    
    209     /**
    210      * @return {string}
    211      */
     201
    212202    computedRole: function()
    213203    {
     
    215205    },
    216206
    217     /**
    218      * @return {boolean}
    219      */
    220207    hasAttributes: function()
    221208    {
     
    223210    },
    224211
    225     /**
    226      * @return {boolean}
    227      */
    228212    hasChildNodes: function()
    229213    {
     
    231215    },
    232216
    233     /**
    234      * @return {boolean}
    235      */
    236217    hasShadowRoots: function()
    237218    {
     
    239220    },
    240221
    241     /**
    242      * @return {boolean}
    243      */
    244222    isInShadowTree: function()
    245223    {
     
    247225    },
    248226
    249     /**
    250      * @return {number}
    251      */
    252227    nodeType: function()
    253228    {
     
    255230    },
    256231
    257     /**
    258      * @return {string}
    259      */
    260232    nodeName: function()
    261233    {
     
    263235    },
    264236
    265     /**
    266      * @return {string}
    267      */
    268237    nodeNameInCorrectCase: function()
    269238    {
     
    271240    },
    272241
    273     /**
    274      * @param {string} name
    275      * @param {function()=} callback
    276      */
    277242    setNodeName: function(name, callback)
    278243    {
     
    280245    },
    281246
    282     /**
    283      * @return {string}
    284      */
    285247    localName: function()
    286248    {
     
    288250    },
    289251
    290     /**
    291      * @return {string}
    292      */
    293252    nodeValue: function()
    294253    {
     
    296255    },
    297256
    298     /**
    299      * @param {string} value
    300      * @param {function(?Protocol.Error)=} callback
    301      */
    302257    setNodeValue: function(value, callback)
    303258    {
     
    305260    },
    306261
    307     /**
    308      * @param {string} name
    309      * @return {string}
    310      */
    311262    getAttribute: function(name)
    312263    {
     
    315266    },
    316267
    317     /**
    318      * @param {string} name
    319      * @param {string} text
    320      * @param {function()=} callback
    321      */
    322268    setAttribute: function(name, text, callback)
    323269    {
     
    325271    },
    326272
    327     /**
    328      * @param {string} name
    329      * @param {string} value
    330      * @param {function()=} callback
    331      */
    332273    setAttributeValue: function(name, value, callback)
    333274    {
     
    335276    },
    336277
    337     /**
    338      * @return {Object}
    339      */
    340278    attributes: function()
    341279    {
     
    343281    },
    344282
    345     /**
    346      * @param {string} name
    347      * @param {function()=} callback
    348      */
    349283    removeAttribute: function(name, callback)
    350284    {
     
    366300    },
    367301
    368     /**
    369      * @param {function(Array.<WebInspector.DOMNode>)=} callback
    370      */
    371302    getChildNodes: function(callback)
    372303    {
     
    377308        }
    378309
    379         /**
    380          * @this {WebInspector.DOMNode}
    381          * @param {?Protocol.Error} error
    382          */
    383310        function mycallback(error) {
    384311            if (!error && callback)
     
    389316    },
    390317
    391      /**
    392       * @param {number} depth
    393       * @param {function(Array.<WebInspector.DOMNode>)=} callback
    394       */
    395318    getSubtree: function(depth, callback)
    396319    {
    397         /**
    398          * @this {WebInspector.DOMNode}
    399          * @param {?Protocol.Error} error
    400          */
    401320        function mycallback(error)
    402321        {
    403322            if (callback)
    404                 callback(error ? null : this.children);               
     323                callback(error ? null : this.children);
    405324        }
    406325
     
    408327    },
    409328
    410     /**
    411      * @param {function(?Protocol.Error)=} callback
    412      */
    413329    getOuterHTML: function(callback)
    414330    {
     
    416332    },
    417333
    418     /**
    419      * @param {string} html
    420      * @param {function(?Protocol.Error)=} callback
    421      */
    422334    setOuterHTML: function(html, callback)
    423335    {
     
    425337    },
    426338
    427     /**
    428      * @param {function(?Protocol.Error)=} callback
    429      */
    430339    removeNode: function(callback)
    431340    {
     
    443352    },
    444353
    445     /**
    446      * @param {function(?Protocol.Error)=} callback
    447      */
    448354    eventListeners: function(callback)
    449355    {
     
    490396    },
    491397
    492     /**
    493      * @return {string}
    494      */
    495398    path: function()
    496399    {
     
    505408    },
    506409
    507     /**
    508      * @param {boolean} justSelector
    509      * @return {string}
    510      */
    511410    appropriateSelectorFor: function(justSelector)
    512411    {
     
    535434    },
    536435
    537     /**
    538      * @param {WebInspector.DOMNode} node
    539      * @return {boolean}
    540      */
    541436    isAncestor: function(node)
    542437    {
     
    553448    },
    554449
    555     /**
    556      * @param {WebInspector.DOMNode} descendant
    557      * @return {boolean}
    558      */
    559450    isDescendant: function(descendant)
    560451    {
     
    562453    },
    563454
    564     /**
    565      * @param {Array.<string>} attrs
    566      */
    567455    _setAttributesPayload: function(attrs)
    568456    {
     
    573461    },
    574462
    575     /**
    576      * @param {WebInspector.DOMNode} prev
    577      * @param {DOMAgent.Node} payload
    578      * @return {WebInspector.DOMNode}
    579      */
    580463    _insertChild: function(prev, payload)
    581464    {
     
    593476    },
    594477
    595     /**
    596      * @param {WebInspector.DOMNode} node
    597      */
    598478    _removeChild: function(node)
    599479    {
     
    603483    },
    604484
    605     /**
    606      * @param {Array.<DOMAgent.Node>} payloads
    607      */
    608485    _setChildrenPayload: function(payloads)
    609486    {
     
    638515    },
    639516
    640     /**
    641      * @param {string} name
    642      * @param {string} value
    643      */
    644517    _addAttribute: function(name, value)
    645518    {
     
    653526    },
    654527
    655     /**
    656      * @param {string} name
    657      * @param {string} value
    658      */
    659528    _setAttribute: function(name, value)
    660529    {
     
    666535    },
    667536
    668     /**
    669      * @param {string} name
    670      */
    671537    _removeAttribute: function(name)
    672538    {
     
    678544    },
    679545
    680     /**
    681      * @param {WebInspector.DOMNode} targetNode
    682      * @param {?WebInspector.DOMNode} anchorNode
    683      * @param {function(?Protocol.Error)=} callback
    684      */
    685546    moveTo: function(targetNode, anchorNode, callback)
    686547    {
     
    688549    },
    689550
    690     /**
    691      * @return {boolean}
    692      */
    693551    isXMLNode: function()
    694552    {
     
    700558        return this._enabledPseudoClasses;
    701559    },
    702    
     560
    703561    setPseudoClassEnabled: function(pseudoClass, enabled)
    704562    {
  • trunk/Source/WebInspectorUI/UserInterface/Models/SourceMap.js

    r164543 r168919  
    2424 */
    2525
    26 /**
    27  * Implements Source Map V3 model. See http://code.google.com/p/closure-compiler/wiki/SourceMaps
    28  * for format description.
    29  * @constructor
    30  * @param {string} sourceMappingURL
    31  * @param {SourceMapV3} payload
    32  * @param {WebInspector.Resource|WebInspector.Script} originalSourceCode
    33  */
    3426WebInspector.SourceMap = function(sourceMappingURL, payload, originalSourceCode)
    3527{
     
    10294    },
    10395
    104     /**
    105      * @return {Array.<string>}
    106      */
    10796    sources: function()
    10897    {
     
    11099    },
    111100
    112     /**
    113      * @param {string} sourceURL
    114      * @return {string|undefined}
    115      */
    116101    sourceContent: function(sourceURL)
    117102    {
     
    119104    },
    120105
    121     /**
    122      * @param {SourceMapV3} mappingPayload
    123      */
    124106    _parseMappingPayload: function(mappingPayload)
    125107    {
     
    130112    },
    131113
    132     /**
    133      * @param {Array.<SourceMapV3.Section>} sections
    134      */
    135114    _parseSections: function(sections)
    136115    {
     
    141120    },
    142121
    143     /**
    144      * @param {number} lineNumber in compiled resource
    145      * @param {number} columnNumber in compiled resource
    146      * @return {?Array}
    147      */
    148122    findEntry: function(lineNumber, columnNumber)
    149123    {
     
    167141    },
    168142
    169     /**
    170      * @param {string} sourceURL of the originating resource
    171      * @param {number} lineNumber in the originating resource
    172      * @return {Array}
    173      */
    174143    findEntryReversed: function(sourceURL, lineNumber)
    175144    {
     
    183152    },
    184153
    185     /**
    186      * @param {SourceMapV3} map
    187      * @param {number} lineNumber
    188      * @param {number} columnNumber
    189      */
    190154    _parseMap: function(map, lineNumber, columnNumber)
    191155    {
     
    262226    },
    263227
    264     /**
    265      * @param {string} char
    266      * @return {boolean}
    267      */
    268228    _isSeparator: function(char)
    269229    {
     
    271231    },
    272232
    273     /**
    274      * @param {WebInspector.SourceMap.StringCharIterator} stringCharIterator
    275      * @return {number}
    276      */
    277233    _decodeVLQ: function(stringCharIterator)
    278234    {
     
    297253}
    298254
    299 /**
    300  * @constructor
    301  * @param {string} string
    302  */
    303255WebInspector.SourceMap.StringCharIterator = function(string)
    304256{
     
    308260
    309261WebInspector.SourceMap.StringCharIterator.prototype = {
    310     /**
    311      * @return {string}
    312      */
    313262    next: function()
    314263    {
     
    316265    },
    317266
    318     /**
    319      * @return {string}
    320      */
    321267    peek: function()
    322268    {
     
    324270    },
    325271
    326     /**
    327      * @return {boolean}
    328      */
    329272    hasNext: function()
    330273    {
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js

    r168040 r168919  
    3131 */
    3232
    33 /**
    34  * @constructor
    35  */
    3633function InspectorBackendClass()
    3734{
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/RemoteObject.js

    r164543 r168919  
    2929 */
    3030
    31 /**
    32  * @constructor
    33  * @param {string|undefined} objectId
    34  * @param {string} type
    35  * @param {string|undefined} subtype
    36  * @param {*} value
    37  * @param {string=} description
    38  */
    3931WebInspector.RemoteObject = function(objectId, type, subtype, value, description)
    4032{
     
    5547}
    5648
    57 /**
    58  * @param {number|string|boolean} value
    59  * @return {WebInspector.RemoteObject}
    60  */
    6149WebInspector.RemoteObject.fromPrimitiveValue = function(value)
    6250{
     
    6452}
    6553
    66 /**
    67  * @param {Object} value
    68  * @return {WebInspector.RemoteObject}
    69  */
    7054WebInspector.RemoteObject.fromLocalObject = function(value)
    7155{
     
    7357}
    7458
    75 /**
    76  * @param {WebInspector.DOMNode} node
    77  * @param {string} objectGroup
    78  * @param {function(?WebInspector.RemoteObject)} callback
    79  */
    8059WebInspector.RemoteObject.resolveNode = function(node, objectGroup, callback)
    8160{
    82     /**
    83      * @param {?Protocol.Error} error
    84      * @param {RuntimeAgent.RemoteObject} object
    85      */
    8661    function mycallback(error, object)
    8762    {
     
    9772}
    9873
    99 /**
    100  * @param {RuntimeAgent.RemoteObject} payload
    101  * @return {WebInspector.RemoteObject}
    102  */
    10374WebInspector.RemoteObject.fromPayload = function(payload)
    10475{
     
    10879}
    10980
    110 /**
    111  * @param {WebInspector.RemoteObject} remoteObject
    112  * @return {string}
    113  */
    11481WebInspector.RemoteObject.type = function(remoteObject)
    11582{
     
    12592
    12693WebInspector.RemoteObject.prototype = {
    127     /** @return {RuntimeAgent.RemoteObjectId} */
    12894    get objectId()
    12995    {
     
    13197    },
    13298
    133     /** @return {string} */
    13499    get type()
    135100    {
     
    137102    },
    138103
    139     /** @return {string|undefined} */
    140104    get subtype()
    141105    {
     
    143107    },
    144108
    145     /** @return {string|undefined} */
    146109    get description()
    147110    {
     
    149112    },
    150113
    151     /** @return {boolean} */
    152114    get hasChildren()
    153115    {
     
    155117    },
    156118
    157     /**
    158      * @param {function(Array.<WebInspector.RemoteObjectProperty>)} callback
    159      */
    160119    getOwnProperties: function(callback)
    161120    {
     
    163122    },
    164123
    165     /**
    166      * @param {function(Array.<WebInspector.RemoteObjectProperty>)} callback
    167      */
    168124    getAllProperties: function(callback)
    169125    {
     
    171127    },
    172128
    173     /**
    174      * @param {boolean} ownProperties
    175      * @param {function(Array.<RuntimeAgent.RemoteObject>)} callback
    176      */
    177129    _getProperties: function(ownProperties, callback)
    178130    {
     
    182134        }
    183135
    184         /**
    185          * @param {?Protocol.Error} error
    186          * @param {Array.<WebInspector.RemoteObjectProperty>} properties
    187          */
    188136        function remoteObjectBinder(error, properties)
    189137        {
     
    208156    },
    209157
    210     /**
    211      * @param {string} name
    212      * @param {string} value
    213      * @param {function(string=)} callback
    214      */
    215158    setPropertyValue: function(name, value, callback)
    216159    {
     
    222165        RuntimeAgent.evaluate.invoke({expression:value, doNotPauseOnExceptionsAndMuteConsole:true}, evaluatedCallback.bind(this));
    223166
    224         /**
    225          * @param {?Protocol.Error} error
    226          * @param {RuntimeAgent.RemoteObject} result
    227          * @param {boolean=} wasThrown
    228          */
    229167        function evaluatedCallback(error, result, wasThrown)
    230168        {
     
    245183        }
    246184
    247         /**
    248          * @param {?Protocol.Error} error
    249          * @param {RuntimeAgent.RemoteObject} result
    250          * @param {boolean=} wasThrown
    251          */
    252185        function propertySetCallback(error, result, wasThrown)
    253186        {
     
    260193    },
    261194
    262     /**
    263      * @param {function(DOMAgent.NodeId)} callback
    264      */
    265195    pushNodeToFrontend: function(callback)
    266196    {
     
    271201    },
    272202
    273     /**
    274      * @param {string} functionDeclaration
    275      * @param {function(?WebInspector.RemoteObject)} callback
    276      */
    277203    callFunction: function(functionDeclaration, args, callback)
    278204    {
     
    285211    },
    286212
    287     /**
    288      * @param {string} functionDeclaration
    289      * @param {function(*)} callback
    290      */
    291213    callFunctionJSON: function(functionDeclaration, args, callback)
    292214    {
     
    304226    },
    305227
    306     /**
    307      * @return {number}
    308      */
    309228    arrayLength: function()
    310229    {
     
    319238}
    320239
    321 /**
    322  * @constructor
    323  * @param {string} name
    324  * @param {WebInspector.RemoteObject} value
    325  * @param {Object=} descriptor
    326  */
    327240WebInspector.RemoteObjectProperty = function(name, value, descriptor)
    328241{
     
    335248}
    336249
    337 /**
    338  * @param {string} name
    339  * @param {string} value
    340  * @return {WebInspector.RemoteObjectProperty}
    341  */
    342250WebInspector.RemoteObjectProperty.fromPrimitiveValue = function(name, value)
    343251{
     
    351259// or functions.
    352260
    353 /**
    354  * @constructor
    355  * @extends {WebInspector.RemoteObject}
    356  * @param {Object} value
    357  */
    358261WebInspector.LocalJSONObject = function(value)
    359262{
     
    362265
    363266WebInspector.LocalJSONObject.prototype = {
    364     /**
    365      * @return {string}
    366      */
    367267    get description()
    368268    {
     
    395295    },
    396296
    397     /**
    398      * @param {string} prefix
    399      * @param {string} suffix
    400      * @return {string}
    401      */
    402297    _concatenate: function(prefix, suffix, formatProperty)
    403298    {
     
    420315    },
    421316
    422     /**
    423      * @return {string}
    424      */
    425317    get type()
    426318    {
     
    428320    },
    429321
    430     /**
    431      * @return {string|undefined}
    432      */
    433322    get subtype()
    434323    {
     
    442331    },
    443332
    444     /**
    445      * @return {boolean}
    446      */
    447333    get hasChildren()
    448334    {
     
    450336    },
    451337
    452     /**
    453      * @param {function(Array.<WebInspector.RemoteObjectProperty>)} callback
    454      */
    455338    getOwnProperties: function(callback)
    456339    {
     
    458341    },
    459342
    460     /**
    461      * @param {function(Array.<WebInspector.RemoteObjectProperty>)} callback
    462      */
    463343    getAllProperties: function(callback)
    464344    {
     
    466346    },
    467347
    468     /**
    469      * @return {Array.<WebInspector.RemoteObjectProperty>}
    470      */
    471348    _children: function()
    472349    {
     
    483360    },
    484361
    485     /**
    486      * @return {boolean}
    487      */
    488362    isError: function()
    489363    {
  • trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameContentView.js

    r165487 r168919  
    109109    },
    110110
    111     /**
    112      * @param {number} status
    113      */
    114111    updateStatus: function(status)
    115112    {
     
    128125    },
    129126
    130     /**
    131      * @param {Object} applicationCache
    132      */
    133127    _updateCallback: function(applicationCache)
    134128    {
  • trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessage.js

    r165676 r168919  
    4444
    4545WebInspector.ConsoleMessage.prototype = {
    46     /**
    47      * @return {boolean}
    48      */
    4946    isErrorOrWarning: function()
    5047    {
     
    5754    },
    5855
    59     /**
    60      * @return {WebInspector.ConsoleMessage}
    61      */
    6256    clone: function()
    6357    {
     
    6660}
    6761
    68 /**
    69  * @param {string} source
    70  * @param {string} level
    71  * @param {string} message
    72  * @param {string=} type
    73  * @param {string=} url
    74  * @param {number=} line
    75  * @param {number=} repeatCount
    76  * @param {Array.<RuntimeAgent.RemoteObject>=} parameters
    77  * @param {ConsoleAgent.StackTrace=} stackTrace
    78  * @param {WebInspector.Resource=} request
    79  *
    80  * @return {WebInspector.ConsoleMessage}
    81  */
    8262WebInspector.ConsoleMessage.create = function(source, level, message, type, url, line, column, repeatCount, parameters, stackTrace, request)
    8363{
  • trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageImpl.js

    r165676 r168919  
    244244    },
    245245
    246     /**
    247      * @param {boolean=} forceObjectFormat
    248      */
    249246    _formatParameter: function(output, forceObjectFormat)
    250247    {
     
    662659    },
    663660
    664     /**
    665      * @return {WebInspector.ConsoleMessage}
    666      */
    667661    clone: function()
    668662    {
     
    694688    {
    695689        var isTrace = this._shouldDumpStackTrace();
    696        
     690
    697691        var clipboardString = "";
    698692        if (this._formattedMessage && !isTrace)
     
    721715            } else if (repeatString)
    722716                urlLine = " (" + repeatString + ")";
    723        
     717
    724718            if (urlLine) {
    725719                var lines = clipboardString.split("\n");
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenu.js

    r164543 r168919  
    3030 */
    3131
    32 /**
    33  * @constructor
    34  * @param {WebInspector.ContextSubMenuItem} topLevelMenu
    35  * @param {string} type
    36  * @param {string=} label
    37  * @param {boolean=} disabled
    38  * @param {boolean=} checked
    39  */
    4032WebInspector.ContextMenuItem = function(topLevelMenu, type, label, disabled, checked)
    4133{
     
    6052    },
    6153
    62     /**
    63      * @return {boolean}
    64      */
    6554    isEnabled: function()
    6655    {
     
    6857    },
    6958
    70     /**
    71      * @param {boolean} enabled
    72      */
    7359    setEnabled: function(enabled)
    7460    {
     
    8975}
    9076
    91 /**
    92  * @constructor
    93  * @extends {WebInspector.ContextMenuItem}
    94  * @param topLevelMenu
    95  * @param {string=} label
    96  * @param {boolean=} disabled
    97  */
    9877WebInspector.ContextSubMenuItem = function(topLevelMenu, label, disabled)
    9978{
     
    10382
    10483WebInspector.ContextSubMenuItem.prototype = {
    105     /**
    106      * @param {string} label
    107      * @param {function} handler
    108      * @param {boolean=} disabled
    109      * @return {WebInspector.ContextMenuItem}
    110      */
    11184    appendItem: function(label, handler, disabled)
    11285    {
     
    11790    },
    11891
    119     /**
    120      * @param {string} label
    121      * @param {boolean=} disabled
    122      * @return {WebInspector.ContextMenuItem}
    123      */
    12492    appendSubMenuItem: function(label, disabled)
    12593    {
     
    12997    },
    13098
    131     /**
    132      * @param {boolean=} disabled
    133      */
    13499    appendCheckboxItem: function(label, handler, checked, disabled)
    135100    {
     
    155120    },
    156121
    157     /**
    158      * @return {boolean}
    159      */
    160122    isEmpty: function()
    161123    {
     
    174136}
    175137
    176 /**
    177  * @constructor
    178  * @extends {WebInspector.ContextSubMenuItem}
    179  */
    180138WebInspector.ContextMenu = function(event) {
    181139    WebInspector.ContextSubMenuItem.call(this, this, "");
     
    246204    },
    247205
    248     /**
    249      * @param {Object} target
    250      */
    251206    appendApplicableItems: function(target)
    252207    {
     
    262217}
    263218
    264 /**
    265  * @interface
    266  */
    267219WebInspector.ContextMenu.Provider = function()
    268220{
     
    270222
    271223WebInspector.ContextMenu.Provider.prototype = {
    272     /**
    273      * @param {WebInspector.ContextMenu} contextMenu
    274      * @param {Object} target
    275      */
    276224    appendApplicableItems: function(event, contextMenu, target) { }
    277225}
    278226
    279 /**
    280  * @param {WebInspector.ContextMenu.Provider} provider
    281  */
    282227WebInspector.ContextMenu.registerProvider = function(provider)
    283228{
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js

    r165676 r168919  
    2929 */
    3030
    31 /**
    32  * @constructor
    33  * @extends {TreeElement}
    34  * @param {boolean=} elementCloseTag
    35  */
    3631WebInspector.DOMTreeElement = function(node, elementCloseTag)
    3732{
     
    187182    _createTooltipForNode: function()
    188183    {
    189         var node = /** @type {WebInspector.DOMNode} */ this.representedObject;
     184        var node = this.representedObject;
    190185        if (!node.nodeName() || node.nodeName().toLowerCase() !== "img")
    191186            return;
     
    278273    },
    279274
    280     /**
    281      * @param {boolean=} fullRefresh
    282      */
    283275    updateChildren: function(fullRefresh)
    284276    {
     
    288280    },
    289281
    290     /**
    291      * @param {boolean=} closingTag
    292      */
    293282    insertChildElement: function(child, index, closingTag)
    294283    {
     
    308297    },
    309298
    310     /**
    311      * @param {boolean=} fullRefresh
    312      */
    313299    _updateChildren: function(fullRefresh)
    314300    {
     
    983969    },
    984970
    985     /**
    986      * @param {boolean=} onlySearchQueryChanged
    987      */
    988971    updateTitle: function(onlySearchQueryChanged)
    989972    {
     
    1009992    },
    1010993
    1011     /**
    1012      * @param {WebInspector.DOMNode=} node
    1013      */
    1014994    _buildAttributeDOM: function(parentElement, name, value, node)
    1015995    {
     
    10531033    _buildTagDOM: function(parentElement, tagName, isClosingTag, isDistinctTreeElement)
    10541034    {
    1055         var node = /** @type WebInspector.DOMNode */ this.representedObject;
     1035        var node = this.representedObject;
    10561036        var classes = [ "html-tag" ];
    10571037        if (isClosingTag && isDistinctTreeElement)
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js

    r165676 r168919  
    2929 */
    3030
    31 /**
    32  * @constructor
    33  * @extends {TreeOutline}
    34  * @param {boolean=} omitRootDOMNode
    35  * @param {boolean=} selectEnabled
    36  */
    3731WebInspector.DOMTreeOutline = function(omitRootDOMNode, selectEnabled, showInElementsPanelEnabled)
    3832{
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeUpdater.js

    r165676 r168919  
    2929 */
    3030
    31 /**
    32  * @constructor
    33  */
    3431WebInspector.DOMTreeUpdater = function(treeOutline)
    3532{
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r167955 r168919  
    13091309WebInspector.DataGrid.prototype.__proto__ = WebInspector.Object.prototype;
    13101310
    1311 /**
    1312  * @constructor
    1313  * @extends {WebInspector.Object}
    1314  * @param {boolean=} hasChildren
    1315  */
    13161311WebInspector.DataGridNode = function(data, hasChildren)
    13171312{
     
    14811476        if (typeof(this._leftPadding) === "number")
    14821477            return this._leftPadding;
    1483        
     1478
    14841479        this._leftPadding = this.depth * this.dataGrid.indentWidth;
    14851480        return this._leftPadding;
     
    17021697    },
    17031698
    1704     /**
    1705      * @param {boolean=} supressSelectedEvent
    1706      */
    17071699    select: function(supressSelectedEvent)
    17081700    {
     
    17291721    },
    17301722
    1731     /**
    1732      * @param {boolean=} supressDeselectedEvent
    1733      */
    17341723    deselect: function(supressDeselectedEvent)
    17351724    {
  • trunk/Source/WebInspectorUI/UserInterface/Views/DatabaseContentView.js

    r164543 r168919  
    142142    },
    143143
    144     /**
    145      * @param {string} query
    146      * @param {WebInspector.View} view
    147      */
    148144    _appendViewQueryResult: function(query, view)
    149145    {
     
    157153    },
    158154
    159     /**
    160      * @param {string} query
    161      * @param {string} errorText
    162      */
    163155    _appendErrorQueryResult: function(query, errorText)
    164156    {
  • trunk/Source/WebInspectorUI/UserInterface/Views/EditingSupport.js

    r164543 r168919  
    7575}
    7676
    77 /**
    78  * @constructor
    79  * @param {function(Element,string,string,*,string)} commitHandler
    80  * @param {function(Element,*)} cancelHandler
    81  * @param {*=} context
    82  */
    8377WebInspector.EditingConfig = function(commitHandler, cancelHandler, context)
    8478{
     
    8680    this.cancelHandler = cancelHandler;
    8781    this.context = context;
    88 
    89     /**
    90      * Handles the "paste" event, return values are the same as those for customFinishHandler
    91      * @type {function(Element)|undefined}
    92      */
    9382    this.pasteHandler;
    94 
    95     /**
    96      * Whether the edited element is multiline
    97      * @type {boolean|undefined}
    98      */
    9983    this.multiline;
    100 
    101     /**
    102      * Custom finish handler for the editing session (invoked on keydown)
    103      * @type {function(Element,*)|undefined}
    104      */
    10584    this.customFinishHandler;
    106 
    107     /**
    108      * Whether or not spellcheck is enabled.
    109      * @type {boolean}
    110      */
    11185    this.spellcheck = false;
    11286}
     
    129103}
    130104
    131 /**
    132  * @param {Element} element
    133  * @param {WebInspector.EditingConfig=} config
    134  */
    135105WebInspector.startEditing = function(element, config)
    136106{
     
    169139    }
    170140
    171     /** @this {Element} */
    172141    function cleanUpAfterEditing()
    173142    {
     
    196165    }
    197166
    198     /** @this {Element} */
    199167    function editingCancelled()
    200168    {
     
    209177    }
    210178
    211     /** @this {Element} */
    212179    function editingCommitted()
    213180    {
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesSection.js

    r164543 r168919  
    8686        }
    8787        this.propertiesForTest = properties;
    88        
     88
    8989        this.dispatchEventToListeners(WebInspector.Section.Event.VisibleContentDidChange);
    9090    }
     
    138138}
    139139
    140 /**
    141  * @constructor
    142  * @extends {TreeElement}
    143  */
    144140WebInspector.ObjectPropertyTreeElement = function(property)
    145141{
  • trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js

    r164543 r168919  
    4242    this._element.style.backgroundImage = "-webkit-canvas(" + this._canvasId + ")";
    4343    this._element.addEventListener("transitionend", this, true);
    44    
     44
    4545    this._container = this._element.appendChild(document.createElement("div"));
    4646    this._container.className = "container";
     
    115115    },
    116116
    117     /**
    118      * @param {WebInspector.Rect} targetFrame
    119      * @param {WebInspector.RectEdge}[] preferredEdges
    120      */
    121117    present: function(targetFrame, preferredEdges)
    122118    {
     
    132128        this._update();
    133129    },
    134    
     130
    135131    dismiss: function()
    136132    {
     
    422418        finalContext.drawImage(scratchCanvas, 0, 0, scaledWidth, scaledHeight);
    423419    },
    424    
     420
    425421    _bestMetricsForEdge: function(preferredSize, targetFrame, containerFrame, edge)
    426422    {
     
    460456        } else {
    461457            if (x < containerFrame.minX())
    462                 x = containerFrame.minX(); 
     458                x = containerFrame.minX();
    463459            if (x + width > containerFrame.maxX())
    464460                x = containerFrame.maxX() - width;
     
    539535        ctx.closePath();
    540536    }
    541    
     537
    542538};
    543539
  • trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js

    r165676 r168919  
    2727 */
    2828
    29 /**
    30  * @constructor
    31  */
    3229function TreeOutline(listNode)
    3330{
     
    3633    this.element = listNode;
    3734
    38     /**
    39      * @type {Array.<TreeElement>}
    40      */
    4135    this.children = [];
    4236    this.selectedTreeElement = null;
     
    490484}
    491485
    492 /**
    493  * @param {boolean=} omitFocus
    494  */
    495486TreeOutline.prototype.revealAndSelect = function(omitFocus)
    496487{
     
    500491TreeOutline.prototype.__proto__ = WebInspector.Object.prototype;
    501492
    502 /**
    503  * @constructor
    504  * @param {Object=} representedObject
    505  * @param {boolean=} hasChildren
    506  */
    507493function TreeElement(title, representedObject, hasChildren)
    508494{
     
    938924}
    939925
    940 /**
    941  * @param {boolean=} omitFocus
    942  * @param {boolean=} selectedByUser
    943  */
    944926TreeElement.prototype.select = function(omitFocus, selectedByUser, suppressOnSelect, suppressOnDeselect)
    945927{
     
    979961}
    980962
    981 /**
    982  * @param {boolean=} omitFocus
    983  */
    984963TreeElement.prototype.revealAndSelect = function(omitFocus, selectedByUser, suppressOnSelect, suppressOnDeselect)
    985964{
     
    988967}
    989968
    990 /**
    991  * @param {boolean=} suppressOnDeselect
    992  */
    993969TreeElement.prototype.deselect = function(suppressOnDeselect)
    994970{
     
    1016992}
    1017993
    1018 /**
    1019  * @param {boolean} skipUnrevealed
    1020  * @param {(TreeOutline|TreeElement)=} stayWithin
    1021  * @param {boolean=} dontPopulate
    1022  * @param {Object=} info
    1023  * @return {TreeElement}
    1024  */
    1025994TreeElement.prototype.traverseNextTreeElement = function(skipUnrevealed, stayWithin, dontPopulate, info)
    1026995{
     
    10581027}
    10591028
    1060 /**
    1061  * @param {boolean} skipUnrevealed
    1062  * @param {boolean=} dontPopulate
    1063  * @return {TreeElement}
    1064  */
    10651029TreeElement.prototype.traversePreviousTreeElement = function(skipUnrevealed, dontPopulate)
    10661030{
     
    10861050TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)
    10871051{
    1088     // FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle. (http://webk.it/74446) 
     1052    // FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle. (http://webk.it/74446)
    10891053    var computedLeftPadding = window.getComputedStyle(this._listItemNode).getPropertyCSSValue("padding-left").getFloatValue(CSSPrimitiveValue.CSS_PX);
    10901054    var left = this._listItemNode.totalOffsetLeft + computedLeftPadding;
Note: See TracChangeset for help on using the changeset viewer.