Commit Graph
51 Commits
Author SHA1 Message Date
Stanford Lockhart b19d006244 Bug 1332091 - Part 1: Add colour value editors for Hex, RGBA, HSLA, and a selection box to go between them. r=gl 2017-02-09 01:35:52 -05:00
Gabriel Luong e8afc2857c Bug 1332049 - Add a new working copy of the Spectrum widget for the color picker refresh. r=pbro 2017-01-19 11:59:18 -05:00
Carsten "Tomcat" Book 71e4d16ebf Backed out changeset b3338b6713e0 (bug 1332049) for bustage on a CLOSED TREE 2017-01-19 15:41:21 +01:00
Gabriel Luong 0146d751a2 Bug 1332049 - Add a new working copy of the Spectrum widget for the color picker refresh. r=pbro 2017-01-19 09:01:04 -05:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Julian Descottes 8929ff829c Bug 1326875 - fix font color for broken image tooltip in dark theme;r=gl
MozReview-Commit-ID: 6oYTXTDzn3G
2017-01-11 13:16:22 +01:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Alexandre Poirot 9e7856d7a9 Bug 1323466 - Lazy load optional deps from toolbox.js. r=jryans
MozReview-Commit-ID: 1E8fm9dfCwj
2016-12-14 08:33:54 -08:00
Michael Ratcliffe 3c278ae0d4 Bug 1322873 - Bug 1322873 - Add React event bubbles to the Markup View r=miker
MozReview-Commit-ID: 5uGOROUTrn2
2016-12-24 21:41:15 +00:00
Wes Kocher b7f42ce9c4 Backed out changeset ff9a07a874fd (bug 1322873) for failing the tests it added a=backout 2016-12-23 16:00:18 -08:00
Michael Ratcliffe 26e575bbdc Bug 1322873 - Bug 1322873 - Add React event bubbles to the Markup View r=tromey
DevRel have made it clear that one of the number one complaints they hear is that we are not supporting React in our tools.

So how about we have our event bubbles include React events and allow people to go to the event listener source in the debugger?

I don't believe that any other tool does this so it is totally worth doing... and in time for Christmas as well ;)

Works just fine in development and production versions of React.

It also works in the browser toolbox so it can be used to debug events in our own tools e.g. The Debugger.

The files under devtools/client/inspector/markup/test/ are either test or React library files so they only really need a cursory glance.

This means that you should focus on the following files when reviewing:
 - devtools/client/locales/en-US/inspector.properties
 - devtools/client/shared/widgets/tooltip/EventTooltipHelper.js
 - devtools/server/actors/inspector.js
 - devtools/server/event-parsers.js

Now allowed the use of JSX in mochitests and fixed all eslint errors.

MozReview-Commit-ID: AtxhainieQe
2016-12-19 11:23:49 +00:00
JerryShih 28fdaf5354 Bug 1310681 - pass css-color-4 color function supporting info to devtool css OutputParser and SwatchColorPickerTooltip. r=tromey
Pass css-color-4 supporting status from css-property db to OutputParser and SwatchColorPickerTooltip.

MozReview-Commit-ID: N1ffWOlf9f
2016-10-21 14:59:07 -04:00
Gabriel Luong a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Carsten "Tomcat" Book b2e94c45fc Merge mozilla-central to mozilla-inbound 2016-11-29 16:49:35 +01:00
Michael Ratcliffe 8929f73c5a Bug 1315639 - Event listener popup needs rewriting r=gerv,pbro
Changes:
  - Removed 5 lines from toolkit/content/license.html as requested by gerv.

