hello reviewers, thanks in advance for your time, this is the backend part for https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7580093
see bug: https://issues.chromium.org/issues/40807290#comment19 for a video of the feature.
please let me know if you want me to address anything!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@yan...@chromium.org does it match the behavior you intended via comments on the issue?
UpdateScreenOrientationEmulation(true);I do not think we should enable this by default. We either need a new param on the device emulation or a separate method. How does it work with Emulation.setIdleOverride?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@yan...@chromium.org does it match the behavior you intended via comments on the issue?
Yes. The recorded video (https://g-issues.chromium.org/issues/40807290#comment19) of the implementation is the behavior that I intended.
UpdateScreenOrientationEmulation(true);I do not think we should enable this by default. We either need a new param on the device emulation or a separate method. How does it work with Emulation.setIdleOverride?
I think also the responsive mode for desktop devices should have this on? as the lock is not supported there.
Yang Guo@yan...@chromium.org does it match the behavior you intended via comments on the issue?
Yes. The recorded video (https://g-issues.chromium.org/issues/40807290#comment19) of the implementation is the behavior that I intended.
I am not DevTools expert, but happy to stamp the web_contents_impl.h change once the DevTools folks are happy with the CL.
void OnOrientationLockChanged(Could you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Could you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Done
Alex RudenkoI do not think we should enable this by default. We either need a new param on the device emulation or a separate method. How does it work with Emulation.setIdleOverride?
I think also the responsive mode for desktop devices should have this on? as the lock is not supported there.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void OnOrientationLockChanged(Helmut JanuschkaCould you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void OnOrientationLockChanged(Helmut JanuschkaCould you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Alex RudenkoDone
I do not find an inspector-protocol test?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void OnOrientationLockChanged(Helmut JanuschkaCould you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Alex RudenkoDone
Helmut JanuschkaI do not find an inspector-protocol test?
ohh missed to stage!
I still do not see an inspector-protocol test. We prefer inspector-protocol tests over the C++ browser tests. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/inspector-protocol/emulation/
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void OnOrientationLockChanged(Helmut JanuschkaCould you please also add the inspector-protocol test for the emulation events and the eventual event opt-in mechanism?
Alex RudenkoDone
Helmut JanuschkaI do not find an inspector-protocol test?
Alex Rudenkoohh missed to stage!
I still do not see an inspector-protocol test. We prefer inspector-protocol tests over the C++ browser tests. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/inspector-protocol/emulation/
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
IN_PROC_BROWSER_TEST_F(DevToolsProtocolTest,I believe we can remove this test?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I believe we can remove this test?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@na...@chromium.org devtools part is CR+1'd and also the corresponding devtool CL is CR+1, could you stamp/review?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Enable screen.orientation.lock() during DevTools device emulation
Allow ScreenOrientationProvider to succeed without a platform delegate when
DevTools emulation is active, and fire a new CDP event
screenOrientationLockChanged so the frontend can react to lock/unlock calls.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |