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

Issue 2803363002: Rename caretDisplayItemClient() to getCaretDisplayItemClient(). (Closed)

Created:
3 years, 8 months ago by Łukasz Anforowicz
Modified:
3 years, 8 months ago
Reviewers:
yosin_UTC9, dcheng
CC:
chromium-reviews, blink-reviews, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename caretDisplayItemClient() to getCaretDisplayItemClient(). The rename is needed to avoid a naming collision after changing from Blink to Chromium naming style. Right now we have a |CaretDisplayItemClient| type and a |caretDisplayItemClient| accessor method in the CaretDisplayItemClientTest class (differing by case of the first character); after a naive rename by the rewrite_to_chrome_style tool we would end up with |CaretDisplayItemClient| being the name of both the type and the accessor method (with both living in the same namespace). Prepending a "get" prefix to the name of the accessor method is the workaround that fits into the guidance on the recommended post-Blink-to-Chromium-rename style suggested by esprehn@ in https://crbug.com/582312#c17: - Getters favor not using "Get", ex. FirstChild() - Unless the type name conflicts, in which case you can either rename the type if it's easy and makes sense, or add "Get", ex. GetContext(). BUG=582312 TBR=yosin@chromium.org Review-Url: https://codereview.chromium.org/2803363002 Cr-Commit-Position: refs/heads/master@{#463051} Committed: https://chromium.googlesource.com/chromium/src/+/00daa6ffb9302d37c20324ab4f36485969b63a5a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -14 lines) Patch
M third_party/WebKit/Source/core/editing/CaretDisplayItemClientTest.cpp View 10 chunks +18 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Łukasz Anforowicz
yosin@, FYI - I plan to TBR this CL, because: 1. It is quite a ...
3 years, 8 months ago (2017-04-07 22:00:24 UTC) #3
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/2803363002/1
3 years, 8 months ago (2017-04-07 22:14:39 UTC) #6
dcheng
lgtm
3 years, 8 months ago (2017-04-07 22:17:52 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 23:40:19 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/00daa6ffb9302d37c20324ab4f36...

Powered by Google App Engine
This is Rietveld 408576698