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

Issue 156573002: IDL compiler: avoid include for WindowMediaSource.idl (Closed)

Created:
6 years, 10 months ago by Nils Barth (inactive)
Modified:
6 years, 10 months ago
Reviewers:
haraken
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com, kouhei (in TOK), Inactive
Visibility:
Public.

Description

IDL compiler: avoid include for WindowMediaSource.idl WindowMediaSource.idl is a partial interface for Window. Thus normally we should include WindowMediaSource.h. However, this is only constructor attributes, so there's no implementation and no header. Python determines the includes at the dependency resolution stage, just checking the partial interface and if there's an [ImplementedAs]. Perl instead computes the includes at every member, hence b/c there are only constructors it doesn't trigger it here. Now, we don't want to have to parse all member of a partial interface to determine if we need a header! Conveniently, we have an existing extended attribute that says "no header", namely [LegacyImplementedInBaseClass]. There are thus 3 clean solutions to this: 1. Add an empty header, WindowMediaSource.h; thus we can always include the header (unless implemented elsewhere). 2. Add a new extended attribute, [NoHeader], used only here. 3. Use the existing [LegacyImplementInBaseClass]; if we get rid of other cases, can rename to [NoHeader]. I think 1. (always include the header) is cleanest, as it minimizes logic. However, this CL is simplest (it does 3), as it uses existing logic. WDYT? R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166672

Patch Set 1 #

Patch Set 2 : Reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M Source/modules/mediasource/WindowMediaSource.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Nils Barth (inactive)
6 years, 10 months ago (2014-02-06 08:20:43 UTC) #1
Nils Barth (inactive)
BTW, no changes to generated bindings; just prevents Python from including a non-existent header.
6 years, 10 months ago (2014-02-06 08:21:33 UTC) #2
haraken
On 2014/02/06 08:21:33, Nils Barth wrote: > BTW, no changes to generated bindings; > just ...
6 years, 10 months ago (2014-02-06 08:34:04 UTC) #3
Nils Barth (inactive)
On 2014/02/06 08:34:04, haraken wrote: > On 2014/02/06 08:21:33, Nils Barth wrote: > > BTW, ...
6 years, 10 months ago (2014-02-06 08:39:50 UTC) #4
haraken
On 2014/02/06 08:39:50, Nils Barth wrote: > On 2014/02/06 08:34:04, haraken wrote: > > On ...
6 years, 10 months ago (2014-02-06 08:44:00 UTC) #5
Nils Barth (inactive)
+Chris On 2014/02/06 08:44:00, haraken wrote: > - Can we rename [LegacyImplementedInBaseClass] to [NoHeader] once ...
6 years, 10 months ago (2014-02-06 08:50:29 UTC) #6
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 10 months ago (2014-02-06 08:50:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/156573002/30001
6 years, 10 months ago (2014-02-06 08:50:45 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 10:06:32 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=21086
6 years, 10 months ago (2014-02-06 10:06:32 UTC) #10
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 10 months ago (2014-02-07 00:30:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/156573002/30001
6 years, 10 months ago (2014-02-07 00:30:34 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 01:45:41 UTC) #13
Message was sent while issue was closed.
Change committed as 166672

Powered by Google App Engine
This is Rietveld 408576698