Commit Graph
15 Commits
Author SHA1 Message Date
Yoshi Huang ef9aa70ea9 Bug 1377523 - Part 4: fix devtools/client/shared/test. r=pbro
Move data: URIs in devtools/client/shared/test to seperate files.
2017-07-13 12:27:52 +08:00
Julian Descottes ec679ca2de Bug 1310957 - listen to XUL Panel wrapper hidden event to hide HTML tooltip;r=gl
MozReview-Commit-ID: 7iyc2QY0KbP
2016-10-19 00:08:00 +02:00
Julian Descottes 485b4f13e9 Bug 1301342 - add noautohide=true on XUL panel wrapper for HTMLTooltip;r=gl
MozReview-Commit-ID: AL4dc0Lp4GG
2016-10-11 16:50:35 +02:00
Gabriel Luong 4943d23a3b Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-08 09:49:07 -04:00
Gabriel Luong 876454c8a9 Bug 1307481 - Part 1: Move Tooltip.js and HTMLTooltip.js into widgets/tooltip/ r=jdescottes 2016-10-04 22:48:49 -04:00
Julian Descottes f1c3ec9cff Bug 1267403 - HTMLTooltip tests: destroy tooltips at the end of tests;r=ochameau
MozReview-Commit-ID: 2jMKxlsWId2
2016-07-04 16:02:37 +02:00
Julian Descottes 34cb206f63 Bug 1267403 - HTMLTooltip: add useXulWrapper option when displayed in a XUL document;r=ochameau
The HTMLTooltip supports an additional configuration parameter "useXulWrapper".
When set to true, if the tooltip is displayed in a XUL document, a XUL panel
will be used as an additional container for the tooltip.

This allows the tooltip to be displayed anywhere on the screen and can be
useful when displayed in small toolboxes.

MozReview-Commit-ID: 63kv4vAeW5R
2016-07-06 14:50:44 +02:00
Julian Descottes df9144d00a Bug 1266456 - part2: HTMLTooltip setContent() use object as 2nd arg;r=jsnajdr
setContent expects 3 arguments: content, width, height. Height is already optional
but for the autocomplete migration, the width will also become optional.

Using an object argument for width and height makes this easier.

MozReview-Commit-ID: 9CiMG0BdLOR
2016-06-23 17:27:32 +02:00
Julian Descottes 92e734731d Bug 1266456 - part1: HTMLTooltip cleanup test & jsdoc for synchronous setContent;r=jsnajdr
MozReview-Commit-ID: Ia3aRmwFawP
2016-06-22 15:18:21 +02:00
Julian Descottes f5dc74d78e Bug 1266450 - part7: fix html tooltip autofocus behavior;r=bgrins
For autofocus tooltips, we need to find a focusable item in order
to call focus() now that the tooltip content lives in the same
document as the toolbox. Updated the corresponding test and made
some superficial changes to HTMLTooltip.js.

MozReview-Commit-ID: L61eIxgFm3d
2016-06-08 13:32:15 +02:00
Julian Descottes ce41dce5f4 Bug 1266450 - part2: remove iframe container for HTML tooltip;r=bgrins
In order to have tooltips with a variable height, the tooltip container
should be allowed to resize itself on the fly, which cannot be achieved
with an iframe.

This changeset makes the HTMLTooltip rely on a HTML container inserted
in the XUL document directly. This allows to go back to a synchronous
API which also simplifies the implementation.

MozReview-Commit-ID: EDcsnVSKmeU
2016-05-30 23:02:58 +02:00
Julian Descottes de9f21ec87 Bug 1266450 - part1: move devtools tooltip styles to dedicated file;r=bgrins
Tooltip styles are scattered between common.css and panel-specific CSS
files (e.g. inspector.css). For the HTML tooltip, the panel specific CSS
files will not be applied since the tooltip container is appended to the
devtools top window.

This changeset creates a new tooltips.css file which is loaded by default
with devtools themes.

MozReview-Commit-ID: BnoRi9gLfD5
2016-06-03 14:36:56 +02:00
Julian Descottes 7046ee2670 Bug 1277906 - part2: focus previous active element when hiding HTML Tooltip;r=bgrins
MozReview-Commit-ID: GuiwOlZyyik
2016-06-04 00:40:37 +02:00
Julian Descottes 4113eeebb8 Bug 1267401 - part2: include common.css in html tooltip tests;r=bgrins
MozReview-Commit-ID: KyYfOhAv6uo
2016-05-12 12:13:38 +02:00
Julian Descottes d162f12420 Bug 1259834 - Create basic HTML tooltip API;r=bgrins
First implementation of HTML based tooltip to be used in devtools
instead of XUL panels. API is similar to the current API of
Tooltip.js

MozReview-Commit-ID: 8njiKBubLSj
2016-05-04 14:44:57 +02:00