Commit Graph
162 Commits
Author SHA1 Message Date
Yash Johar 6e0dbe763b Bug 1535254 - Update RDM rotate and touch icons to a Photon style. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D32790
2019-07-06 14:37:17 +00:00
Micah Tigley 650c084d72 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-08 21:35:42 +00:00
Bogdan Tara cae644d5ae Backed out changeset f4ea30c29aa7 (bug 1556533) for browser_orientationchange_event.js failures CLOSED TREE 2019-06-07 04:54:14 +03:00
Micah Tigley fe18dc1d5c Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-07 00:00:55 +00:00
Bogdan Tara bf5e2495a2 Backed out changeset 91643c6f9a42 (bug 1556533) for es lint failure CLOSED TREE 2019-06-07 00:22:18 +03:00
Micah Tigley e4d1e3eb06 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-06 19:18:16 +00:00
Micah Tigley 5caa6d2cdb Bug 1554695 - RDM reports incorrect angle when rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33546
2019-06-03 20:24:02 +00:00
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
Julian Descottes e8d4d11e92 Bug 1543940 - Remove useTopLevelWindow option from DevTools menu/utils.js helper r=ochameau
Depends on D27696

Differential Revision: https://phabricator.services.mozilla.com/D29887
2019-05-08 21:37:01 +00:00
Andreea Pavel 368a7a0194 Backed out 5 changesets (bug 1543940) for failing browser_menu_api.js on a CLOSED TREE
Backed out changeset aaa0f827616a (bug 1543940)
Backed out changeset 590b72185b69 (bug 1543940)
Backed out changeset 42e2136f684f (bug 1543940)
Backed out changeset a66967f17042 (bug 1543940)
Backed out changeset b1e6e932873c (bug 1543940)
2019-05-08 20:49:43 +03:00
Julian Descottes 4a06195b9e Bug 1543940 - Remove useTopLevelWindow option from DevTools menu/utils.js helper r=ochameau
Depends on D27696

Differential Revision: https://phabricator.services.mozilla.com/D29887
2019-05-08 15:15:22 +00:00
Micah Tigley b1b03ca9a6 Bug 1536808 - Add ability to edit devices r=gl
Differential Revision: https://phabricator.services.mozilla.com/D22180
2019-04-10 17:37:33 +00:00
Micah Tigley 6785a1d6cb Bug 1542367 - Remove the 'Done' button at the bottom of the device modal. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D26637
2019-04-09 20:16:07 +00:00
Brad Werth 78c8d90516 Bug 1343014 Part 1: Make RDM viewport dimension inputs have input type "number". r=gl
This also changes the styling to prevent "spinners" from appearing.

Differential Revision: https://phabricator.services.mozilla.com/D24054
2019-03-20 20:44:34 +00:00
Micah Tigley 2e4e139211 Bug 1487857 - Part I: Rearranging devices setting view to new design. r=gl,flod
This is part 1 of implementing the redesigned device settings panel. In this patch we are rearranging the existing device settings view to match the new design.

Differential Revision: https://phabricator.services.mozilla.com/D15734
2019-03-19 18:59:24 +00:00
Andreea Pavel 4ee132b5ed Backed out changeset 8d9b4e8dce57 (bug 1343014) for failing dt at rowser_device_width.js on a CLOSED TREE 2019-03-20 00:16:05 +02:00
Brad Werth 95c1bcaabc Bug 1343014 Part 1: Make RDM viewport dimension inputs have input type "number". r=gl
This also changes the styling to prevent "spinners" from appearing.

Differential Revision: https://phabricator.services.mozilla.com/D24054
2019-03-19 20:11:24 +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
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
Daisuke Akatsuka f8c340d93d Bug 1488991: Update remote browser position before showing context menu. r=pbro,smaug
The position of remote browser was not updated by resizing the window and
changing the align of viewport etc, although will be updated when the window
moves, the frame reflows and so on.
Thus, in this patch, update the position of remote browser before showing
context menu so as to locates at proper position.
I investigated though, when reflow and moving happens, the position is updated
by TabParent::UpdateDimensions()[1]. This patch as well is taking an approach
which update the position explicitly by TabParent::UpdateDimensions() before
showing context menu.

[1] https://searchfox.org/mozilla-central/source/dom/ipc/TabParent.cpp#729

Differential Revision: https://phabricator.services.mozilla.com/D23470
2019-03-15 00:09:20 +00:00
Patrick Brosset 5ad73112dd Bug 1493745 - Make the RDM toolbar responsive; r=gl
Differential Revision: https://phabricator.services.mozilla.com/D20827
2019-03-04 16:26:18 +00:00
Mike Conley ca98bc55b2 Bug 1525188 - Tunnel the remoteType properly from the outer to inner browser in RDM, and remember to clean up. r=ochameau
Depends on D19220

