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

Issue 13433002: Implement DeviceOrientation API on Windows (Closed)

Created:
7 years, 8 months ago by nhu
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
ssh://nhu@powerbuilder.sh.intel.com/home/www-data/git-repos/perc/chromium.git@sensor
Visibility:
Public.

Description

Implement DeviceOrientation API on Windows The implemenation is based on Windows sensor framework COM API. It uses the data of inclinometer 3D sensor which is a required fusion sensor based on the accelerometer sensor. BUG=224849 TEST=http://www.html5rocks.com/en/tutorials/device/orientation/deviceorientationsample.html Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195256

Patch Set 1 #

Total comments: 25

Patch Set 2 : Fixup according to bulach's comments (#3) #

Total comments: 46

Patch Set 3 : Update according to sail's and peter's comments #8, #9 and #11 #

Total comments: 21

Patch Set 4 : Update according to comment #14 and #15 #

Patch Set 5 : Update according to comment #17 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -0 lines) Patch
A content/browser/device_orientation/data_fetcher_impl_win.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A content/browser/device_orientation/data_fetcher_impl_win.cc View 1 2 3 4 1 chunk +193 lines, -0 lines 0 comments Download
M content/browser/device_orientation/provider.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/device_orientation/provider_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
nhu
Please kindly review. Thanks in advance.
7 years, 8 months ago (2013-04-02 01:53:32 UTC) #1
bulach
thanks!! +peter and tim who are revamping this API and will be able to provide ...
7 years, 8 months ago (2013-04-02 14:50:05 UTC) #2
bulach
some drive-by comments, mostly style nits. thanks again for implementing this! https://codereview.chromium.org/13433002/diff/1/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): ...
7 years, 8 months ago (2013-04-02 15:48:07 UTC) #3
nhu
bulach, thanks for your review. Patch is updated and some comments are embedded inline. Please ...
7 years, 8 months ago (2013-04-03 03:06:52 UTC) #4
nhu
Hi folks, Do you have any comments on this? Thanks.
7 years, 8 months ago (2013-04-05 03:04:26 UTC) #5
nhu
Hi Folks, If you have any comments, please let me know. Any of your thoughts ...
7 years, 8 months ago (2013-04-09 01:09:08 UTC) #6
nhu
Hi, sail, This is my CL for bug https://code.google.com/p/chromium/issues/detail?id=224849. Could you have a look?
7 years, 8 months ago (2013-04-09 05:42:41 UTC) #7
sail
https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode14 content/browser/device_orientation/data_fetcher_impl_win.cc:14: using base::win::ScopedComPtr; I think you should avoid this. https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode25 ...
7 years, 8 months ago (2013-04-09 14:43:58 UTC) #8
sail
https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode78 content/browser/device_orientation/data_fetcher_impl_win.cc:78: double alpha, beta, gamma; One line per variable declaration. ...
7 years, 8 months ago (2013-04-09 14:59:14 UTC) #9
sail
https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode172 content/browser/device_orientation/data_fetcher_impl_win.cc:172: if (FAILED(::CoCreateInstance(CLSID_SensorManager, On 2013/04/09 14:43:58, sail wrote: > I ...
7 years, 8 months ago (2013-04-09 14:59:56 UTC) #10
Peter Beverloo
https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode19 content/browser/device_orientation/data_fetcher_impl_win.cc:19: const int kPeriodInMilliseconds = 100; We're trying to move ...
7 years, 8 months ago (2013-04-09 15:34:15 UTC) #11
sail
https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.h File content/browser/device_orientation/data_fetcher_impl_win.h (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.h#newcode8 content/browser/device_orientation/data_fetcher_impl_win.h:8: #include <SensorsApi.h> On 2013/04/09 15:34:15, Peter Beverloo wrote: > ...
7 years, 8 months ago (2013-04-09 15:36:53 UTC) #12
nhu
Patch set is updated. Please review. Thanks. https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode14 content/browser/device_orientation/data_fetcher_impl_win.cc:14: using base::win::ScopedComPtr; ...
7 years, 8 months ago (2013-04-09 18:13:15 UTC) #13
sail
LGTM! https://codereview.chromium.org/13433002/diff/12002/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/12002/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode64 content/browser/device_orientation/data_fetcher_impl_win.cc:64: Orientation* orientation = new Orientation(); scoped_refptr https://codereview.chromium.org/13433002/diff/12002/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode116 content/browser/device_orientation/data_fetcher_impl_win.cc:116: ...
7 years, 8 months ago (2013-04-09 20:53:53 UTC) #14
sail
On 2013/04/05 03:04:26, nhu wrote: > Hi folks, > > Do you have any comments ...
7 years, 8 months ago (2013-04-09 20:56:42 UTC) #15
bulach
lgtm, many thanks! just some small nits, feel free to go ahead once peter is ...
7 years, 8 months ago (2013-04-10 07:59:46 UTC) #16
Peter Beverloo
lgtm, thanks! Two minor nits, but please look at Marcus' and Sail's comments too. https://codereview.chromium.org/13433002/diff/12002/content/browser/device_orientation/data_fetcher_impl_win.cc ...
7 years, 8 months ago (2013-04-10 08:59:50 UTC) #17
nhu
The patch set is updated according to comment #14, #16 and #17. Please review. Thanks. ...
7 years, 8 months ago (2013-04-10 09:46:42 UTC) #18
Peter Beverloo
lgtm -- thank you again! Please wait for sail@ to reply on the portabledeviceguids.lib comment ...
7 years, 8 months ago (2013-04-10 13:14:20 UTC) #19
nhu
hi peter, some performance test data on polling interval. Please have a look. Your thoughts? ...
7 years, 8 months ago (2013-04-10 16:51:01 UTC) #20
sail
https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi#newcode1113 content/content_browser.gypi:1113: '-lportabledeviceguids.lib', On 2013/04/10 09:46:42, nhu wrote: > On 2013/04/09 ...
7 years, 8 months ago (2013-04-10 17:00:10 UTC) #21
nhu
On 2013/04/10 17:00:10, sail wrote: > https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi > File content/content_browser.gypi (right): > > https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi#newcode1113 > ...
7 years, 8 months ago (2013-04-11 01:48:01 UTC) #22
nhu
On 2013/04/10 16:51:01, nhu wrote: > hi peter, some performance test data on polling interval. ...
7 years, 8 months ago (2013-04-12 13:45:41 UTC) #23
nhu
On 2013/04/11 01:48:01, nhu wrote: > On 2013/04/10 17:00:10, sail wrote: > > > https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi ...
7 years, 8 months ago (2013-04-12 13:47:53 UTC) #24
nhu
Peter, sail, I post comments to your questions, any of your thoughts are appreciated.
7 years, 8 months ago (2013-04-12 13:49:42 UTC) #25
Peter Beverloo
No further comments from my side. Thanks! https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc File content/browser/device_orientation/data_fetcher_impl_win.cc (right): https://codereview.chromium.org/13433002/diff/6001/content/browser/device_orientation/data_fetcher_impl_win.cc#newcode19 content/browser/device_orientation/data_fetcher_impl_win.cc:19: const int ...
7 years, 8 months ago (2013-04-12 15:52:10 UTC) #26
nhu
On 2013/04/11 01:48:01, nhu wrote: > On 2013/04/10 17:00:10, sail wrote: > > > https://codereview.chromium.org/13433002/diff/12002/content/content_browser.gypi ...
7 years, 8 months ago (2013-04-16 03:21:54 UTC) #27
sail
On 2013/04/16 03:21:54, nhu wrote: > On 2013/04/11 01:48:01, nhu wrote: > > On 2013/04/10 ...
7 years, 8 months ago (2013-04-16 04:25:13 UTC) #28
nhu
On 2013/04/16 04:25:13, sail wrote: > On 2013/04/16 03:21:54, nhu wrote: > > On 2013/04/11 ...
7 years, 8 months ago (2013-04-16 04:53:53 UTC) #29
nhu
Hi folks, It seems I cannot trigger the CQ. Could one of you guys help ...
7 years, 8 months ago (2013-04-18 16:20:23 UTC) #30
sail
7 years, 8 months ago (2013-04-19 19:44:45 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 manually as r195256.

Powered by Google App Engine
This is Rietveld 408576698