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

Issue 546453004: Centralize ScreenOrientationProvider logic, add platform delegates (Closed)

Created:
6 years, 3 months ago by jonross
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@screen_orientation_public_impl_split
Project:
chromium
Visibility:
Public.

Description

ScreenOrientationProvider coverts the platform agnositc logic around locking/unlocking and notifying the dispatcher of success. A ScreenOrientationDelegate has been added to handle platform specific implementations. Such as actual locking/unlocking, as well as if the actions are supported. BUG=396760 Committed: https://crrev.com/369802998188398963403e612b2a3cb594e52d07 Cr-Commit-Position: refs/heads/master@{#298719}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Fix Android compile #

Patch Set 5 : Scoped_ptr #

Patch Set 6 : Android Factory #

Patch Set 7 : Switch to a delegate #

Patch Set 8 : Remove Factory #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -338 lines) Patch
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_delegate_android.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_delegate_android.cc View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/screen_orientation/screen_orientation_message_filter_android.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
D content/browser/screen_orientation/screen_orientation_provider_android.h View 1 2 3 4 5 6 1 chunk +0 lines, -80 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_provider_android.cc View 1 2 3 4 5 6 1 chunk +0 lines, -224 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
A content/public/browser/screen_orientation_delegate.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 1 comment Download
M content/public/browser/screen_orientation_provider.h View 1 2 3 4 5 6 7 1 chunk +46 lines, -24 lines 0 comments Download
A content/public/browser/screen_orientation_provider.cc View 1 2 3 4 5 6 7 1 chunk +207 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
jonross
Hi Mounir, In this work in progress change I have pulled the creation of a ...
6 years, 3 months ago (2014-09-04 21:12:17 UTC) #2
mlamouri (slow - plz ping)
I will review this after we discuss the plans in https://codereview.chromium.org/513073002/ so we can solve ...
6 years, 3 months ago (2014-09-08 09:10:38 UTC) #3
jonross
Hi Mounir, As a followup to exposing ScreenOrientationProvider, this change creates a factory so that ...
6 years, 3 months ago (2014-09-16 18:48:27 UTC) #4
mlamouri (slow - plz ping)
I'm not sure that even compiles on Android. You would also need to modify the ...
6 years, 3 months ago (2014-09-16 20:21:04 UTC) #5
jonross
I brought back the #!defined back to fix the Android build. I would be willing ...
6 years, 3 months ago (2014-09-16 21:48:13 UTC) #6
mlamouri (slow - plz ping)
Regarding where to setup the factory for Chromium Android, where do you plan to set ...
6 years, 3 months ago (2014-09-16 22:00:45 UTC) #7
jonross
For CrOS I plan to use ash/shell.h. It is our location for system lifetime objects. ...
6 years, 3 months ago (2014-09-16 22:08:56 UTC) #8
jonross
scoped_ptr added.
6 years, 3 months ago (2014-09-17 14:17:20 UTC) #9
mlamouri (slow - plz ping)
Looks good to me but I'm a bit worried by having an Android-specific code path ...
6 years, 3 months ago (2014-09-20 15:43:25 UTC) #11
jonross
I have created a factory for the Android implementation. All creation now passes through ScreenOrientationProvider ...
6 years, 2 months ago (2014-09-25 14:47:16 UTC) #13
mlamouri (slow - plz ping)
Thanks! :) lgtm
6 years, 2 months ago (2014-09-25 15:47:54 UTC) #14
jochen (gone - plz use gerrit)
it strikes me as strange to have part of the feature implemented inside content and ...
6 years, 2 months ago (2014-09-29 12:48:01 UTC) #15
jonross
The majority of the logic from ScreenOrientationProviderAndroid has now been centralized within ScreenOrientationProvider. This covers ...
6 years, 2 months ago (2014-10-01 17:49:10 UTC) #16
jochen (gone - plz use gerrit)
great! if we'd move the android implementation from content to chrome, we wouldn't need the ...
6 years, 2 months ago (2014-10-02 08:00:53 UTC) #17
mlamouri (slow - plz ping)
On 2014/10/02 08:00:53, jochen wrote: > great! > > if we'd move the android implementation ...
6 years, 2 months ago (2014-10-02 10:37:12 UTC) #18
jochen (gone - plz use gerrit)
On 2014/10/02 at 10:37:12, mlamouri wrote: > On 2014/10/02 08:00:53, jochen wrote: > > great! ...
6 years, 2 months ago (2014-10-02 10:59:27 UTC) #19
jonross
On 2014/10/02 10:59:27, jochen wrote: > On 2014/10/02 at 10:37:12, mlamouri wrote: > > On ...
6 years, 2 months ago (2014-10-02 14:17:19 UTC) #20
jochen (gone - plz use gerrit)
On 2014/10/02 at 14:17:19, jonross wrote: > On 2014/10/02 10:59:27, jochen wrote: > > On ...
6 years, 2 months ago (2014-10-06 07:19:11 UTC) #21
jonross
Sorry, I misinterpreted what your idea was. I hadn't thought of simply making the delegate ...
6 years, 2 months ago (2014-10-07 21:41:09 UTC) #22
mlamouri (slow - plz ping)
still lgtm https://codereview.chromium.org/546453004/diff/160001/content/public/browser/screen_orientation_delegate.h File content/public/browser/screen_orientation_delegate.h (right): https://codereview.chromium.org/546453004/diff/160001/content/public/browser/screen_orientation_delegate.h#newcode23 content/public/browser/screen_orientation_delegate.h:23: // Returns true if the tab must ...
6 years, 2 months ago (2014-10-08 09:13:18 UTC) #23
jochen (gone - plz use gerrit)
lgtm, thanks
6 years, 2 months ago (2014-10-08 15:00:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/546453004/160001
6 years, 2 months ago (2014-10-08 15:03:13 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:160001) as 6b8352af31e3c90a39ad5d36ab41cc1bc1d0f7e3
6 years, 2 months ago (2014-10-08 15:55:24 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-10-08 15:56:11 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/369802998188398963403e612b2a3cb594e52d07
Cr-Commit-Position: refs/heads/master@{#298719}

Powered by Google App Engine
This is Rietveld 408576698