OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 this.element.style.width = newElementPosition.width + borderWidth * 2 +
"px"; | 225 this.element.style.width = newElementPosition.width + borderWidth * 2 +
"px"; |
226 this.element.style.height = newElementPosition.height + borderWidth * 2
+ "px"; | 226 this.element.style.height = newElementPosition.height + borderWidth * 2
+ "px"; |
227 }, | 227 }, |
228 | 228 |
229 __proto__: WebInspector.View.prototype | 229 __proto__: WebInspector.View.prototype |
230 } | 230 } |
231 | 231 |
232 /** | 232 /** |
233 * @constructor | 233 * @constructor |
234 * @param {!Element} panelElement | 234 * @param {!Element} panelElement |
235 * @param {function(!Element, !Event):(!Element|!AnchorBox)|undefined} getAnchor | 235 * @param {function(!Element, !Event):(!Element|!AnchorBox|undefined)} getAnchor |
236 * @param {function(!Element, !WebInspector.Popover):undefined} showPopover | 236 * @param {function(!Element, !WebInspector.Popover):undefined} showPopover |
237 * @param {function()=} onHide | 237 * @param {function()=} onHide |
238 * @param {boolean=} disableOnClick | 238 * @param {boolean=} disableOnClick |
239 */ | 239 */ |
240 WebInspector.PopoverHelper = function(panelElement, getAnchor, showPopover, onHi
de, disableOnClick) | 240 WebInspector.PopoverHelper = function(panelElement, getAnchor, showPopover, onHi
de, disableOnClick) |
241 { | 241 { |
242 this._panelElement = panelElement; | 242 this._panelElement = panelElement; |
243 this._getAnchor = getAnchor; | 243 this._getAnchor = getAnchor; |
244 this._showPopover = showPopover; | 244 this._showPopover = showPopover; |
245 this._onHide = onHide; | 245 this._onHide = onHide; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 this._resetHoverTimer(); | 389 this._resetHoverTimer(); |
390 } | 390 } |
391 } | 391 } |
392 } | 392 } |
393 | 393 |
394 /** @enum {string} */ | 394 /** @enum {string} */ |
395 WebInspector.Popover.Orientation = { | 395 WebInspector.Popover.Orientation = { |
396 Top: "top", | 396 Top: "top", |
397 Bottom: "bottom" | 397 Bottom: "bottom" |
398 } | 398 } |
OLD | NEW |