MozReview-Commit-ID: COFNoCDVyp6
2016-11-04 17:16:50 +00:00
djmdev dbf6ace6ce Bug 1316613 - Disables eyedropper icon if the eyedropper highlighter is unavailable.r=jdescottes
MozReview-Commit-ID: 3HhqqGqnoHo
2016-11-24 03:08:28 +05:30
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
djmdev 410b22be08 Bug 1310938 - disabled eyedropper in toolbar for non-HTML documents and added a tooltip;r=jdescottes 2016-10-22 18:04:49 +05:30
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
djmdev f40c4392b4 Bug 1305365 - disabled eyedropper for non-HTML documents and added a tooltip;r=jdescottes
MozReview-Commit-ID: DMexSsQfjQf
2016-10-13 10:32:55 +05:30
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 e66ff7d99a Bug 1307481 - Part 2: Remove OptionsStore to use ES6 default parameters and PanelFactory in Tooltip.js r=jdescottes 2016-10-08 09:49:04 -04:00
Wes Kocher 591a7b2fd1 Backed out 2 changesets (bug 1307481) for mass dt bustage a=backout
Backed out changeset 91c6a72e5d0d (bug 1307481)
Backed out changeset a9f9f5611272 (bug 1307481)
2016-10-07 11:54:38 -07:00
Gabriel Luong 52c4111f6c Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-07 13:33:52 -04:00
Gabriel Luong 6994092cf9 Bug 1307481 - Part 2: Remove OptionsStore to use ES6 default parameters and PanelFactory in Tooltip.js r=jdescottes 2016-10-07 13:22:47 -04:00
Julian Descottes fcebc6dd81 Bug 1302890 - remove alert tooltip feature relying on unavailable image;r=gl
MozReview-Commit-ID: 5ytisLjOcwO
2016-10-04 11:45:16 +02: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
Gabriel Luong 5715007275 Bug 1307193 - Move swatch based tooltip editors into their individual file from Tooltip.js r=jdescottes 2016-10-04 10:22:47 -04:00
Alexandre Poirot 5a92c204eb Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM
2016-08-25 05:50:44 -07:00
Julian Descottes e4e930753a Bug 1295608 - Migrate devtools/client/shared to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: 2OdCYtae3ad
2016-08-25 17:21:00 +02:00
Sebastian Hengst 183398778b Backed out changeset 51bd96b9f93d (bug 1295608) 2016-08-25 14:20:06 +02:00
Julian Descottes 13d70d5fd7 Bug 1295608 - Migrate devtools/client/shared to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: 3yCxJ9bQBF5
2016-08-23 11:19:59 +02:00
Tom Tromey 0940713d29 Bug 1278625 - remove some lazy loading from devtools; r=jlongster
MozReview-Commit-ID: HwV7DFVJhAF
2016-08-05 08:46:37 -06:00
Tom Tromey 65c721e7f2 Bug 1278625 - move XPCOMUtils use out of Tooltip.js; r=jdescottes
MozReview-Commit-ID: 77xkkxl4mqN
2016-08-05 11:15:38 -06:00
Julian Descottes e66cfbdd5e Bug 1288752 - mdndocs tooltip: consistent behavior on Visit MDN Page link click;r=bgrins
MozReview-Commit-ID: Kg0yYwi4nwV
2016-07-25 16:50:55 +02:00
Eric Rahm f88c2ff35a Bug 1179048 - Use mouseout instead of mouseleave in devtools. r=fitzgen
Using mouseleave in chrome code generates a warning in docshell about
performance which notes mouseout should be used instead. This patch replaces
usage of mouseleave with mouseout across the devtools codebase.
2015-07-20 12:13:00 -07:00
Tom Tromey 1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Julian Descottes bc8ef4cae5 Bug 1284259 - store eventEditors map on EventTooltip instance to fix destroy failures;r=ochameau
MozReview-Commit-ID: XbahMTzqUA
2016-07-13 15:52:07 +02:00
Julian Descottes 60357c35c6 Bug 1283454 - migrate MDN docs tooltip to use HTML;r=ochameau
MozReview-Commit-ID: 50DceNmgGAQ
2016-07-05 14:39:52 +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 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 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
Jarda Snajdr c7c65ad61e Bug 1270111 - Part 1: TooltipToggle doesn't hide the tooltip when mouse is over, shows and hides after a short delay. r=jdescottes 2016-05-27 05:09:00 +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
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
Julian Descottes 468c098d3f Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr
Previously, the targetNodeCb used in TooltipToggle had an inconsistent API. If
returning synchronously, "false" would prevent the tooltip from appearing.
However, if using a promise, resolving "false" would still show the tooltip.
It was needed to reject the promise in this case to prevent the tooltip from
being displayed.

This commit makes TooltipToggle always expect a consistent return value from
this callback, whether it is synchronous, or using promises.
- true -> show the tooltip on the event target
- DOM node -> show the tooltip on the provided node
- false (or falsy value) -> do not show the tooltip

MozReview-Commit-ID: 7PIPwBJxjWO
2016-05-05 20:25:08 +02:00