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

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)

Created:
4 years ago by nasko
Modified:
3 years, 11 months ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, nektar+watch_chromium.org, dshwang, eae+blinkwatch, fs, eric.carlson_apple.com, leviw+renderwatch, shans, apavlov+blink_chromium.org, dmazzoni+watch_chromium.org, kinuko+worker_chromium.org, je_julie, Srirama, kouhei+svg_chromium.org, lushnikov+blink_chromium.org, kinuko+watch, rwlbuis, timvolodine, Yoav Weiss, krit, aboxhall, mvanouwerkerk+watch_chromium.org, aboxhall+watch_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, Justin Novosad, hongchan, blink-reviews-dom_chromium.org, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, jchaffraix+rendering, Navid Zolghadr, blink-reviews, gyuyoung2, falken+watch_chromium.org, loading-reviews_chromium.org, pdr+svgwatchlist_chromium.org, blink-worker-reviews_chromium.org, Eric Willigers, kenneth.christiansen, nessy, rjwright, blink-reviews-style_chromium.org, zoltan1, pfeldman+blink_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-layout_chromium.org, sof, caseq+blink_chromium.org, yuzo+watch_chromium.org, Raymond Toy, feature-media-reviews_chromium.org, dmazzoni, dcheng, darktears, Nate Chapin, vcarbune.chromium, michaeln, devtools-reviews_chromium.org, tyoshino+watch_chromium.org, dtapuska+blinkwatch_chromium.org, gavinp+prerender_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-animation_chromium.org, pdr+renderingwatchlist_chromium.org, gasubic, loading-reviews+parser_chromium.org, shimazu+worker_chromium.org, blink-layers+watch_chromium.org, mlamouri+watch-blink_chromium.org, nektarios, f(malita), dtseng+watch_chromium.org, horo+watch_chromium.org, Stephen Chennney, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 'get' prefix for Settings.in generated code. The change is needed to avoid a naming collision after changing from Blink to Chromium naming style. Settings.in is used to automatically generate C++ code and it causes a collision between CamelCased type name and the CamelCase accessor. Therefore we need to prefix the accessor methods with a get prefix to avoid collisions. BUG=582312 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/25eb1046e8317b6cf33fb0d831857e80c29cffcc Cr-Commit-Position: refs/heads/master@{#441547}

Patch Set 1 #

Patch Set 2 : Capitalize the prefix. #

Total comments: 10

Patch Set 3 : Capitalize Set for settings. #

Patch Set 4 : Only get prefix and no capitalization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -312 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/build/scripts/name_utilities.py View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.cpp.tmpl View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageSetValue.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/FontSize.cpp View 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaValues.cpp View 2 3 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp View 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp View 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 8 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionModifier.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventDispatcher.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/NavigatorEvents.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 13 chunks +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Navigator.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Screen.cpp View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMetaElement.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.cpp View 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp View 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/PickerIndicatorElement.cpp View 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ImageQualityController.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 5 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 2 3 7 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp View 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ProgressTracker.cpp View 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/CreateWindow.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/SpatialNavigation.cpp View 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ViewPainter.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.cpp View 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerSettings.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp View 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp View 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp View 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp View 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.cpp View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/Presentation.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 2 3 2 chunks +16 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorRenderingAgent.cpp View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 6 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/KeyboardTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (23 generated)
nasko
Hey Daniel and Lukasz, Can one of you review this CL to pre-land the Settings.in ...
4 years ago (2016-12-20 21:08:53 UTC) #6
Łukasz Anforowicz
Non-OWNER LGTM, but: 1) please double-check the choice to use |upper_first| VS |upper_first_letter| (see my ...
4 years ago (2016-12-21 21:07:36 UTC) #7
dcheng
Do we want to rename Set in this CL as well, for (local) consistency?
4 years ago (2016-12-22 07:09:18 UTC) #8
dcheng
Also, I would have thought that the renamer would skip all of these, since the ...
4 years ago (2016-12-22 07:10:09 UTC) #9
Łukasz Anforowicz
On 2016/12/22 07:09:18, dcheng wrote: > Do we want to rename Set in this CL ...
3 years, 12 months ago (2016-12-28 00:14:25 UTC) #10
nasko
This CL now capitalizes the Set methods too. Please take another look when you have ...
3 years, 11 months ago (2017-01-04 18:18:52 UTC) #12
nasko
And after more discussions and finding that we expose internal settings through IDL to test ...
3 years, 11 months ago (2017-01-04 23:58:18 UTC) #22
haraken
LGTM
3 years, 11 months ago (2017-01-05 00:01:16 UTC) #25
dcheng
lgtm
3 years, 11 months ago (2017-01-05 00:05:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2589143003/80001
3 years, 11 months ago (2017-01-05 00:33:35 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:80001)
3 years, 11 months ago (2017-01-05 01:42:12 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 01:43:55 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/25eb1046e8317b6cf33fb0d831857e80c29cffcc
Cr-Commit-Position: refs/heads/master@{#441547}

Powered by Google App Engine
This is Rietveld 408576698