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

Issue 200643005: Read and expose accelerometer values from cros-ec-accel trigger. (Closed)

Created:
6 years, 9 months ago by flackr
Modified:
6 years, 8 months ago
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Read and expose accelerometer values from cros-ec-accel trigger. BUG=342907 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261317

Patch Set 1 #

Patch Set 2 : Comments, update to use udev symlink to determine device name. #

Total comments: 76

Patch Set 3 : Address review comments. #

Total comments: 2

Patch Set 4 : Updated check for invalid field index to log error and not use accelerometer. #

Patch Set 5 : Pass in TaskRunner from ash. #

Patch Set 6 : Move content dep to ash/accelerometer/DEPS #

Patch Set 7 : Read the accelerometer synchronously. #

Patch Set 8 : Virtual dtor in observer, ASH_EXPORT for tests in dependent CLs. #

Total comments: 2

Patch Set 9 : Pass TaskRunner from chrome through to ash to AccelerometerReader. #

Patch Set 10 : Remove content DEP from ash. #

Patch Set 11 : Change dep to just ui/gfx/geometry. #

Patch Set 12 : Link in gfx_geometry. #

Patch Set 13 : Don't bind to AccelerometerReader, post to standalone function with scoped_refptr to data structure. #

Total comments: 10

Patch Set 14 : Fix alphabetization. #

Total comments: 2

Patch Set 15 : Always define accelerometer_controller_ in shell. #

Patch Set 16 : Sort for real. #

