|
Stop using macros to paste together names for static_asserts.
This unifies all the static assert macros to be:
- Named STATIC_ASSERT_ENUM
- Use static_cast<int>() instead of other disallowed casts.
- Take the full enum name as an input so that code search and rewriter
tools etc can find the actual thing being done by the code.
This will allow the rewrite_to_chrome_style tool to change blink enum
names and fix these places up too so things compile.
R=thakis@chromium.org
TBR=sievers,raymes
BUG= 584474
Committed: https://crrev.com/365175c67f230c9f34c0be8580d9477daf0faa26
Cr-Commit-Position: refs/heads/master@{#373970}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1120 lines, -1146 lines) |
Patch |
 |
M |
components/printing/renderer/print_web_view_helper.cc
|
View
|
|
1 chunk |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_mac.mm
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/child/appcache/appcache_frontend_impl.cc
|
View
|
|
1 chunk |
+46 lines, -40 lines |
0 comments
|
Download
|
 |
M |
content/child/assert_matching_enums.cc
|
View
|
1
2
3
|
1 chunk |
+34 lines, -37 lines |
0 comments
|
Download
|
 |
M |
content/child/web_url_request_util.cc
|
View
|
|
1 chunk |
+102 lines, -104 lines |
0 comments
|
Download
|
 |
M |
content/public/common/web_preferences.cc
|
View
|
1
2
|
1 chunk |
+26 lines, -40 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
|
2 chunks |
+15 lines, -25 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
3
4
|
4 chunks |
+43 lines, -40 lines |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_impl.cc
|
View
|
1
2
3
4
|
4 chunks |
+17 lines, -25 lines |
0 comments
|
Download
|
 |
M |
pdf/pdfium/pdfium_assert_matching_enums.cc
|
View
|
|
1 chunk |
+197 lines, -198 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_text_input_thunk.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp
|
View
|
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/AssertMatchingEnums.cpp
|
View
|
|
1 chunk |
+590 lines, -591 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/AssociatedURLLoader.cpp
|
View
|
|
1 chunk |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebViewImpl.cpp
|
View
|
|
1 chunk |
+11 lines, -10 lines |
0 comments
|
Download
|
Total messages: 28 (14 generated)
|