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

Side by Side Diff: Source/devtools/front_end/resources/IndexedDBViews.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: Rebased patch 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 this._pageForwardButton = editorToolbar.createChild("button", "forward-b utton"); 218 this._pageForwardButton = editorToolbar.createChild("button", "forward-b utton");
219 this._pageForwardButton.classList.add("status-bar-item"); 219 this._pageForwardButton.classList.add("status-bar-item");
220 this._pageForwardButton.title = WebInspector.UIString("Show next page.") ; 220 this._pageForwardButton.title = WebInspector.UIString("Show next page.") ;
221 this._pageForwardButton.disabled = true; 221 this._pageForwardButton.disabled = true;
222 this._pageForwardButton.appendChild(document.createElement("img")); 222 this._pageForwardButton.appendChild(document.createElement("img"));
223 this._pageForwardButton.addEventListener("click", this._pageForwardButto nClicked.bind(this), false); 223 this._pageForwardButton.addEventListener("click", this._pageForwardButto nClicked.bind(this), false);
224 editorToolbar.appendChild(this._pageForwardButton); 224 editorToolbar.appendChild(this._pageForwardButton);
225 225
226 this._keyInputElement = editorToolbar.createChild("input", "key-input"); 226 this._keyInputElement = editorToolbar.createChild("input", "key-input");
227 this._keyInputElement.placeholder = WebInspector.UIString("Start from ke y"); 227 this._keyInputElement.placeholder = WebInspector.UIString("Start from ke y");
228 this._keyInputElement.addEventListener("paste", this._keyInputChanged.bi nd(this)); 228 this._keyInputElement.addEventListener("paste", this._keyInputChanged.bi nd(this), false);
229 this._keyInputElement.addEventListener("cut", this._keyInputChanged.bind (this)); 229 this._keyInputElement.addEventListener("cut", this._keyInputChanged.bind (this), false);
230 this._keyInputElement.addEventListener("keypress", this._keyInputChanged .bind(this)); 230 this._keyInputElement.addEventListener("keypress", this._keyInputChanged .bind(this), false);
231 this._keyInputElement.addEventListener("keydown", this._keyInputChanged. bind(this)); 231 this._keyInputElement.addEventListener("keydown", this._keyInputChanged. bind(this), false);
232 232
233 return editorToolbar; 233 return editorToolbar;
234 }, 234 },
235 235
236 _pageBackButtonClicked: function() 236 _pageBackButtonClicked: function()
237 { 237 {
238 this._skipCount = Math.max(0, this._skipCount - this._pageSize); 238 this._skipCount = Math.max(0, this._skipCount - this._pageSize);
239 this._updateData(false); 239 this._updateData(false);
240 }, 240 },
241 241
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 break; 421 break;
422 default: 422 default:
423 contents.classList.add("primitive-value"); 423 contents.classList.add("primitive-value");
424 contents.appendChild(document.createTextNode(value.description)); 424 contents.appendChild(document.createTextNode(value.description));
425 } 425 }
426 }, 426 },
427 427
428 __proto__: WebInspector.DataGridNode.prototype 428 __proto__: WebInspector.DataGridNode.prototype
429 } 429 }
430 430
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698