Upload upstream chromium 76.0.3809.146
[platform/framework/web/chromium-efl.git] / styleguide / styleguide.md
1 # Chromium coding style
2
3 ## Main style guides
4
5   * [Chromium C++ style guide](c++/c++.md)
6     * See also: [C++ Dos and Don'ts](c++/c++-dos-and-donts.md) for Chromium best-practices.
7   * [Chromium Objective-C style guide](objective-c/objective-c.md)
8   * [Java style guide for Android](java/java.md)
9   * [Chromium Python style guide](python/python.md)
10   * [GN style guide](https://gn.googlesource.com/gn/+/master/docs/style_guide.md) for build files.
11     * See also: [Writing GN templates](../build/docs/writing_gn_templates.md) for Chromium best-practices.
12
13 Chromium also uses these languages to a lesser degree:
14
15   * [Kernel C style](https://www.kernel.org/doc/html/latest/process/coding-style.html) for ChromiumOS firmware.
16   * [IDL](https://sites.google.com/a/chromium.org/dev/blink/webidl#TOC-Style)
17   * [Jinja style guide](https://sites.google.com/a/chromium.org/dev/developers/jinja#TOC-Style) for [Jinja](https://sites.google.com/a/chromium.org/dev/developers/jinja) templates.
18
19 Regardless of the language used, please keep code [gender neutral](gender_neutral_code.md).
20
21 ## Web languages (JavaScript, HTML, CSS)
22
23 When working on Web-based UI features, consult the [Web Development Style Guide](web/web.md) for the Chromium conventions used in JS/CSS/HTML files.
24
25 Internal uses of web languages, notably "layout" tests, should preferably follow these style guides, but it is not enforced.