Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 209333008: [DevTools] Support device orientation override on device with sensors. (Closed)

Created:
6 years, 9 months ago by dgozman
Modified:
6 years, 8 months ago
CC:
blink-reviews, mvanouwerkerk+watch_chromium.org, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[DevTools] Support device orientation override on device with sensors. Previously, override value was quickly replaced by real data from sensors. Now, we put sensor data on hold until override is disabled. This patch also fixes the cleanup/navigation issues with override enabled. BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170163

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed m_lastOrientation #

Total comments: 15

Patch Set 3 : Fixed more comments #

Patch Set 4 : Rebaselined test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -13 lines) Patch
M LayoutTests/inspector/device-orientation-success-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/OverridesSupport.js View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/devtools/front_end/OverridesView.js View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationController.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M Source/modules/device_orientation/DeviceOrientationController.cpp View 1 2 3 chunks +26 lines, -3 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationInspectorAgent.h View 2 chunks +7 lines, -0 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp View 1 3 chunks +44 lines, -4 lines 2 comments Download

Messages

Total messages: 14 (0 generated)
dgozman
Hi, Could you please take a look? Tim: owner review for modules/device_orientation. Vlad: agent <--> ...
6 years, 9 months ago (2014-03-24 15:43:01 UTC) #1
timvolodine
On 2014/03/24 15:43:01, dgozman wrote: > Hi, > > Could you please take a look? ...
6 years, 9 months ago (2014-03-25 11:39:52 UTC) #2
dgozman
On 2014/03/25 11:39:52, timvolodine wrote: > On 2014/03/24 15:43:01, dgozman wrote: > > Hi, > ...
6 years, 9 months ago (2014-03-25 11:44:22 UTC) #3
timvolodine
https://codereview.chromium.org/209333008/diff/1/Source/modules/device_orientation/DeviceOrientationController.cpp File Source/modules/device_orientation/DeviceOrientationController.cpp (right): https://codereview.chromium.org/209333008/diff/1/Source/modules/device_orientation/DeviceOrientationController.cpp#newcode57 Source/modules/device_orientation/DeviceOrientationController.cpp:57: return; hmm so I guess we don't fire overrides ...
6 years, 9 months ago (2014-03-25 15:06:33 UTC) #4
dgozman
PTAL https://codereview.chromium.org/209333008/diff/1/Source/modules/device_orientation/DeviceOrientationController.cpp File Source/modules/device_orientation/DeviceOrientationController.cpp (right): https://codereview.chromium.org/209333008/diff/1/Source/modules/device_orientation/DeviceOrientationController.cpp#newcode57 Source/modules/device_orientation/DeviceOrientationController.cpp:57: return; On 2014/03/25 15:06:33, timvolodine wrote: > hmm ...
6 years, 9 months ago (2014-03-25 17:50:30 UTC) #5
aandrey
https://codereview.chromium.org/209333008/diff/50001/Source/modules/device_orientation/DeviceOrientationController.cpp File Source/modules/device_orientation/DeviceOrientationController.cpp (right): https://codereview.chromium.org/209333008/diff/50001/Source/modules/device_orientation/DeviceOrientationController.cpp#newcode130 Source/modules/device_orientation/DeviceOrientationController.cpp:130: m_override = nullptr; FYI, maybe we should add: if ...
6 years, 9 months ago (2014-03-25 19:59:43 UTC) #6
timvolodine
thanks Dmitry, looks much better, some more comments below. https://codereview.chromium.org/209333008/diff/50001/Source/modules/device_orientation/DeviceOrientationController.cpp File Source/modules/device_orientation/DeviceOrientationController.cpp (right): https://codereview.chromium.org/209333008/diff/50001/Source/modules/device_orientation/DeviceOrientationController.cpp#newcode43 Source/modules/device_orientation/DeviceOrientationController.cpp:43: ...
6 years, 9 months ago (2014-03-26 13:20:55 UTC) #7
dgozman
Please take another look. I've also rebaselined a test which I missed before. https://codereview.chromium.org/209333008/diff/50001/Source/modules/device_orientation/DeviceOrientationController.cpp File ...
6 years, 9 months ago (2014-03-26 13:51:57 UTC) #8
timvolodine
lgtm nice, thanks! would be good for somebody else to look at *Agent code as ...
6 years, 8 months ago (2014-03-27 00:04:29 UTC) #9
Vladislav Kaznacheev
*Agent code lgtm
6 years, 8 months ago (2014-03-27 08:27:36 UTC) #10
dgozman
Thank you for review! https://codereview.chromium.org/209333008/diff/240001/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp File Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp (right): https://codereview.chromium.org/209333008/diff/240001/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp#newcode20 Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp:20: static const char alpha[] = ...
6 years, 8 months ago (2014-03-27 09:30:32 UTC) #11
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 8 months ago (2014-03-27 09:30:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/209333008/240001
6 years, 8 months ago (2014-03-27 09:30:48 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-03-27 10:31:16 UTC) #14
Message was sent while issue was closed.
Change committed as 170163

Powered by Google App Engine
This is Rietveld 408576698