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

Issue 213123011: Make DeviceDisplayInfo a Singleton and have ScreenOrientationListener update it. (Closed)

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

Description

Make DeviceDisplayInfo a Singleton and have ScreenOrientationListener update it. This is not the best design. Ideally, we might want to create a new listener specific for Display changes (onConfigurationChange or DisplayListener). It would be created at startup and ScreenOrientationListener would simply listen to it while DeviceDisplayInfo would be updated when a Display change would be detected. BUG=354275

Patch Set 1 #

Messages

Total messages: 8 (0 generated)
mlamouri (slow - plz ping)
aelias@chromium.org: Please review changes in: ui/ benm@chromium.org: Please review changes in: everything else +CC bulach@ ...
6 years, 9 months ago (2014-03-27 11:27:38 UTC) #1
mlamouri (slow - plz ping)
aelias@ and benm@, I forgot to point that this CL need to land for M35. ...
6 years, 8 months ago (2014-03-31 10:05:27 UTC) #2
boliu
Drive by... It's wrong for DeviceDisplayInfo to grab the application context. This makes the assumption ...
6 years, 8 months ago (2014-03-31 15:49:17 UTC) #3
mlamouri (slow - plz ping)
On 2014/03/31 15:49:17, boliu wrote: > Drive by... > > It's wrong for DeviceDisplayInfo to ...
6 years, 8 months ago (2014-03-31 16:25:14 UTC) #4
boliu
On 2014/03/31 16:25:14, Mounir Lamouri wrote: > On 2014/03/31 15:49:17, boliu wrote: > > Drive ...
6 years, 8 months ago (2014-03-31 16:39:30 UTC) #5
mlamouri (slow - plz ping)
On 2014/03/31 16:39:30, boliu wrote: > On 2014/03/31 16:25:14, Mounir Lamouri wrote: > > On ...
6 years, 8 months ago (2014-03-31 19:50:43 UTC) #6
boliu
On 2014/03/31 19:50:43, Mounir Lamouri wrote: > getInstance() takes a Context especially so we could ...
6 years, 8 months ago (2014-03-31 20:01:07 UTC) #7
mlamouri (slow - plz ping)
6 years, 8 months ago (2014-03-31 20:44:11 UTC) #8
Things moved there: https://codereview.chromium.org/219963002/

Closing this CL.

Powered by Google App Engine
This is Rietveld 408576698