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

Issue 832263007: Added plumbing for the availablechange event from Blink to WebPresentationClient. (Closed)

Created:
5 years, 11 months ago by whywhat
Modified:
5 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, imcheng, mark a. foltz
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Added plumbing for the availablechange event from Blink to WebPresentationClient. Chromium CL: https://codereview.chromium.org/839773002 BUG=412331 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189136

Patch Set 1 #

Total comments: 47

Patch Set 2 : Addressed Peter's comments #

Patch Set 3 : Fixed the build #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Changed the event listeners logic a bit. Addressed the comments. #

Total comments: 12

Patch Set 6 : #

Patch Set 7 : presentationController() may return nullptr. Removed DOMWindowProperty/ContextLifecycleObserver. #

Patch Set 8 : Updated global listing test expectations #

Patch Set 9 : Added isAvailableChangeWatched #

Total comments: 8

Patch Set 10 : Fixed Presentation API links #

Total comments: 17

Patch Set 11 : Addressed Mark's nits #

Patch Set 12 : Changed Presentation to DOMWindowProperty #

Patch Set 13 : Added onClientDestroyed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -40 lines) Patch
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 5 chunks +9 lines, -0 lines 0 comments Download
A Source/modules/presentation/AvailableChangeEvent.h View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -0 lines 0 comments Download
A Source/modules/presentation/AvailableChangeEvent.cpp View 1 1 chunk +36 lines, -0 lines 0 comments Download
A Source/modules/presentation/AvailableChangeEvent.idl View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
A Source/modules/presentation/AvailableChangeEventInit.idl View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M Source/modules/presentation/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/presentation/NavigatorPresentation.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -4 lines 0 comments Download
M Source/modules/presentation/NavigatorPresentation.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -17 lines 0 comments Download
M Source/modules/presentation/NavigatorPresentation.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/presentation/Presentation.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +29 lines, -6 lines 0 comments Download
M Source/modules/presentation/Presentation.cpp View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +77 lines, -8 lines 0 comments Download
M Source/modules/presentation/Presentation.idl View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
A Source/modules/presentation/PresentationController.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A Source/modules/presentation/PresentationController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +96 lines, -0 lines 0 comments Download
M Source/modules/presentation/PresentationSession.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
A public/platform/WebPresentationClient.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A public/platform/WebPresentationController.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +28 lines, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
whywhat
Asking for the initial round of review(s)
5 years, 11 months ago (2015-01-07 12:27:38 UTC) #2
Peter Beverloo
Thanks for the patch! I find it to be very low on information about what ...
5 years, 11 months ago (2015-01-07 14:29:09 UTC) #3
whywhat
Re: what I'm trying to do. I'm simply plumbing the API calls to the Mojo ...
5 years, 11 months ago (2015-01-07 16:22:16 UTC) #4
whywhat
+Mark and Derek FYI Note the link to the Chromium CL in the description.
5 years, 11 months ago (2015-01-07 19:45:36 UTC) #5
Peter Beverloo
Thanks for the updates!! https://codereview.chromium.org/832263007/diff/1/Source/modules/presentation/Presentation.cpp File Source/modules/presentation/Presentation.cpp (right): https://codereview.chromium.org/832263007/diff/1/Source/modules/presentation/Presentation.cpp#newcode39 Source/modules/presentation/Presentation.cpp:39: controller->setPresentation(presentation); On 2015/01/07 16:22:16, whywhat ...
5 years, 11 months ago (2015-01-07 19:53:12 UTC) #6
whywhat
https://codereview.chromium.org/832263007/diff/1/Source/modules/presentation/Presentation.cpp File Source/modules/presentation/Presentation.cpp (right): https://codereview.chromium.org/832263007/diff/1/Source/modules/presentation/Presentation.cpp#newcode39 Source/modules/presentation/Presentation.cpp:39: controller->setPresentation(presentation); On 2015/01/07 19:53:11, Peter Beverloo wrote: > On ...
5 years, 11 months ago (2015-01-08 16:05:28 UTC) #7
mark a. foltz
A few drive-by comments; I'm not familiar with Blink style so they may be superfluous. ...
5 years, 11 months ago (2015-01-09 00:35:10 UTC) #9
whywhat
On 2015/01/09 00:35:10, mark a. foltz wrote: > A few drive-by comments; I'm not familiar ...
5 years, 11 months ago (2015-01-22 21:18:08 UTC) #10
whywhat
https://codereview.chromium.org/832263007/diff/40002/Source/modules/presentation/AvailableChangeEvent.h File Source/modules/presentation/AvailableChangeEvent.h (right): https://codereview.chromium.org/832263007/diff/40002/Source/modules/presentation/AvailableChangeEvent.h#newcode25 Source/modules/presentation/AvailableChangeEvent.h:25: static PassRefPtrWillBeRawPtr<AvailableChangeEvent> create(const AtomicString& eventType, bool available) On 2015/01/09 ...
5 years, 11 months ago (2015-01-22 21:18:18 UTC) #11
mlamouri (slow - plz ping)
https://codereview.chromium.org/832263007/diff/40002/Source/modules/presentation/Presentation.h File Source/modules/presentation/Presentation.h (right): https://codereview.chromium.org/832263007/diff/40002/Source/modules/presentation/Presentation.h#newcode56 Source/modules/presentation/Presentation.h:56: PresentationController* presentationController(); Are you sure that this must _never_ ...
5 years, 11 months ago (2015-01-22 23:18:04 UTC) #13
mlamouri (slow - plz ping)
Also, I think that NavigatorPresentation doesn't need to be a DOMWindowProperty, it's already supplementating Navigator ...
5 years, 11 months ago (2015-01-23 18:40:09 UTC) #14
whywhat
Thanks Mounir. I also removed some unnecessary inheritance from the Presentation and NavigatorPresentation classes as ...
5 years, 11 months ago (2015-01-23 19:20:19 UTC) #15
whywhat
+Mike for OWNERS review
5 years, 11 months ago (2015-01-26 10:17:44 UTC) #17
mlamouri (slow - plz ping)
lgtm with the FrameObserver/DOMWindowProperty question resolved. https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/AvailableChangeEvent.cpp File Source/modules/presentation/AvailableChangeEvent.cpp (right): https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/AvailableChangeEvent.cpp#newcode21 Source/modules/presentation/AvailableChangeEvent.cpp:21: , m_available(available) nit: ...
5 years, 11 months ago (2015-01-26 10:24:44 UTC) #19
whywhat
https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/AvailableChangeEvent.cpp File Source/modules/presentation/AvailableChangeEvent.cpp (right): https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/AvailableChangeEvent.cpp#newcode21 Source/modules/presentation/AvailableChangeEvent.cpp:21: , m_available(available) On 2015/01/26 10:24:44, Mounir Lamouri wrote: > ...
5 years, 11 months ago (2015-01-26 11:18:05 UTC) #20
mark a. foltz
lgtm Minor comments mostly around includes/declarations and a couple of requests for clarification. https://codereview.chromium.org/832263007/diff/170001/Source/modules/presentation/NavigatorPresentation.cpp File ...
5 years, 11 months ago (2015-01-26 19:53:39 UTC) #21
whywhat
Dmitry, since you were already CCed on the email and since I forgot to add ...
5 years, 11 months ago (2015-01-26 20:16:18 UTC) #23
whywhat
https://codereview.chromium.org/832263007/diff/170001/Source/modules/presentation/NavigatorPresentation.cpp File Source/modules/presentation/NavigatorPresentation.cpp (right): https://codereview.chromium.org/832263007/diff/170001/Source/modules/presentation/NavigatorPresentation.cpp#newcode8 Source/modules/presentation/NavigatorPresentation.cpp:8: #include "core/dom/Document.h" On 2015/01/26 19:53:38, mark a. foltz wrote: ...
5 years, 11 months ago (2015-01-27 13:51:24 UTC) #24
whywhat
5 years, 11 months ago (2015-01-27 13:53:38 UTC) #26
whywhat
https://codereview.chromium.org/832263007/diff/170001/Source/modules/presentation/PresentationController.cpp File Source/modules/presentation/PresentationController.cpp (right): https://codereview.chromium.org/832263007/diff/170001/Source/modules/presentation/PresentationController.cpp#newcode83 Source/modules/presentation/PresentationController.cpp:83: void PresentationController::willDetachFrameHost() On 2015/01/26 19:53:39, mark a. foltz wrote: ...
5 years, 11 months ago (2015-01-27 14:26:55 UTC) #27
Mike West
(Sorry. I'm way behind the 30m I promised you, Anton) https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/Presentation.h File Source/modules/presentation/Presentation.h (right): https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/Presentation.h#newcode23 ...
5 years, 11 months ago (2015-01-27 17:46:09 UTC) #28
whywhat
https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/Presentation.h File Source/modules/presentation/Presentation.h (right): https://codereview.chromium.org/832263007/diff/150001/Source/modules/presentation/Presentation.h#newcode23 Source/modules/presentation/Presentation.h:23: , public FrameDestructionObserver { On 2015/01/27 17:46:08, Mike West ...
5 years, 11 months ago (2015-01-27 22:06:08 UTC) #29
Mike West
LGTM, thanks.
5 years, 10 months ago (2015-01-28 15:29:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832263007/230001
5 years, 10 months ago (2015-01-28 20:12:19 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 20:16:01 UTC) #33
Message was sent while issue was closed.
Committed patchset #13 (id:230001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189136

Powered by Google App Engine
This is Rietveld 408576698