DescriptionRename request() methods in blink namespace to getRequest().
The rename is needed to avoid a naming collision after changing from
Blink to Chromium naming style. Right now we have a |Request| type and
a |request| method (differing only by case of the first character);
after a naive rename by the rewrite_to_chrome_style tool we would end up
with |Request| being the name of both the type and the 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().
Note that this CL doesn't change *all* instances of "request()"
substring. In particular - we avoid changes that would introduce
setGetRequest identifiers because of https://crbug.com/673039.
BUG=582312
TBR=sky@chromium.org, melandory@chromium.org, rdevlin.cronin@chromium.org, nasko@chromium.org
Committed: https://crrev.com/8f284ba52e557dce90a78e61b9e974428277ee61
Cr-Commit-Position: refs/heads/master@{#439647}
Patch Set 1 : s/ \brequest\b() / getRequest() / #Patch Set 2 : IDL fix = setGetRequest and hasGetRequest... :-/ #Patch Set 3 : Revert changes that would require IDL tweaks. #Patch Set 4 : Revert javascript changes. Oops. #Patch Set 5 : Fix up things above //content layer. #Patch Set 6 : Rebasing... #Patch Set 7 : Fixing a mistake I've made in USBDevice.cpp #
Total comments: 5
Messages
Total messages: 44 (26 generated)
|