Make CEF compliant with Google/Chromium style (issue #473).

- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories.
- Update existing CEF source code to be compliant with the style requirements.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-01-09 23:46:23 +00:00
parent 9cc61f448b
commit 1073577d03
558 changed files with 9002 additions and 10977 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@@ -18,8 +18,7 @@
// STATIC METHODS - Body may be edited by hand.
CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext()
{
CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
@@ -29,8 +28,7 @@ CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext()
return CefV8ContextCToCpp::Wrap(_retval);
}
CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext()
{
CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
@@ -40,8 +38,7 @@ CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext()
return CefV8ContextCToCpp::Wrap(_retval);
}
bool CefV8Context::InContext()
{
bool CefV8Context::InContext() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
@@ -54,8 +51,7 @@ bool CefV8Context::InContext()
// VIRTUAL METHODS - Body may be edited by hand.
CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser()
{
CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser() {
if (CEF_MEMBER_MISSING(struct_, get_browser))
return NULL;
@@ -68,8 +64,7 @@ CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser()
return CefBrowserCToCpp::Wrap(_retval);
}
CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame()
{
CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame() {
if (CEF_MEMBER_MISSING(struct_, get_frame))
return NULL;
@@ -82,8 +77,7 @@ CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame()
return CefFrameCToCpp::Wrap(_retval);
}
CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal()
{
CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal() {
if (CEF_MEMBER_MISSING(struct_, get_global))
return NULL;
@@ -96,8 +90,7 @@ CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal()
return CefV8ValueCToCpp::Wrap(_retval);
}
bool CefV8ContextCToCpp::Enter()
{
bool CefV8ContextCToCpp::Enter() {
if (CEF_MEMBER_MISSING(struct_, enter))
return false;
@@ -110,8 +103,7 @@ bool CefV8ContextCToCpp::Enter()
return _retval?true:false;
}
bool CefV8ContextCToCpp::Exit()
{
bool CefV8ContextCToCpp::Exit() {
if (CEF_MEMBER_MISSING(struct_, exit))
return false;
@@ -124,8 +116,7 @@ bool CefV8ContextCToCpp::Exit()
return _retval?true:false;
}
bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that)
{
bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that) {
if (CEF_MEMBER_MISSING(struct_, is_same))
return false;