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

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

Issue 2281703002: DevTools: Create TextEditor Interface around CodeMirrorTextEditor (Closed)
Patch Set: Remove accidental devtools.gypi Created 4 years, 3 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 this._element = this._container.createChild("div", "suggest-box"); 65 this._element = this._container.createChild("div", "suggest-box");
66 this._element.addEventListener("mousedown", this._onBoxMouseDown.bind(this), true); 66 this._element.addEventListener("mousedown", this._onBoxMouseDown.bind(this), true);
67 this._detailsPopup = this._container.createChild("div", "suggest-box details -popup monospace"); 67 this._detailsPopup = this._container.createChild("div", "suggest-box details -popup monospace");
68 this._detailsPopup.classList.add("hidden"); 68 this._detailsPopup.classList.add("hidden");
69 this._asyncDetailsCallback = null; 69 this._asyncDetailsCallback = null;
70 /** @type {!Map<number, !Promise<{detail: string, description: string}>>} */ 70 /** @type {!Map<number, !Promise<{detail: string, description: string}>>} */
71 this._asyncDetailsPromises = new Map(); 71 this._asyncDetailsPromises = new Map();
72 } 72 }
73 73
74 /** 74 /**
75 * @typedef Array.<{title: string, className: (string|undefined)}> 75 * @typedef {!Array.<{title: string, className: (string|undefined)}>}
76 */ 76 */
77 WebInspector.SuggestBox.Suggestions; 77 WebInspector.SuggestBox.Suggestions;
78 78
79 WebInspector.SuggestBox.prototype = { 79 WebInspector.SuggestBox.prototype = {
80 /** 80 /**
81 * @return {boolean} 81 * @return {boolean}
82 */ 82 */
83 visible: function() 83 visible: function()
84 { 84 {
85 return !!this._container.parentElement; 85 return !!this._container.parentElement;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 this.element.style.top = containerBox.y + "px"; 528 this.element.style.top = containerBox.y + "px";
529 this.element.style.height = containerBox.height + "px"; 529 this.element.style.height = containerBox.height + "px";
530 this.element.style.width = containerBox.width + "px"; 530 this.element.style.width = containerBox.width + "px";
531 }, 531 },
532 532
533 dispose: function() 533 dispose: function()
534 { 534 {
535 this.element.remove(); 535 this.element.remove();
536 } 536 }
537 } 537 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698