Skip to content

Coding Style of XWalk for Android

sqliu edited this page Sep 2, 2013 · 11 revisions

General Coding Style

In genral, we follow the Chromium coding style: http://www.chromium.org/developers/coding-style, and there are some basic rules:

  • Never use TAB, use spaces instead of TAB
  • Do not leave spaces and the end of line

Coding Style of C++

For C++ Coding style, we basically follow Google C++ Style Guide:

Code Style of Java

For Java Code, we follow the Android Open Source style guide

Code Style of Python

Python code should follow PEP-8, except that Chromium uses two-space indentation instead of four-space indentation, and it uses MixedCase for method names and function names instead of lower_case_with_underscores. PEP-8 guide:

Clone this wiki locally