Commit Graph
11 Commits
Author SHA1 Message Date
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 2e11b982f8 Bug 1266450 - part6: migrate EventDetails tooltip;r=bgrins
For now this is a 1 to 1 migration of the existing Tooltip
helper method from XUL to HTML.

MozReview-Commit-ID: 9YiJLgibV9h
2016-05-31 11:25:43 +02:00
Julian Descottes c94e194787 Bug 1266450 - part4: allow tooltips to have a variable height;r=bgrins
With this changeset the tooltip's effective height can be smaller than
the height specified when calling setContent. If the tooltip content is
dynamic, this allows to display a small tooltip frame if the content is
collapsed, and a bigger tooltip frame when it is expanded.

MozReview-Commit-ID: 44vA0Rdz62m
2016-06-03 12:52:59 +02:00
Julian Descottes 6605337e81 Bug 1266450 - part3: fix helper to check if click occurred in tooltip;r=bgrins
The existing helper checking if a click occurred inside or outside a
HTMLTooltip container was failing if the click occurred in an iframe.

MozReview-Commit-ID: 9AIACOukYUF
2016-06-03 12:50:39 +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 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 74a70da867 Bug 1277906 - part1: change HTMLTooltip default autofocus value to false;r=bgrins
Given the current usage of the HTMLTooltip, I think having the autofocus as
an opt-in behavior makes more sense.

MozReview-Commit-ID: CS98szSKQdF
2016-06-03 21:15:54 +02:00
Julian Descottes 9b74db5fce Bug 1266448 - part3: use HTML tooltip for markupview image previews;r=ochameau
MozReview-Commit-ID: E45sJPVAsxj
2016-05-15 14:45:51 +02:00
Julian Descottes 258d2da4bb Bug 1267401 - part3: Create arrow style for HTML tooltips;r=bgrins
MozReview-Commit-ID: Bp2RylafolP
2016-05-16 17:53:19 +02:00
Julian Descottes acf216e545 Bug 1267401 - part1: Rename HTMLTooltip properties for backward comp with Tooltip;r=bgrins
Rename document -> doc for consistency and parent to panel
for test compatibility.

MozReview-Commit-ID: KHT7plLtNQc
2016-05-23 22:49:21 +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