Patch Set 17 : Add CHROMEOS if defined for HandleAccelerometerReading. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -0 lines) Patch
A ash/accelerometer/accelerometer_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +71 lines, -0 lines 0 comments Download
A ash/accelerometer/accelerometer_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A ash/accelerometer/accelerometer_observer.h View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M chromeos/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A chromeos/accelerometer/accelerometer_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +82 lines, -0 lines 0 comments Download
A chromeos/accelerometer/accelerometer_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +218 lines, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
flackr
Hey, this is the first chrome side patch to handle accelerometer updates. I decided that ...
6 years, 9 months ago (2014-03-26 19:06:48 UTC) #1
Daniel Erat
some nits, but this looks generally fine to me! https://codereview.chromium.org/200643005/diff/20001/ash/accelerometer/accelerometer_controller.h File ash/accelerometer/accelerometer_controller.h (right): https://codereview.chromium.org/200643005/diff/20001/ash/accelerometer/accelerometer_controller.h#newcode24 ash/accelerometer/accelerometer_controller.h:24: ...
6 years, 9 months ago (2014-03-26 22:26:14 UTC) #2
flackr
https://codereview.chromium.org/200643005/diff/20001/ash/accelerometer/accelerometer_controller.h File ash/accelerometer/accelerometer_controller.h (right): https://codereview.chromium.org/200643005/diff/20001/ash/accelerometer/accelerometer_controller.h#newcode24 ash/accelerometer/accelerometer_controller.h:24: // notifications if an accelerometer was detected. On 2014/03/26 ...
6 years, 9 months ago (2014-03-27 15:21:07 UTC) #3
Daniel Erat
lgtm https://codereview.chromium.org/200643005/diff/20001/chromeos/accelerometer/accelerometer_reader.cc File chromeos/accelerometer/accelerometer_reader.cc (right): https://codereview.chromium.org/200643005/diff/20001/chromeos/accelerometer/accelerometer_reader.cc#newcode93 chromeos/accelerometer/accelerometer_reader.cc:93: base::Unretained(this)), On 2014/03/27 15:21:07, flackr wrote: > On ...
6 years, 9 months ago (2014-03-27 15:37:51 UTC) #4
flackr
+danakj for adding ui/gfx to chromeos/DEPS +piman for adding content/public/browser to chromeos/DEPS PTAL, thanks. https://codereview.chromium.org/200643005/diff/40001/chromeos/accelerometer/accelerometer_reader.cc ...
6 years, 9 months ago (2014-03-27 16:14:55 UTC) #5
piman
+jam where does chromeos sit in the dependency graph? Is it ok to have it ...
6 years, 9 months ago (2014-03-27 17:58:53 UTC) #6
Daniel Erat
On 2014/03/27 17:58:53, piman wrote: > +jam > where does chromeos sit in the dependency ...
6 years, 9 months ago (2014-03-27 18:08:54 UTC) #7
jam
On 2014/03/27 17:58:53, piman wrote: > +jam > where does chromeos sit in the dependency ...
6 years, 9 months ago (2014-03-27 23:04:58 UTC) #8
flackr
Okay, I've merged with master and passed in the TaskRunner I get from ash, which ...
6 years, 9 months ago (2014-03-28 13:06:31 UTC) #9
Daniel Erat
On 2014/03/28 13:06:31, flackr wrote: > Okay, I've merged with master and passed in the ...
6 years, 9 months ago (2014-03-28 14:28:51 UTC) #10
jam
is the design of ash is such that all of it can depend on content? ...
6 years, 9 months ago (2014-03-28 17:59:54 UTC) #11
flackr
On 2014/03/28 17:59:54, jam wrote: > is the design of ash is such that all ...
6 years, 9 months ago (2014-03-28 18:04:56 UTC) #12
sky
On 2014/03/28 18:04:56, flackr wrote: > On 2014/03/28 17:59:54, jam wrote: > > is the ...
6 years, 9 months ago (2014-03-28 20:35:10 UTC) #13
jam
On 2014/03/28 18:04:56, flackr wrote: > On 2014/03/28 17:59:54, jam wrote: > > is the ...
6 years, 9 months ago (2014-03-28 21:17:58 UTC) #14
flackr
On 2014/03/28 20:35:10, sky wrote: > On 2014/03/28 18:04:56, flackr wrote: > > On 2014/03/28 ...
6 years, 9 months ago (2014-03-28 21:19:25 UTC) #15
jam
On 2014/03/28 21:19:25, flackr wrote: > On 2014/03/28 20:35:10, sky wrote: > > On 2014/03/28 ...
6 years, 8 months ago (2014-03-31 15:58:56 UTC) #16
flackr
On 2014/03/31 15:58:56, jam wrote: > On 2014/03/28 21:19:25, flackr wrote: > > On 2014/03/28 ...
6 years, 8 months ago (2014-03-31 22:15:09 UTC) #17
jam
On 2014/03/31 22:15:09, flackr wrote: > On 2014/03/31 15:58:56, jam wrote: > > On 2014/03/28 ...
6 years, 8 months ago (2014-04-01 16:16:35 UTC) #18
Daniel Erat
On 2014/04/01 16:16:35, jam wrote: > On 2014/03/31 22:15:09, flackr wrote: > > On 2014/03/31 ...
6 years, 8 months ago (2014-04-01 16:25:29 UTC) #19
flackr
On 2014/04/01 16:25:29, Daniel Erat wrote: > On 2014/04/01 16:16:35, jam wrote: > > On ...
6 years, 8 months ago (2014-04-01 16:29:49 UTC) #20
sadrul
A drive-by query https://codereview.chromium.org/200643005/diff/160001/chromeos/accelerometer/accelerometer_reader.cc File chromeos/accelerometer/accelerometer_reader.cc (right): https://codereview.chromium.org/200643005/diff/160001/chromeos/accelerometer/accelerometer_reader.cc#newcode51 chromeos/accelerometer/accelerometer_reader.cc:51: const int kDelayBetweenReadsMs = 100; Would ...
6 years, 8 months ago (2014-04-01 16:33:54 UTC) #21
alecaberg
On 2014/04/01 16:29:49, flackr wrote: > On 2014/04/01 16:25:29, Daniel Erat wrote: > > On ...
6 years, 8 months ago (2014-04-01 17:09:19 UTC) #22
flackr
https://codereview.chromium.org/200643005/diff/160001/chromeos/accelerometer/accelerometer_reader.cc File chromeos/accelerometer/accelerometer_reader.cc (right): https://codereview.chromium.org/200643005/diff/160001/chromeos/accelerometer/accelerometer_reader.cc#newcode51 chromeos/accelerometer/accelerometer_reader.cc:51: const int kDelayBetweenReadsMs = 100; On 2014/04/01 16:33:55, sadrul ...
6 years, 8 months ago (2014-04-01 17:10:55 UTC) #23
flackr
Okay, the potential blocking times are definitely far too long. jam, this is what you ...
6 years, 8 months ago (2014-04-01 18:28:05 UTC) #24
Daniel Erat
lgtm
6 years, 8 months ago (2014-04-01 22:05:33 UTC) #25
danakj
LGTM on the deps/gyp change for ui/gfx/geometry.
6 years, 8 months ago (2014-04-01 22:17:34 UTC) #26
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-01 22:33:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/200643005/240001
6 years, 8 months ago (2014-04-01 23:01:39 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 23:30:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-01 23:30:59 UTC) #30
Daniel Erat
cool, this approach seems nice. https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h File chromeos/accelerometer/accelerometer_reader.h (right): https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h#newcode27 chromeos/accelerometer/accelerometer_reader.h:27: struct ConfigurationData { can ...
6 years, 8 months ago (2014-04-02 18:11:57 UTC) #31
flackr
https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h File chromeos/accelerometer/accelerometer_reader.h (right): https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h#newcode27 chromeos/accelerometer/accelerometer_reader.h:27: struct ConfigurationData { On 2014/04/02 18:11:57, Daniel Erat wrote: ...
6 years, 8 months ago (2014-04-02 18:52:55 UTC) #32
flackr
https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h File chromeos/accelerometer/accelerometer_reader.h (right): https://codereview.chromium.org/200643005/diff/260001/chromeos/accelerometer/accelerometer_reader.h#newcode39 chromeos/accelerometer/accelerometer_reader.h:39: typedef base::RefCountedData<char[12]> Reading; On 2014/04/02 18:52:55, flackr wrote: > ...
6 years, 8 months ago (2014-04-02 18:57:41 UTC) #33
Daniel Erat
lgtm (yet again :-) ) w/nits https://codereview.chromium.org/200643005/diff/260001/ash/accelerometer/accelerometer_controller.h File ash/accelerometer/accelerometer_controller.h (right): https://codereview.chromium.org/200643005/diff/260001/ash/accelerometer/accelerometer_controller.h#newcode59 ash/accelerometer/accelerometer_controller.h:59: ObserverList<AccelerometerObserver, true> observers_; ...
6 years, 8 months ago (2014-04-02 20:22:56 UTC) #34
flackr
Thanks for the quick reviews! https://codereview.chromium.org/200643005/diff/260001/ash/accelerometer/accelerometer_observer.h File ash/accelerometer/accelerometer_observer.h (right): https://codereview.chromium.org/200643005/diff/260001/ash/accelerometer/accelerometer_observer.h#newcode17 ash/accelerometer/accelerometer_observer.h:17: virtual void OnAccelerometerUpdated(const gfx::Vector3dF& ...
6 years, 8 months ago (2014-04-02 20:36:29 UTC) #35
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 20:37:46 UTC) #36
flackr
The CQ bit was unchecked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 20:38:05 UTC) #37
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 20:43:23 UTC) #38
Daniel Erat
https://codereview.chromium.org/200643005/diff/280001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/200643005/diff/280001/chromeos/chromeos.gyp#newcode49 chromeos/chromeos.gyp:49: 'accelerometer/accelerometer_reader.cc', still needs to move up a bit more, ...
6 years, 8 months ago (2014-04-02 20:44:24 UTC) #39
flackr
The CQ bit was unchecked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 20:44:50 UTC) #40
flackr
https://codereview.chromium.org/200643005/diff/280001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/200643005/diff/280001/chromeos/chromeos.gyp#newcode49 chromeos/chromeos.gyp:49: 'accelerometer/accelerometer_reader.cc', On 2014/04/02 20:44:24, Daniel Erat wrote: > still ...
6 years, 8 months ago (2014-04-02 20:47:12 UTC) #41
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 20:47:47 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/200643005/320001
6 years, 8 months ago (2014-04-02 20:48:15 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 21:30:35 UTC) #44
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=292870
6 years, 8 months ago (2014-04-02 21:30:36 UTC) #45
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-02 21:39:17 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/200643005/340001
6 years, 8 months ago (2014-04-02 21:41:34 UTC) #47
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 08:07:26 UTC) #48
Message was sent while issue was closed.
Change committed as 261317

Powered by Google App Engine
This is Rietveld 408576698