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

Issue 408663002: Add the Presentation API module and a single event target (Closed)

Created:
6 years, 5 months ago by whywhat
Modified:
6 years, 3 months ago
CC:
mark a. foltz, Wez, dcheng, Mads Ager (chromium)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Added a module for the Presentation API implementation and a dummy navigator.presentation.onavailablechange IDL. BUG=412331 Intent to implement on blink-dev: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/J0ToSdOQVP8 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181975

Patch Set 1 #

Total comments: 31

Patch Set 2 : #

Patch Set 3 : Made navigator.presentation an event target for onavailablechange (no implementation yet). #

Total comments: 24

Patch Set 4 : Changed Presentation to be ContextLifecycleObserver #

Total comments: 10

Patch Set 5 : Changed presentation() to return a pointer and fixed Oilpan bits #

Patch Set 6 : Removed the property to match the current spec #

Patch Set 7 : Marked the feature as tests only #

Total comments: 12

Patch Set 8 : Rebased the CL, removed redundant checks in tests #

Total comments: 6

Patch Set 9 : Last bits of nits #

Patch Set 10 : Fixed the cached property/window tests and the constructors listings #

Patch Set 11 : Fixed my fix for the layout tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -7 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/presentation/presentation-api.html View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/EventTargetModulesFactory.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
A Source/modules/presentation/NavigatorPresentation.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A Source/modules/presentation/NavigatorPresentation.cpp View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A + Source/modules/presentation/NavigatorPresentation.idl View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
A Source/modules/presentation/Presentation.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A Source/modules/presentation/Presentation.cpp View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A + Source/modules/presentation/Presentation.idl View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (1 generated)
whywhat
This is just a WIP prototype patch uploaded to make sure it's shared and that ...
6 years, 5 months ago (2014-07-19 01:00:19 UTC) #1
Peter Beverloo
Feedback you ask, feedback you get :-). Some overall items about this patch: * You ...
6 years, 5 months ago (2014-07-19 10:16:13 UTC) #2
mark a. foltz
Not a Blink developer so not a lot of direct feedback :-) I am curious ...
6 years, 5 months ago (2014-07-21 18:24:59 UTC) #3
whywhat
https://codereview.chromium.org/408663002/diff/1/Source/modules/presentation/NavigatorPresentation.cpp File Source/modules/presentation/NavigatorPresentation.cpp (right): https://codereview.chromium.org/408663002/diff/1/Source/modules/presentation/NavigatorPresentation.cpp#newcode2 Source/modules/presentation/NavigatorPresentation.cpp:2: * Copyright (C) 2014 Google Inc. On 2014/07/19 10:16:12, ...
6 years, 5 months ago (2014-07-23 00:39:26 UTC) #4
whywhat
On 2014/07/19 10:16:13, Peter Beverloo wrote: > Feedback you ask, feedback you get :-). > ...
6 years, 5 months ago (2014-07-23 00:41:13 UTC) #5
Peter Beverloo
> Can I use experimental? I like running a local build of > Chrome with ...
6 years, 5 months ago (2014-07-25 18:01:18 UTC) #6
whywhat
PTAL Eric, I added you instead of Peter who's on vacation. Could you take over ...
6 years, 4 months ago (2014-08-19 18:07:35 UTC) #7
eseidel
I'm not confident I understand the oilpan bits correctly. But otherwise this lgtm. https://codereview.chromium.org/408663002/diff/60001/Source/modules/presentation/NavigatorPresentation.cpp File ...
6 years, 4 months ago (2014-08-19 18:20:58 UTC) #8
Mads Ager (chromium)
Oilpan bits LGTM
6 years, 4 months ago (2014-08-20 07:14:00 UTC) #9
Mads Ager (chromium)
https://codereview.chromium.org/408663002/diff/60001/Source/modules/presentation/Presentation.h File Source/modules/presentation/Presentation.h (right): https://codereview.chromium.org/408663002/diff/60001/Source/modules/presentation/Presentation.h#newcode18 Source/modules/presentation/Presentation.h:18: DEFINE_EVENT_TARGET_REFCOUNTING(EventTargetWithInlineData); Looking at this again, this doesn't look right. ...
6 years, 4 months ago (2014-08-20 07:27:36 UTC) #10
whywhat
https://codereview.chromium.org/408663002/diff/60001/Source/modules/presentation/NavigatorPresentation.cpp File Source/modules/presentation/NavigatorPresentation.cpp (right): https://codereview.chromium.org/408663002/diff/60001/Source/modules/presentation/NavigatorPresentation.cpp#newcode52 Source/modules/presentation/NavigatorPresentation.cpp:52: return *m_presentation.get(); On 2014/08/19 18:20:58, eseidel wrote: > Won't ...
6 years, 4 months ago (2014-08-20 16:40:42 UTC) #11
whywhat
PTAL
6 years, 3 months ago (2014-09-10 19:45:43 UTC) #12
Peter Beverloo
https://codereview.chromium.org/408663002/diff/120001/LayoutTests/presentation/presentation-api.html File LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/408663002/diff/120001/LayoutTests/presentation/presentation-api.html#newcode22 LayoutTests/presentation/presentation-api.html:22: assert_true(navigator.presentation instanceof EventTarget) I still think we only have ...
6 years, 3 months ago (2014-09-12 12:22:09 UTC) #13
whywhat
https://codereview.chromium.org/408663002/diff/120001/LayoutTests/presentation/presentation-api.html File LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/408663002/diff/120001/LayoutTests/presentation/presentation-api.html#newcode22 LayoutTests/presentation/presentation-api.html:22: assert_true(navigator.presentation instanceof EventTarget) On 2014/09/12 12:22:09, Peter Beverloo wrote: ...
6 years, 3 months ago (2014-09-12 15:01:15 UTC) #14
Peter Beverloo
lgtm https://codereview.chromium.org/408663002/diff/140001/LayoutTests/presentation/presentation-api.html File LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/408663002/diff/140001/LayoutTests/presentation/presentation-api.html#newcode19 LayoutTests/presentation/presentation-api.html:19: assert_true(navigator.presentation instanceof EventTarget) microscopic nit: missing ; https://codereview.chromium.org/408663002/diff/140001/Source/modules/presentation/NavigatorPresentation.cpp ...
6 years, 3 months ago (2014-09-12 15:07:23 UTC) #15
Peter Beverloo
Finally, please add a link to the Intent to Implement in your description.
6 years, 3 months ago (2014-09-12 15:08:26 UTC) #16
whywhat
https://codereview.chromium.org/408663002/diff/140001/LayoutTests/presentation/presentation-api.html File LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/408663002/diff/140001/LayoutTests/presentation/presentation-api.html#newcode19 LayoutTests/presentation/presentation-api.html:19: assert_true(navigator.presentation instanceof EventTarget) On 2014/09/12 15:07:23, Peter Beverloo wrote: ...
6 years, 3 months ago (2014-09-12 15:17:43 UTC) #17
whywhat
On 2014/09/12 15:08:26, Peter Beverloo wrote: > Finally, please add a link to the Intent ...
6 years, 3 months ago (2014-09-12 15:19:53 UTC) #18
Peter Beverloo
On 2014/09/12 15:19:53, whywhat wrote: > On 2014/09/12 15:08:26, Peter Beverloo wrote: > > Finally, ...
6 years, 3 months ago (2014-09-12 15:24:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/408663002/200001
6 years, 3 months ago (2014-09-15 12:42:21 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 12:48:17 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as 181975

Powered by Google App Engine
This is Rietveld 408576698