Differential Revision: https://phabricator.services.mozilla.com/D19223
2019-02-11 15:40:37 +00:00
Gabriel Luong a62398d0bf Bug 1493745 - Support RDM toolbar on small viewports. r=pbro 2018-11-21 14:01:23 -05:00
Ariel Burone 6bc6fcfe11 Bug 1500787 - Fix RDM input colors across platforms; r=fvsch,gl
Differential Revision: https://phabricator.services.mozilla.com/D9475
2018-10-23 16:45:42 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Brad Werth de46931aca Bug 1290420 Part 5: Change test function waitForViewportResizeTo to check viewport size. r=gl
Several tests of RDM use the helper function waitForViewportResizeTo. This patch changes that function to check the viewport size, not the content size, and to wait on either the content-resized event or the newly-defined viewport-resized event, which is fired on resize when viewport override is active.

Differential Revision: https://phabricator.services.mozilla.com/D7202
2018-10-04 13:16:52 +00:00
Gabriel Luong 08d62a71f7 Bug 1248619 - Part 1: Refactor and restore the reload condition settings in RDM. r=rcaliman 2018-09-24 13:04:03 -04:00
Gabriel Luong 053972912f Bug 1297431 - Add a custom user agent input in responsive design mode. r=rcaliman 2018-09-12 22:44:23 -04:00
Gabriel Luong 3c1e459365 Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Narcis Beleuzu 2d68169fc3 Backed out changeset 7ffb06278c4c (bug 1488114) for xpcshell failures on test_change_pixel_ratio.js. CLOSED TREE 2018-09-04 19:24:12 +03:00
Gabriel Luong c04f5aee7d Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Gabriel Luong 5060241270 Bug 1485118 - Format the React and Redux components in RDM. r=rcaliman 2018-08-22 13:18:46 -04:00
Gabriel Luong 245789eca7 Bug 1485125 - Lazy load the Device Modal in RDM. r=miker 2018-08-21 22:03:09 -04:00
Gabriel Luong 26bc907028 Bug 1484811 - Left align the toolbar controls when RDM is left aligned. r=miker 2018-08-21 15:31:44 -04:00
Gabriel Luong 5391124f07 Bug 1483965 - Fix the checked selection in the RDM device pixel ratio menu. r=caliman 2018-08-17 12:26:47 -04:00
Gabriel Luong 047dcb1fbb Bug 1467572 - Part 17: Implement left alignment of viewports. r=rcaliman 2018-08-15 17:27:55 -04:00
Gabriel Luong 07f2a54b83 Bug 1467572 - Part 16: Adjust RDM colors for the light and dark theme to match the designs. r=rcaliman
Light Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/300479943/preview
Dark Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/302151757/preview
2018-08-15 17:27:53 -04:00
Gabriel Luong d2be774a5c Bug 1467572 - Part 14: Set the minimum viewport dimension to 50px. r=rcaliman 2018-08-15 17:27:49 -04:00
Gabriel Luong d80ba8b67e Bug 1467572 - Part 13: Removes the custom toolbar button styling and fixes the sizing of the device close button in RDM. r=rcaliman 2018-08-15 17:27:47 -04:00
Gabriel Luong b658ab1b7d Bug 1467572 - Part 12: Use native context menu instead of select element in the Device selector. r=Honza
- Removes all the unused styling for the <select> and <option> elements and the
toolbar-dropdown class.
2018-08-15 17:27:46 -04:00
Gabriel Luong a03cfc68bd Bug 1467572 - Part 11: Use native context menu instead of select elements in the DPR menu. r=Honza 2018-08-15 17:27:44 -04:00
Gabriel Luong 70f6e3fa83 Bug 1467572 - Part 10: Reuse the network throttling menu in the network monitor in RDM. r=Honza
- Removes the duplicate dropdown arrow icon that is used in both RDM and Network monitor
- Converts the network throttling menu in the network monitor to be a shared component that
can be used in both RDM and network monitor
- Move the common styles for the dropdown menu button into toolbars.css
2018-08-15 17:27:43 -04:00
Gabriel Luong 8a04f6330d Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM
2018-08-15 17:27:41 -04:00
Gabriel Luong c9b02ce12e Bug 1467572 - Part 8: Add proper separators to the global toolbar. r=jryans 2018-08-15 17:27:39 -04:00
Gabriel Luong beb8afd8b9 Bug 1467572 - Part 7: Add rotate viewport button to the global toolbar. r=jryans 2018-08-15 17:27:37 -04:00
Gabriel Luong f8e94b4f02 Bug 1467572 - Part 6: Add the viewport dimension to the global toolbar. r=jryans 2018-08-15 17:27:36 -04:00
Gabriel Luong 9c1fa758af Bug 1467572 - Part 5: Implement the new style for the global toolbar. r=rcaliman 2018-08-15 17:27:34 -04:00
Gabriel Luong 8b0caf1250 Bug 1467572 - Part 4: Move the device selector into the global toolbar. r=jryans 2018-08-15 17:27:32 -04:00
Gabriel Luong 5a7546e654 Bug 1467572 - Part 3: Remove the viewport dimension. r=jryans 2018-08-15 17:27:30 -04:00