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

Issue 2677543003: Forward-declare blink::mojom::EngagementLevel (Closed)

Created:
3 years, 10 months ago by Arjan van Leeuwen
Modified:
3 years, 10 months ago
Reviewers:
dominickn, tapted, sof
CC:
chromium-reviews, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward-declare blink::mojom::EngagementLevel Avoid adding an include to Document.h, which is itself included in many places. By not including this generated file we also avoid having to publicly depend on the header generation for any other code that includes Document.h. BUG=688353, 682986

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 3 chunks +6 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Arjan van Leeuwen
This patch forward-declares an enum class instead of including the (generated) header in Document.h, avoiding ...
3 years, 10 months ago (2017-02-03 12:32:22 UTC) #2
dominickn
On 2017/02/03 12:32:22, Arjan van Leeuwen wrote: > This patch forward-declares an enum class instead ...
3 years, 10 months ago (2017-02-03 18:21:08 UTC) #3
sof
core/ owner lgtm. (issue 682986 has restrictive labels, possible&appropriate to open it up a bit?)
3 years, 10 months ago (2017-02-03 18:30:18 UTC) #4
dominickn
On 2017/02/03 18:30:18, sof wrote: > core/ owner lgtm. > > (issue 682986 has restrictive ...
3 years, 10 months ago (2017-02-03 18:34:50 UTC) #5
sof
On 2017/02/03 18:34:50, dominickn wrote: > On 2017/02/03 18:30:18, sof wrote: > > core/ owner ...
3 years, 10 months ago (2017-02-03 18:40:21 UTC) #9
tapted
https://codereview.chromium.org/2677543003/diff/1/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2677543003/diff/1/third_party/WebKit/Source/core/dom/Document.h#newcode74 third_party/WebKit/Source/core/dom/Document.h:74: enum class EngagementLevel; This is implicitly `int` -- see ...
3 years, 10 months ago (2017-02-06 03:29:23 UTC) #13
Arjan van Leeuwen
3 years, 10 months ago (2017-02-06 08:04:32 UTC) #14
On 2017/02/06 03:29:23, tapted wrote:
>
https://codereview.chromium.org/2677543003/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/dom/Document.h (right):
> 
>
https://codereview.chromium.org/2677543003/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/dom/Document.h:74: enum class EngagementLevel;
> This is implicitly `int` -- see "(3)" at
> http://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations -- but the
> mojo header declares it as int32_t
> 
> They're "probably" the same size on the platforms Chrome supports, but I think
> this should be 
> 
> enum class EngagementLevel : int32_t;
> 
> anyway, I'm the current chromium sheriff, and this has become Pri-0. This CL
> needs a rebase and fails presubmits now that clang-format sorts headers for
you,
> so I've made https://codereview.chromium.org/2677003002/ and referenced the CL
> here.

Thanks +tapted, that should fix it.

Powered by Google App Engine
This is Rietveld 408576698