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

Issue 2751513007: [Device Service] Eliminate content::ScreenOrientationObserver. (Closed)

Created:
3 years, 9 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mlamouri+watch-content_chromium.org, mlamouri+watch-screen-orientation_chromium.org, mlamouri+watch-blink_chromium.org, oilpan-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Device Service] Eliminate content::ScreenOrientationObserver. This CL lets Blink talk directly with Device Service to consume the mojo interface device.mojom.ScreenOrientationListener, then removes content::ScreenOrientationObserver completely. BUG=678545 Review-Url: https://codereview.chromium.org/2751513007 Cr-Commit-Position: refs/heads/master@{#457713} Committed: https://chromium.googlesource.com/chromium/src/+/b7d0a0d196d6b45cb3c4acad994ce98ec05cb044

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use DCHECK(!m_listener) in destructor #

Total comments: 4

Messages

Total messages: 45 (28 generated)
leonhsl(Using Gerrit)
Hi, Colin, Mounir, PTAL, Thanks! https://codereview.chromium.org/2751513007/diff/40001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp (right): https://codereview.chromium.org/2751513007/diff/40001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp#newcode31 third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp:31: DCHECK(!m_listener); This is a ...
3 years, 9 months ago (2017-03-15 10:34:39 UTC) #14
blundell
lgtm with question This is great to see, thanks! https://codereview.chromium.org/2751513007/diff/40001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp (right): https://codereview.chromium.org/2751513007/diff/40001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp#newcode22 third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp:22: ...
3 years, 9 months ago (2017-03-16 10:25:54 UTC) #17
leonhsl(Using Gerrit)
Hi, Colin, Thanks a lot for kindly review! Uploaded ps#2, PTAnL. https://codereview.chromium.org/2751513007/diff/40001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp (right): ...
3 years, 9 months ago (2017-03-16 10:43:51 UTC) #20
blundell
still lgtm, thanks
3 years, 9 months ago (2017-03-16 10:47:52 UTC) #21
leonhsl(Using Gerrit)
Hi, Mounir, as you own almost all files of this CL, definitely PTAL or RS ...
3 years, 9 months ago (2017-03-16 10:48:49 UTC) #22
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h (right): https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h#newcode23 third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h:23: : public GarbageCollectedFinalized<ScreenOrientationDispatcher>, Is it worth making the ...
3 years, 9 months ago (2017-03-16 12:11:47 UTC) #23
leonhsl(Using Gerrit)
Thank you Mounir! https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h (right): https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h#newcode23 third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h:23: : public GarbageCollectedFinalized<ScreenOrientationDispatcher>, On 2017/03/16 12:11:47, ...
3 years, 9 months ago (2017-03-17 03:01:12 UTC) #26
leonhsl(Using Gerrit)
+kinuko@, would you PTAL for OWNER review of content/renderer/BUILD.gn content/renderer/renderer_blink_platform_impl.cc third_party/WebKit/public/platform/WebPlatformEventType.h Thanks!
3 years, 9 months ago (2017-03-17 03:12:42 UTC) #28
kinuko
The content and public changes look good, I do have one question though. https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h File ...
3 years, 9 months ago (2017-03-17 04:38:10 UTC) #29
leonhsl(Using Gerrit)
Hi, kinuko@, Thanks for reminding about DEFINE_STATIC_LOCAL. Uploaded ps#3, PTAnL. https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h File third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h (right): https://codereview.chromium.org/2751513007/diff/60001/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.h#newcode23 ...
3 years, 9 months ago (2017-03-17 06:21:38 UTC) #32
leonhsl(Using Gerrit)
Seems trybots complain that ScreenOrientationDispatcher requires finalization,, so now we're in a dilemma: DEFINE_STATIC_LOCAL does ...
3 years, 9 months ago (2017-03-17 06:37:45 UTC) #35
kinuko
I see, we have a field that needs finalization and there's an external reason that ...
3 years, 9 months ago (2017-03-17 07:26:29 UTC) #36
sof
On 2017/03/17 07:26:29, kinuko wrote: > I see, we have a field that needs finalization ...
3 years, 9 months ago (2017-03-17 07:38:39 UTC) #37
leonhsl(Using Gerrit)
OK now I suppose ps#2 makes everyone happy :) Let me delete ps#3 and send ...
3 years, 9 months ago (2017-03-17 08:05:48 UTC) #38
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/2751513007/60001
3 years, 9 months ago (2017-03-17 08:07:23 UTC) #41
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://chromium.googlesource.com/chromium/src/+/b7d0a0d196d6b45cb3c4acad994ce98ec05cb044
3 years, 9 months ago (2017-03-17 08:12:43 UTC) #44
haraken
3 years, 9 months ago (2017-03-17 10:06:42 UTC) #45
Message was sent while issue was closed.
PS2 LGTM

Powered by Google App Engine
This is Rietveld 408576698