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

Issue 179783003: Create ScreenOrientationListener and make it SDK-dependant. (Closed)

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

Description

Create ScreenOrientationListener and make it SDK-dependant. This CL is adding a ScreenOrientationListener abstract class with one implementation that is based on the current mechanism used for listening to screen orientation changes. The other implementation is based on DisplayListener but this API is only available from API Level 17. BUG=342714, 346696 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255750

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : review comments #

Total comments: 12

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : 500 response #

Total comments: 10

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -37 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 10 chunks +17 lines, -37 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +286 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
mlamouri (slow - plz ping)
6 years, 10 months ago (2014-02-25 15:10:06 UTC) #1
mlamouri (slow - plz ping)
I use a static instead of ScreenOrientationListener but I could also make the interface a ...
6 years, 10 months ago (2014-02-25 15:27:33 UTC) #2
mlamouri (slow - plz ping)
On 2014/02/25 15:27:33, Mounir Lamouri wrote: > I use a static instead of ScreenOrientationListener but ...
6 years, 10 months ago (2014-02-25 16:58:02 UTC) #3
bulach
nice! I have some small comments and suggestions, and most important, I think we can ...
6 years, 9 months ago (2014-02-27 09:51:14 UTC) #4
mlamouri (slow - plz ping)
Note also that I am writing a set of tests for this. It will be ...
6 years, 9 months ago (2014-02-27 15:17:25 UTC) #5
mlamouri (slow - plz ping)
Tim, could you have a look at this cl?
6 years, 9 months ago (2014-02-28 13:33:01 UTC) #6
timvolodine
https://codereview.chromium.org/179783003/diff/40001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java File content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java (right): https://codereview.chromium.org/179783003/diff/40001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java#newcode50 content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java:50: * This method is known to not correctly detects ...
6 years, 9 months ago (2014-02-28 14:46:49 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/179783003/diff/40001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java File content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java (right): https://codereview.chromium.org/179783003/diff/40001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java#newcode50 content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java:50: * This method is known to not correctly detects ...
6 years, 9 months ago (2014-02-28 19:22:34 UTC) #8
mlamouri (slow - plz ping)
FYI, https://codereview.chromium.org/182623003/ implements the return value in ObserverList add/remove methods.
6 years, 9 months ago (2014-03-03 14:41:44 UTC) #9
timvolodine
a few minor comments below: https://codereview.chromium.org/179783003/diff/60001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java File content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java (right): https://codereview.chromium.org/179783003/diff/60001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java#newcode122 content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java:122: protected Context mAppContext = ...
6 years, 9 months ago (2014-03-05 15:24:57 UTC) #10
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/179783003/diff/60001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java File content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java (right): https://codereview.chromium.org/179783003/diff/60001/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java#newcode122 content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java:122: protected Context mAppContext = null; On 2014/03/05 15:24:57, ...
6 years, 9 months ago (2014-03-05 15:53:47 UTC) #11
timvolodine
lgtm lgtm % nits and assuming you will fix the addObserver issue at some point ...
6 years, 9 months ago (2014-03-05 17:44:54 UTC) #12
bulach
good stuff! a few suggestions below, hopefully it'll further clarify the ScreenOrientation implementation. right now ...
6 years, 9 months ago (2014-03-05 19:22:11 UTC) #13
mlamouri (slow - plz ping)
bulach@, this new patch should take into account your comments. PTAL.
6 years, 9 months ago (2014-03-05 20:46:13 UTC) #14
bulach
lgtm, thanks for your patience :) just small nits, feel free to go once addressed: ...
6 years, 9 months ago (2014-03-06 10:31:17 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/179783003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/179783003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3121 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3121: public void onScreenOrientationChanged(int orientation) { On 2014/03/06 10:31:18, bulach ...
6 years, 9 months ago (2014-03-06 13:17:32 UTC) #16
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-06 13:17:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 13:18:11 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 13:29:11 UTC) #19
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=276277
6 years, 9 months ago (2014-03-06 13:29:11 UTC) #20
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-06 13:37:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 13:37:11 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 13:47:25 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 13:47:26 UTC) #24
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-06 14:26:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 14:26:43 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 15:36:34 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276327
6 years, 9 months ago (2014-03-06 15:36:34 UTC) #28
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-06 15:37:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 15:37:36 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 18:44:05 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276381
6 years, 9 months ago (2014-03-06 18:44:06 UTC) #32
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-06 19:55:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 19:56:50 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 21:03:35 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/180001
6 years, 9 months ago (2014-03-06 21:57:58 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 11:04:08 UTC) #37
mlamouri (slow - plz ping)
bulach@, I did some changes in the patch to make it work in Android WebView: ...
6 years, 9 months ago (2014-03-07 13:40:33 UTC) #39
bulach
lgtm, thanks for your patience!
6 years, 9 months ago (2014-03-07 13:42:41 UTC) #40
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-07 13:43:26 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/200001
6 years, 9 months ago (2014-03-07 13:44:06 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 16:25:08 UTC) #43
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=277406
6 years, 9 months ago (2014-03-07 16:25:09 UTC) #44
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 9 months ago (2014-03-07 16:25:43 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/200001
6 years, 9 months ago (2014-03-07 16:26:29 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/200001
6 years, 9 months ago (2014-03-07 20:12:47 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/179783003/200001
6 years, 9 months ago (2014-03-08 10:45:45 UTC) #48
commit-bot: I haz the power
6 years, 9 months ago (2014-03-08 11:28:52 UTC) #49
Message was sent while issue was closed.
Change committed as 255750

Powered by Google App Engine
This is Rietveld 408576698