Chromium Code Reviews

Issue 1222623003: Presentation API: implement .getAvalability() (Blink side). (Closed)

Created:
5 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 5 months ago
Reviewers:
jochen (gone - plz use gerrit), whywhat, Mike West
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Presentation API: implement .getAvalability() (Blink side). This is part of a suite of three CLs: 1. <this> 2. https://codereview.chromium.org/1214083013 3. https://codereview.chromium.org/1220813009 BUG=498435 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198323

Patch Set 1 #

Total comments: 34

Patch Set 2 : review comments #

Patch Set 3 : fix tests #

Unified diffs Side-by-side diffs Stats (+378 lines, -203 lines)
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 chunk +0 lines, -1 line 0 comments
M LayoutTests/presentation/presentation-api.html View 3 chunks +2 lines, -3 lines 0 comments
M LayoutTests/webexposed/global-interface-listing-expected.txt View 2 chunks +6 lines, -5 lines 0 comments
M Source/modules/EventTargetModulesFactory.in View 1 chunk +1 line, -0 lines 0 comments
M Source/modules/modules.gypi View 5 chunks +5 lines, -7 lines 0 comments
D Source/modules/presentation/AvailableChangeEvent.h View 1 chunk +0 lines, -50 lines 0 comments
D Source/modules/presentation/AvailableChangeEvent.cpp View 1 chunk +0 lines, -36 lines 0 comments
D Source/modules/presentation/AvailableChangeEvent.idl View 1 chunk +0 lines, -12 lines 0 comments
D Source/modules/presentation/AvailableChangeEventInit.idl View 1 chunk +0 lines, -9 lines 0 comments
M Source/modules/presentation/DEPS View 1 chunk +1 line, -0 lines 0 comments
M Source/modules/presentation/Presentation.h View 1 chunk +1 line, -12 lines 0 comments
M Source/modules/presentation/Presentation.cpp View 3 chunks +11 lines, -47 lines 0 comments
M Source/modules/presentation/Presentation.idl View 1 chunk +2 lines, -1 line 0 comments
A Source/modules/presentation/PresentationAvailability.h View 1 chunk +65 lines, -0 lines 0 comments
A Source/modules/presentation/PresentationAvailability.cpp View 1 chunk +135 lines, -0 lines 0 comments
A Source/modules/presentation/PresentationAvailability.idl View 1 chunk +15 lines, -0 lines 0 comments
A Source/modules/presentation/PresentationAvailabilityCallback.h View 1 chunk +37 lines, -0 lines 0 comments
A Source/modules/presentation/PresentationAvailabilityCallback.cpp View 1 chunk +34 lines, -0 lines 0 comments
M Source/modules/presentation/PresentationController.h View 4 chunks +6 lines, -4 lines 0 comments
M Source/modules/presentation/PresentationController.cpp View 3 chunks +13 lines, -11 lines 0 comments
A public/platform/modules/presentation/WebPresentationAvailabilityObserver.h View 1 chunk +20 lines, -0 lines 0 comments
M public/platform/modules/presentation/WebPresentationClient.h View 3 chunks +24 lines, -0 lines 0 comments

Messages

Total messages: 20 (7 generated)
mlamouri (slow - plz ping)
avayvod@, PTAL at: - Source/modules/presentation/ - public/platform/modules/presentation/ mkwst@, PTAL at: - Source/modules/EventTargetModulesFactory.in Thanks :)
5 years, 5 months ago (2015-07-02 16:36:22 UTC) #2
whywhat
lgtm % nits and feedback on exposing client from the controller. https://codereview.chromium.org/1222623003/diff/1/Source/modules/presentation/Presentation.cpp File Source/modules/presentation/Presentation.cpp (right): ...
5 years, 5 months ago (2015-07-02 22:32:38 UTC) #3
whywhat
Also, you need to 'rebase' various failing layout tests for navigator.presentation
5 years, 5 months ago (2015-07-02 22:44:02 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/1222623003/diff/1/Source/modules/presentation/Presentation.cpp File Source/modules/presentation/Presentation.cpp (right): https://codereview.chromium.org/1222623003/diff/1/Source/modules/presentation/Presentation.cpp#newcode105 Source/modules/presentation/Presentation.cpp:105: resolver->reject(DOMException::create(InvalidStateError, "The object is no longer attached to the ...
5 years, 5 months ago (2015-07-03 13:58:27 UTC) #5
mlamouri (slow - plz ping)
+jochen@ given that mkwst@ is OOO today. jochen@, can you review: - Source/modules/EventTargetModulesFactory.in
5 years, 5 months ago (2015-07-03 14:13:10 UTC) #7
whywhat
https://codereview.chromium.org/1222623003/diff/1/Source/modules/presentation/PresentationAvailability.cpp File Source/modules/presentation/PresentationAvailability.cpp (right): https://codereview.chromium.org/1222623003/diff/1/Source/modules/presentation/PresentationAvailability.cpp#newcode117 Source/modules/presentation/PresentationAvailability.cpp:117: m_listening = false; On 2015/07/03 at 13:58:26, Mounir Lamouri ...
5 years, 5 months ago (2015-07-03 15:40:47 UTC) #8
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-06 10:34:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222623003/20001
5 years, 5 months ago (2015-07-06 11:22:51 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/61742) (exceeded global retry quota)
5 years, 5 months ago (2015-07-06 12:26:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222623003/40001
5 years, 5 months ago (2015-07-06 14:56:01 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=198323
5 years, 5 months ago (2015-07-06 16:11:48 UTC) #18
mark a. foltz
On 2015/07/06 at 16:11:48, commit-bot wrote: > Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=198323 This change ...
5 years, 5 months ago (2015-07-07 23:47:14 UTC) #19
mlamouri (slow - plz ping)
5 years, 5 months ago (2015-07-07 23:56:04 UTC) #20
Message was sent while issue was closed.
On 2015/07/07 at 23:47:14, mfoltz wrote:
> On 2015/07/06 at 16:11:48, commit-bot wrote:
> > Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198323
> 
> This change broke compatibility with existing code that uses the
availablechange event.  I'm creating a revert so we can try again with a
deprecation path for this event.

What exactly broke?

Note that this Blink feature is behind an experimental flag. We usually do not
keep any kind of backward compatibility for experimental feature. The cost of
doing so would be just too high.

Powered by Google App Engine