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

Issue 7366011: Initial sensor event provider for testing views screen rotation (Closed)

Created:
9 years, 5 months ago by cwolfe
Modified:
9 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, davemoore+watch_chromium.org, dhollowa, rjkroege
Visibility:
Public.

Description

Initial sensor event provider for testing views screen rotation The sensors API will unify various types of sensor data into a set of channels, each of which provides change events and periodic updates. This version of the API is intended only to support the experimental screen rotation code and is not for general use. In particular, the final listener will declare generic |OnSensorChanged| and |OnSensorUpdated| methods, rather than the special-purpose |OnScreenOrientationChanged|. BUG=none TEST=manual with http://codereview.chromium.org/7273073/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93094 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93480 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94181

Patch Set 1 : with style fixes #

Total comments: 4

Patch Set 2 : Style and naming fixes #

Patch Set 3 : Resolve conflict in content_browser.gypi #

Patch Set 4 : Fixed struct/class mismatch (linux_clang error) #

Patch Set 5 : Renamed content/browser files to work around Win Builder 2010 bug. #

Total comments: 7

Patch Set 6 : Style fixes #

Total comments: 15

Patch Set 7 : More style nits. #

Patch Set 8 : Restore missing header. #

Patch Set 9 : Restore more specific version of another missing header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -0 lines) Patch
A content/browser/sensors/sensors_provider.h View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/sensors/sensors_provider.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A content/browser/sensors/sensors_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/sensors/sensors_provider_impl.cc View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A content/common/sensors.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A content/common/sensors_listener.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
cwolfe
9 years, 5 months ago (2011-07-14 15:43:23 UTC) #1
cwolfe
sadrul: Please take a pass through. If there are no outside objections, can you please ...
9 years, 5 months ago (2011-07-14 17:28:03 UTC) #2
Ian Vollick
LGTM On 2011/07/14 17:28:03, cwolfe wrote: > sadrul: Please take a pass through. If there ...
9 years, 5 months ago (2011-07-15 14:21:57 UTC) #3
sadrul
On 2011/07/14 17:28:03, cwolfe wrote: > sadrul: Please take a pass through. If there are ...
9 years, 5 months ago (2011-07-15 15:12:26 UTC) #4
sadrul
http://codereview.chromium.org/7366011/diff/3002/content/browser/sensors/provider.h File content/browser/sensors/provider.h (right): http://codereview.chromium.org/7366011/diff/3002/content/browser/sensors/provider.h#newcode45 content/browser/sensors/provider.h:45: virtual void FireScreenOrientationChange(const ScreenOrientation& change) = 0; Perhaps 'ScreenOrientationChanged' ...
9 years, 5 months ago (2011-07-15 15:12:35 UTC) #5
sadrul
Question: is it possible to query the current orientation? Or does a Listener have to ...
9 years, 5 months ago (2011-07-15 15:32:17 UTC) #6
cwolfe
Comments applied. sadrul wrote: > Question: is it possible to query the current orientation? > ...
9 years, 5 months ago (2011-07-15 16:13:54 UTC) #7
jam
content common lgtm
9 years, 5 months ago (2011-07-18 17:43:37 UTC) #8
commit-bot: I haz the power
Can't apply patch for file content/content_browser.gypi. While running patch -p1 --forward --force; patching file content/content_browser.gypi ...
9 years, 5 months ago (2011-07-19 14:57:25 UTC) #9
commit-bot: I haz the power
Try job failure for 7366011-15002 (retry) on linux_clang for step "compile" (clobber build). It's a ...
9 years, 5 months ago (2011-07-19 16:16:44 UTC) #10
commit-bot: I haz the power
Change committed as 93094
9 years, 5 months ago (2011-07-19 20:39:29 UTC) #11
cwolfe
sadrul: can you please re-land this for me. It looks like the build breakage last ...
9 years, 5 months ago (2011-07-20 13:25:09 UTC) #12
commit-bot: I haz the power
Change committed as 93480
9 years, 5 months ago (2011-07-21 21:44:02 UTC) #13
tfarina
http://codereview.chromium.org/7366011/diff/28007/content/common/sensors.h File content/common/sensors.h (right): http://codereview.chromium.org/7366011/diff/28007/content/common/sensors.h#newcode5 content/common/sensors.h:5: #ifndef CONTENT_COMMON_SENSORS_H_ can you name this file screen_orientation? Or ...
9 years, 5 months ago (2011-07-22 15:00:23 UTC) #14
commit-bot: I haz the power
List of reviewers changed.
9 years, 5 months ago (2011-07-22 15:03:48 UTC) #15
tfarina
http://codereview.chromium.org/7366011/diff/28007/content/browser/sensors/sensors_provider.cc File content/browser/sensors/sensors_provider.cc (right): http://codereview.chromium.org/7366011/diff/28007/content/browser/sensors/sensors_provider.cc#newcode20 content/browser/sensors/sensors_provider.cc:20: } // sensors // namespace sensors http://codereview.chromium.org/7366011/diff/28007/content/browser/sensors/sensors_provider_impl.cc File content/browser/sensors/sensors_provider_impl.cc ...
9 years, 5 months ago (2011-07-22 15:04:41 UTC) #16
cwolfe
Nits fixed. Also added a few comments and OVERRIDEs. Will drop this back into the ...
9 years, 5 months ago (2011-07-25 14:23:02 UTC) #17
tfarina
http://codereview.chromium.org/7366011/diff/26003/content/browser/sensors/sensors_provider.h File content/browser/sensors/sensors_provider.h (right): http://codereview.chromium.org/7366011/diff/26003/content/browser/sensors/sensors_provider.h#newcode5 content/browser/sensors/sensors_provider.h:5: #ifndef CONTENT_BROWSER_SENSORS_PROVIDER_H_ CONTENT_BROWSER_SENSORS_SENSORS_PROVIDER_H_ http://codereview.chromium.org/7366011/diff/26003/content/browser/sensors/sensors_provider_impl.cc File content/browser/sensors/sensors_provider_impl.cc (right): http://codereview.chromium.org/7366011/diff/26003/content/browser/sensors/sensors_provider_impl.cc#newcode6 content/browser/sensors/sensors_provider_impl.cc:6: ...
9 years, 5 months ago (2011-07-25 14:57:52 UTC) #18
cwolfe
Nits fixed. Now if we can get the trivial prototype landed, I'll go back to ...
9 years, 5 months ago (2011-07-25 15:49:45 UTC) #19
tfarina
On 2011/07/25 15:49:45, cwolfe wrote: > Nits fixed. Now if we can get the trivial ...
9 years, 5 months ago (2011-07-25 16:18:37 UTC) #20
commit-bot: I haz the power
Change committed as 94181
9 years, 5 months ago (2011-07-26 22:04:01 UTC) #21
jam
9 years, 1 month ago (2011-11-23 01:34:36 UTC) #22
oops, looking at the dependencies of chrome/browser, now I see that this file
should have went to content/common since it's only used by browser.

is this code all going away anyways? if so, can you remove it soon (so that we
can enforce DEPS rules against content/common from chrome/browser)

Thanks

Powered by Google App Engine
This is Rietveld 408576698