style of enum constants in IDL/JSON extension definitions

56 views
Skip to first unread message

Igor Bukanov

unread,
Jun 2, 2023, 5:23:31 PM6/2/23
to Chromium-dev
Hi!

What is preferable/canonical convention for enum constants that are defined by IDL and JSON files for extension API?

Quick `git grep -C1 enum` in chrome/common/extensions/api gives the following variants:

fooBar
foo_bar
foobar
FooBar
FOO_BAR

Sometime different conventions even mixed in the same JSON file, like in https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/extensions/api/webview_tag.json

But what is the canonical conventions? It seems most of the files uses this camel-case-that-starts-with-small-letter. So is it really fooBar? 

Regards, Igor
Reply all
Reply to author
Forward
0 new messages