Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Issue 2682643002: [ScreenOrientation] Hide ScreenOrientationProvider inside WebContentsImpl. (Closed)

Created:
3 years, 10 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, kalyank, mlamouri+watch-screen-orientation_chromium.org, nasko+codewatch_chromium.org, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ScreenOrientation] Hide ScreenOrientationProvider inside WebContentsImpl. This CL hides ScreenOrientationProvider inside WebContentsImpl, because it is not so necessary to be content public. Instead this CL: - Exposes SetScreenOrientationDelegate() on web_contents.h - Exposes OnScreenOrientationChange() on web_contents_impl.h Then it would be quite clear what the touchpoints of ScreenOrientationProvider with the rest of the browser process are, which makes it all the easier to analyze them (and to avoid those touchpoints growing larger as we try to eliminate them). BUG=678545 TEST=content_unittests [email protected] Review-Url: https://codereview.chromium.org/2682643002 Cr-Commit-Position: refs/heads/master@{#449288} Committed: https://chromium.googlesource.com/chromium/src/+/552e9de9f523cb755187ab7c3a288f25bee4df8b

Patch Set 1 #

Patch Set 2 : Fix android bots #

Patch Set 3 : Rebase only #

Total comments: 2

Patch Set 4 : screen_orientation_provider_for_testing() --> GetScreenOrientationProviderForTesting() #

Patch Set 5 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -349 lines) Patch
M ash/content/screen_orientation_delegate_chromeos.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_delegate_android.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_delegate_win.cc View 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/screen_orientation/screen_orientation_provider.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + content/browser/screen_orientation/screen_orientation_provider.cc View 6 chunks +16 lines, -16 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_provider_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 4 chunks +9 lines, -4 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
D content/public/browser/screen_orientation_provider.h View 1 chunk +0 lines, -85 lines 0 comments Download
D content/public/browser/screen_orientation_provider.cc View 1 chunk +0 lines, -222 lines 0 comments Download
M content/public/browser/web_contents.h View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
leonhsl(Using Gerrit)
This CL comes from Colin's suggestions at https://codereview.chromium.org/2649823002/#msg19, PTAL, Thanks. As this CL depends on ...
3 years, 10 months ago (2017-02-07 09:06:59 UTC) #2
blundell
I'll be OOO until Feb 20, but no need to block this CL on me. ...
3 years, 10 months ago (2017-02-07 16:03:16 UTC) #9
leonhsl(Using Gerrit)
+kinuko@ and rockot@, would you please also take an overall review at this? Thanks.
3 years, 10 months ago (2017-02-08 03:12:07 UTC) #13
mlamouri (slow - plz ping)
lgtm
3 years, 10 months ago (2017-02-08 17:37:33 UTC) #14
kinuko
lgtm https://codereview.chromium.org/2682643002/diff/40001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/2682643002/diff/40001/content/browser/web_contents/web_contents_impl.h#newcode214 content/browser/web_contents/web_contents_impl.h:214: ScreenOrientationProvider* screen_orientation_provider_for_testing() const { This name sounds like ...
3 years, 10 months ago (2017-02-09 05:57:38 UTC) #15
leonhsl(Using Gerrit)
Thanks all for review! Let me TBR jamescook@ for the trivial change of ash/content/screen_orientation_delegate_chromeos.cc, will ...
3 years, 10 months ago (2017-02-09 08:32:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2682643002/60001
3 years, 10 months ago (2017-02-09 08:33:39 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/229053)
3 years, 10 months ago (2017-02-09 10:13:00 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2682643002/60001
3 years, 10 months ago (2017-02-09 10:17:24 UTC) #25
commit-bot: I haz the power
Failed to apply patch for content/browser/android/content_view_core_impl.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-09 10:53:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2682643002/80001
3 years, 10 months ago (2017-02-09 13:26:42 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/552e9de9f523cb755187ab7c3a288f25bee4df8b
3 years, 10 months ago (2017-02-09 14:38:21 UTC) #33
James Cook
3 years, 10 months ago (2017-02-09 15:19:07 UTC) #34
Message was sent while issue was closed.
ash lgtm

Powered by Google App Engine
This is Rietveld 408576698