Commit Graph
18 Commits
Author SHA1 Message Date
Micah Tigley 1e019458d6 Bug 1357774 - Part 2: Add the ability to update orientation state of a simulated device in RDM r=gl
This patch gives the RDM UI the ability to update the screen orientation based on the orientation of the simulated device screen. It fixes the following issues:

  - Initializing the orientation state of the selected device when RDM is opened.
  - Updating orientation state when the rotate button in the RDM toolbar is pressed.
  - Updating the orientation state when a new device is selected.

There are three actions creators that are responsible for notifying the ResponsiveUI manager, `changeDevice`, `restoreDeviceState`, and `rotateViewport`. In particular:



  - `restoreDeviceState` is dispatched when the Responsive UI has finished initializing. If a previous RDM session had a device selected, then this action creator will also dispatch the `changeDevice` action to update the RDM UI to reflect the currently selected device.
  - `changeDevice` is dispatched when a device is selected.
  - `rotateViewport` is dispatched when the rotate button is clicked in the RDM toolbar.

When either of these actions is dispatched, we post a "viewport-orientation-change" message to the window that notifies the manager to update the screen orientation accordingly.

Finally, when RDM is closed, we need to ensure the original physical screen orientation is restored. We do this by calling the `setRDMPaneOrientation` on the docShell's document in the content frame script.

Differential Revision: https://phabricator.services.mozilla.com/D30440
2019-05-22 20:07:13 +00:00
Brad Werth 395a07bd93 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

Differential Revision: https://phabricator.services.mozilla.com/D22437
2019-03-18 15:00:57 +00:00
Brad Werth d3ca3a33fb Bug 1501665 Part 2: Set the inRDMPane property on Documents as they enter/leave RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D19237
2019-03-18 14:56:09 +00:00
shindli 281680d4f1 Backed out 13 changesets (bug 1501665) for failing a11y tests in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset 2fa518cb0dfc (bug 1501665)
Backed out changeset afaf26d7df42 (bug 1501665)
Backed out changeset 5bdf0ad9dc66 (bug 1501665)
Backed out changeset 520dd24a73fc (bug 1501665)
Backed out changeset 3542bf2b89dd (bug 1501665)
Backed out changeset 088dc24eabc7 (bug 1501665)
Backed out changeset 178210eb72ba (bug 1501665)
Backed out changeset 9eebe767ef20 (bug 1501665)
Backed out changeset 6a84e97d0e62 (bug 1501665)
Backed out changeset cf42ea4e8443 (bug 1501665)
Backed out changeset 731d7ee06d86 (bug 1501665)
Backed out changeset 8e0afe4a041a (bug 1501665)
Backed out changeset be1026de486b (bug 1501665)
2019-03-18 18:08:58 +02:00
Brad Werth c019a916f2 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

Differential Revision: https://phabricator.services.mozilla.com/D22437
2019-03-18 15:00:57 +00:00
Brad Werth 0e530bc41f Bug 1501665 Part 2: Set the inRDMPane property on Documents as they enter/leave RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D19237
2019-03-18 14:56:09 +00:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Kris Maglione 582a21b473 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt
2018-04-23 12:58:34 -07:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Florian Quèze f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
J. Ryan Stinnett 2c7f079345 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 29ad3830d7 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt
2017-09-26 18:24:32 -05:00
Sebastian Hengst 88453318f1 Backed out changeset 5a0227d048e8 (bug 1305777) for failing devtools' devtools/client/styleeditor/test/browser_styleeditor_media_sidebar_links.js on Windows 7 debug without e10s. r=backout 2017-09-29 10:45:04 +02:00
Sebastian Hengst bd2513957f Backed out changeset ffb4e22a4347 (bug 1305777) 2017-09-29 10:43:19 +02:00
J. Ryan Stinnett 82d5b3cfd6 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 22e62556a6 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt
2017-09-26 18:24:32 -05:00