Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes d367c125c7 Bug 1267403 - HTMLTooltip tests: destroy tooltips at the end of tests;r=ochameau
MozReview-Commit-ID: 2jMKxlsWId2

--HG--
extra : source : 806822ced9a2a28b81a66180e25d2d204227a08b
extra : histedit_source : fc3122c6d332db121bedf494553bc9d6797babfc
2016-07-04 16:02:37 +02:00
Julian Descottes 3aa417586a 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

--HG--
extra : source : fc4d902ff01ee92a5b6742d44286e5feaaba1500
extra : intermediate-source : 126f43ff3be5505920946a77ad82401c6bbaebef
extra : histedit_source : 863888c014723f7e95742079395497ba1a30aa36%2C13ba9aaf80acb96c587739c767c20a8f0f6a9a5a
2016-07-06 14:50:44 +02:00
Julian Descottes 35b0ed34db Bug 1266456 - part6: HTMLTooltip show() now accepts x,y offsets;r=bgrins
The autocomplete popup is displayed relatively to an anchor, but will be
shifted on the x-axis in order to be aligned with the word being completed.

To support this, the HTMLTooltip show() method now accepts x and y offsets.

MozReview-Commit-ID: 1cR3XFPdcVy

--HG--
extra : rebase_source : 0aa84be9afe977c52bffad2eb37eb35813d8a17a
2016-06-20 21:07:08 +02:00
Julian Descottes 718a901bda 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

--HG--
extra : rebase_source : 4ec54714ccc2476fa4b341aaad3773ba095cca5a
2016-06-23 17:27:32 +02:00
Julian Descottes 4ce7004bfb Bug 1266456 - part1: HTMLTooltip cleanup test & jsdoc for synchronous setContent;r=jsnajdr
MozReview-Commit-ID: Ia3aRmwFawP

--HG--
extra : rebase_source : 6a569ffd14264ff8c680e5fc8f8cf6eae4ff5877
2016-06-22 15:18:21 +02:00
Julian Descottes 973205986c 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

--HG--
extra : rebase_source : 3fee4731f65563c4b61371e3a3c51fb797d1a12b
extra : source : bd8878532e1f370fb49e0c50de0b2da267f7de8a
2016-06-03 14:36:56 +02:00
Julian Descottes b873e263bd 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

--HG--
extra : rebase_source : 930bf7aef48e6c16d7a560d261e2bfd06fe02a63
extra : source : 09874a1e6f2c942a1f9de827fedd14da7e67a6e5
2016-05-04 14:44:57 +02:00