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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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
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 * * 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 19 matching lines...) Expand all
30 /** 30 /**
31 * @interface 31 * @interface
32 */ 32 */
33 UI.SuggestBoxDelegate = function() {}; 33 UI.SuggestBoxDelegate = function() {};
34 34
35 UI.SuggestBoxDelegate.prototype = { 35 UI.SuggestBoxDelegate.prototype = {
36 /** 36 /**
37 * @param {string} suggestion 37 * @param {string} suggestion
38 * @param {boolean=} isIntermediateSuggestion 38 * @param {boolean=} isIntermediateSuggestion
39 */ 39 */
40 applySuggestion: function(suggestion, isIntermediateSuggestion) {}, 40 applySuggestion(suggestion, isIntermediateSuggestion) {},
41 41
42 /** 42 /**
43 * acceptSuggestion will be always called after call to applySuggestion with i sIntermediateSuggestion being equal to false. 43 * acceptSuggestion will be always called after call to applySuggestion with i sIntermediateSuggestion being equal to false.
44 */ 44 */
45 acceptSuggestion: function() {}, 45 acceptSuggestion() {},
46 }; 46 };
47 47
48 /** 48 /**
49 * @implements {UI.StaticViewportControl.Provider} 49 * @implements {UI.StaticViewportControl.Provider}
50 * @unrestricted 50 * @unrestricted
51 */ 51 */
52 UI.SuggestBox = class { 52 UI.SuggestBox = class {
53 /** 53 /**
54 * @param {!UI.SuggestBoxDelegate} suggestBoxDelegate 54 * @param {!UI.SuggestBoxDelegate} suggestBoxDelegate
55 * @param {number=} maxItemsHeight 55 * @param {number=} maxItemsHeight
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 this.element.style.left = containerBox.x + 'px'; 590 this.element.style.left = containerBox.x + 'px';
591 this.element.style.top = containerBox.y + 'px'; 591 this.element.style.top = containerBox.y + 'px';
592 this.element.style.height = containerBox.height + 'px'; 592 this.element.style.height = containerBox.height + 'px';
593 this.element.style.width = containerBox.width + 'px'; 593 this.element.style.width = containerBox.width + 'px';
594 } 594 }
595 595
596 dispose() { 596 dispose() {
597 this.element.remove(); 597 this.element.remove();
598 } 598 }
599 }; 599 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698