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

Issue 196193002: Implement ScreenOrientationProvider for Chrome Android. (Closed)

Created:
6 years, 9 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement ScreenOrientationProvider for Chrome Android. This allows screen.lockOrientation() and screen.unlockOrientation() to work on Chrome Android. It does not work for the Android WebView yet and there is no permission/security checks yet. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257113

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Total comments: 14

Patch Set 3 : Michael's comments #

Patch Set 4 : make presubmit happy #

Patch Set 5 : add screen_orientation_values_java target to all_webview #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -62 lines) Patch
M android_webview/Android.mk View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/all_webview.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_dispatcher_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_provider_android.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_provider_android.cc View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M content/content.gyp View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/content_jni.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java View 1 1 chunk +2 lines, -1 line 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java View 3 chunks +4 lines, -57 lines 0 comments Download
A content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java View 1 2 1 chunk +172 lines, -0 lines 0 comments Download
A content/public/common/assert_matching_enums.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A content/public/common/screen_orientation_values.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A content/public/common/screen_orientation_values_list.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A content/public/test/android/javatests/src/org/chromium/content/browser/test/util/MockOrientationObserver.java View 1 chunk +22 lines, -0 lines 0 comments Download
A content/public/test/android/javatests/src/org/chromium/content/browser/test/util/OrientationChangeObserverCriteria.java View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
mlamouri (slow - plz ping)
6 years, 9 months ago (2014-03-11 23:15:59 UTC) #1
mlamouri (slow - plz ping)
jochen@, let me know if you want someone else to review the java files.
6 years, 9 months ago (2014-03-11 23:18:20 UTC) #2
jochen (gone - plz use gerrit)
yes, please have somebody more familiar with android review the java bits c++ bits lgtm ...
6 years, 9 months ago (2014-03-12 12:42:27 UTC) #3
mlamouri (slow - plz ping)
https://codereview.chromium.org/196193002/diff/1/content/browser/screen_orientation/screen_orientation_provider_android.h File content/browser/screen_orientation/screen_orientation_provider_android.h (right): https://codereview.chromium.org/196193002/diff/1/content/browser/screen_orientation/screen_orientation_provider_android.h#newcode24 content/browser/screen_orientation/screen_orientation_provider_android.h:24: virtual ~ScreenOrientationProviderAndroid() {} On 2014/03/12 12:42:27, jochen wrote: > ...
6 years, 9 months ago (2014-03-12 14:16:36 UTC) #4
mlamouri (slow - plz ping)
Michael, can you have a look at the Java bits? Thanks :)
6 years, 9 months ago (2014-03-12 14:17:48 UTC) #5
Michael van Ouwerkerk
https://codereview.chromium.org/196193002/diff/20001/content/browser/screen_orientation/screen_orientation_provider_android.cc File content/browser/screen_orientation/screen_orientation_provider_android.cc (right): https://codereview.chromium.org/196193002/diff/20001/content/browser/screen_orientation/screen_orientation_provider_android.cc#newcode6 content/browser/screen_orientation/screen_orientation_provider_android.cc:6: #include "content/browser/screen_orientation/screen_orientation_provider_android.h" This line should sit alone above the ...
6 years, 9 months ago (2014-03-12 14:42:54 UTC) #6
mlamouri (slow - plz ping)
PTAL. Also, let me know if you want someone else to review the non-Java changes ...
6 years, 9 months ago (2014-03-12 20:19:55 UTC) #7
Michael van Ouwerkerk
Thanks for the fixes, lgtm.
6 years, 9 months ago (2014-03-13 10:22:54 UTC) #8
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-13 10:27:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/40001
6 years, 9 months ago (2014-03-13 10:27:24 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 10:51:14 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=55141
6 years, 9 months ago (2014-03-13 10:51:16 UTC) #12
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-13 11:12:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/60001
6 years, 9 months ago (2014-03-13 11:13:17 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 12:48:18 UTC) #15
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=55077
6 years, 9 months ago (2014-03-13 12:48:19 UTC) #16
mlamouri (slow - plz ping)
benm@chromium.org: Please review changes in android_webview/all_webview.gyp
6 years, 9 months ago (2014-03-13 14:17:09 UTC) #17
benm (inactive)
On 2014/03/13 14:17:09, Mounir Lamouri wrote: > benm@chromium.org: Please review changes in > android_webview/all_webview.gyp a_w/ ...
6 years, 9 months ago (2014-03-13 17:12:18 UTC) #18
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-13 17:16:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/50020
6 years, 9 months ago (2014-03-13 17:16:57 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 19:16:13 UTC) #21
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=55173
6 years, 9 months ago (2014-03-13 19:16:13 UTC) #22
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-14 10:52:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/90001
6 years, 9 months ago (2014-03-14 10:52:41 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 10:54:01 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 10:54:02 UTC) #26
benm (inactive)
still lgtm https://codereview.chromium.org/196193002/diff/90001/android_webview/all_webview.gyp File android_webview/all_webview.gyp (right): https://codereview.chromium.org/196193002/diff/90001/android_webview/all_webview.gyp#newcode26 android_webview/all_webview.gyp:26: '../content/content.gyp:screen_orientation_values_java', nit: alphabetical order
6 years, 9 months ago (2014-03-14 10:54:46 UTC) #27
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-14 10:59:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/110001
6 years, 9 months ago (2014-03-14 11:00:08 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 12:18:13 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-14 12:18:14 UTC) #31
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-14 12:19:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/110001
6 years, 9 months ago (2014-03-14 12:19:08 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 13:40:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-14 13:40:59 UTC) #35
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-14 13:52:59 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/196193002/110001
6 years, 9 months ago (2014-03-14 13:53:05 UTC) #37
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 15:13:30 UTC) #38
Message was sent while issue was closed.
Change committed as 257113

Powered by Google App Engine
This is Rietveld 408576698