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

Issue 500613003: Use standardized and extendable accelerometer update type. (Closed)

Created:
6 years, 3 months ago by flackr
Modified:
6 years, 1 month ago
Reviewers:
stevenjb, Daniel Erat, sky
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use standardized and extendable accelerometer update type. Updates the type used when delivering accelerometer updates in ash to: - support a variable number of accelerometers - be measured in m/s^2 - use axes consistent with the web device motion API. BUG=380831 TEST=MaximizeModeController unit tests still pass. TEST=Run on a touchview device and verify that entering / exiting touchview as well as screen rotation still works. Committed: https://crrev.com/45f31ae7bb08076b4f696d0d5567411e82e49782 Cr-Commit-Position: refs/heads/master@{#292968}

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Address comments #

Patch Set 3 : Update unit_tests calls to MaximizeModeController::OnAccelerometerUpdated. #

Patch Set 4 : Move accelerometer_types.* to ui/base/ #

Patch Set 5 : Move accelerometer_types to ui/accelerometer #

Total comments: 7

Patch Set 6 : Add BUILD.gn #

Patch Set 7 : Merge and remove unused Vector3dF reference. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -195 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ash/accelerometer/accelerometer_controller.h View 1 2 3 2 chunks +2 lines, -6 lines 0 comments Download
M ash/accelerometer/accelerometer_controller.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M ash/accelerometer/accelerometer_observer.h View 1 2 3 4 1 chunk +5 lines, -8 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 7 chunks +55 lines, -40 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 17 chunks +102 lines, -86 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 4 chunks +31 lines, -13 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/DEPS View 1 2 3 4 1 chunk +1 line, -1 line 2 comments Download
M chromeos/accelerometer/accelerometer_reader.h View 1 2 3 4 5 6 4 chunks +8 lines, -5 lines 0 comments Download
M chromeos/accelerometer/accelerometer_reader.cc View 1 2 3 4 5 6 2 chunks +14 lines, -11 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + ui/accelerometer/BUILD.gn View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
A ui/accelerometer/DEPS View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A ui/accelerometer/accelerometer_types.h View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
A ui/accelerometer/accelerometer_types.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A + ui/accelerometer/ui_accelerometer.gyp View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
A ui/accelerometer/ui_accelerometer_export.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (4 generated)
flackr
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-27 19:04:33 UTC) #1
flackr
flackr@chromium.org changed reviewers: + derat@chromium.org
6 years, 3 months ago (2014-08-27 19:05:25 UTC) #2
flackr
Dan, this is part of my effort to be able to support various device form ...
6 years, 3 months ago (2014-08-27 19:09:13 UTC) #3
Daniel Erat
https://codereview.chromium.org/500613003/diff/20001/ash/accelerometer/accelerometer_observer.h File ash/accelerometer/accelerometer_observer.h (right): https://codereview.chromium.org/500613003/diff/20001/ash/accelerometer/accelerometer_observer.h#newcode16 ash/accelerometer/accelerometer_observer.h:16: // Invoked when an accelerometer reading has been taken. ...
6 years, 3 months ago (2014-08-28 00:27:07 UTC) #4
flackr
https://codereview.chromium.org/500613003/diff/20001/ash/accelerometer/accelerometer_observer.h File ash/accelerometer/accelerometer_observer.h (right): https://codereview.chromium.org/500613003/diff/20001/ash/accelerometer/accelerometer_observer.h#newcode16 ash/accelerometer/accelerometer_observer.h:16: // Invoked when an accelerometer reading has been taken. ...
6 years, 3 months ago (2014-08-28 01:21:37 UTC) #5
Daniel Erat
lgtm
6 years, 3 months ago (2014-08-28 14:42:32 UTC) #6
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 3 months ago (2014-08-28 15:09:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/500613003/60001
6 years, 3 months ago (2014-08-28 15:10:37 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 16:05:05 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 16:18:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/11012)
6 years, 3 months ago (2014-08-28 16:18:48 UTC) #11
flackr
flackr@chromium.org changed reviewers: + sky@chromium.org
6 years, 3 months ago (2014-08-28 18:39:39 UTC) #12
flackr
Hi Scott, In this patch I'm creating a type to use for accelerometer updates. Since ...
6 years, 3 months ago (2014-08-28 18:39:39 UTC) #13
sky
On 2014/08/28 18:39:39, flackr wrote: > Hi Scott, > > In this patch I'm creating ...
6 years, 3 months ago (2014-08-28 23:03:53 UTC) #14
flackr
I looked into moving ui/base/ime but I'd rather not block this CL on that after ...
6 years, 3 months ago (2014-08-29 01:55:08 UTC) #15
sky
https://codereview.chromium.org/500613003/diff/100001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (left): https://codereview.chromium.org/500613003/diff/100001/chromeos/chromeos.gyp#oldcode31 chromeos/chromeos.gyp:31: '../ui/gfx/gfx.gyp:gfx_geometry', Is no one using this dependency anymore? https://codereview.chromium.org/500613003/diff/100001/ui/accelerometer/accelerometer_types.h ...
6 years, 3 months ago (2014-08-29 02:15:27 UTC) #16
flackr
Verified that I could use gn to build linux chrome, as far as I can ...
6 years, 3 months ago (2014-08-29 03:09:53 UTC) #17
sky
LGTM
6 years, 3 months ago (2014-09-02 15:21:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/500613003/120001
6 years, 3 months ago (2014-09-02 16:30:42 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-02 17:29:08 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/7541)
6 years, 3 months ago (2014-09-02 17:32:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/500613003/140001
6 years, 3 months ago (2014-09-02 17:54:15 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:140001) as 6c194f2bdff9ce41849f60ef88c4d6c48d1f83c3
6 years, 3 months ago (2014-09-02 18:51:23 UTC) #26
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/45f31ae7bb08076b4f696d0d5567411e82e49782 Cr-Commit-Position: refs/heads/master@{#292968}
6 years, 3 months ago (2014-09-10 03:19:46 UTC) #27
stevenjb
https://codereview.chromium.org/500613003/diff/140001/chromeos/DEPS File chromeos/DEPS (right): https://codereview.chromium.org/500613003/diff/140001/chromeos/DEPS#newcode8 chromeos/DEPS:8: "+ui/accelerometer", I just ran across this and have to ...
6 years, 1 month ago (2014-11-06 16:38:37 UTC) #29
flackr
https://codereview.chromium.org/500613003/diff/140001/chromeos/DEPS File chromeos/DEPS (right): https://codereview.chromium.org/500613003/diff/140001/chromeos/DEPS#newcode8 chromeos/DEPS:8: "+ui/accelerometer", On 2014/11/06 16:38:37, stevenjb wrote: > I just ...
6 years, 1 month ago (2014-11-06 16:54:01 UTC) #30
stevenjb
6 years, 1 month ago (2014-11-06 17:14:51 UTC) #31
Message was sent while issue was closed.
We could put the common types in a component, or do the extra translation
as you suggest, I would be fine either way.

The reason I dislike the src/ui dependency in src/chromeos is that if we
want to use the chromeos library in a non UI module (e.g. a hypothetical
headless network manager for Chromecast), we end up pulling in a bunch of
UI code that we do not need.


On Thu, Nov 6, 2014 at 9:54 AM, <flackr@chromium.org> wrote:

> Reviewers: Daniel Erat, sky, stevenjb,
>
>
> https://codereview.chromium.org/500613003/diff/140001/chromeos/DEPS
> File chromeos/DEPS (right):
>
> https://codereview.chromium.org/500613003/diff/140001/
> chromeos/DEPS#newcode8
> chromeos/DEPS:8: "+ui/accelerometer",
> On 2014/11/06 16:38:37, stevenjb wrote:
>
>> I just ran across this and have to say I am not a fan of having ui/
>>
> dependencies
>
>> in chromeos/. The intention of chromeos/ was to be a low level system
>>
> library,
>
>> any dependencies should be the other way around. Is there an easy way
>>
> to fix
>
>> this?
>>
>
> We could have a special type for the updates returned from chromeos/ and
> then translate to some other type in
> ash/accelerometer/accelerometer_reader, but duplicating all of the
> information in the type seems suboptimal. Are there any better suited
> locations for defining a common type we want to share between chromeos/
> and ui code?
>
> Description:
> Use standardized and extendable accelerometer update type.
>
> Updates the type used when delivering accelerometer updates in ash to:
> - support a variable number of accelerometers
> - be measured in m/s^2
> - use axes consistent with the web device motion API.
>
> BUG=380831
> TEST=MaximizeModeController unit tests still pass.
> TEST=Run on a touchview device and verify that entering / exiting
> touchview as
> well as screen rotation still works.
>
> Committed: https://crrev.com/45f31ae7bb08076b4f696d0d5567411e82e49782
> Cr-Commit-Position: refs/heads/master@{#292968}
>
> Please review this at https://codereview.chromium.org/500613003/
>
> Base URL: https://chromium.googlesource.com/chromium/src.git@master
>
> Affected files (+382, -195 lines):
>   M ash/BUILD.gn
>   M ash/accelerometer/accelerometer_controller.h
>   M ash/accelerometer/accelerometer_controller.cc
>   M ash/accelerometer/accelerometer_observer.h
>   M ash/ash.gyp
>   M ash/wm/maximize_mode/maximize_mode_controller.h
>   M ash/wm/maximize_mode/maximize_mode_controller.cc
>   M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
>   M chrome/browser/chromeos/display/display_preferences_unittest.cc
>   M chrome/chrome_tests_unit.gypi
>   M chromeos/DEPS
>   M chromeos/accelerometer/accelerometer_reader.h
>   M chromeos/accelerometer/accelerometer_reader.cc
>   M chromeos/chromeos.gyp
>   A + ui/accelerometer/BUILD.gn
>   A ui/accelerometer/DEPS
>   A ui/accelerometer/accelerometer_types.h
>   A ui/accelerometer/accelerometer_types.cc
>   A + ui/accelerometer/ui_accelerometer.gyp
>   A ui/accelerometer/ui_accelerometer_export.h
>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698