// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_APP_ATOM_LIBRARY_MAIN_
-#define ATOM_APP_ATOM_LIBRARY_MAIN_
+#ifndef ATOM_APP_ATOM_LIBRARY_MAIN_H_
+#define ATOM_APP_ATOM_LIBRARY_MAIN_H_
#include "base/basictypes.h"
}
#endif // OS_MACOSX
-#endif // ATOM_APP_ATOM_LIBRARY_MAIN_
+#endif // ATOM_APP_ATOM_LIBRARY_MAIN_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef ATOM_APP_ATOM_MAIN_H_
+#define ATOM_APP_ATOM_MAIN_H_
+
#include "content/public/app/content_main.h"
+
+#endif // ATOM_APP_ATOM_MAIN_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_APP_ATOM_MAIN_DELEGATE_
-#define ATOM_APP_ATOM_MAIN_DELEGATE_
+#ifndef ATOM_APP_ATOM_MAIN_DELEGATE_H_
+#define ATOM_APP_ATOM_MAIN_DELEGATE_H_
#include "brightray/common/main_delegate.h"
} // namespace atom
-#endif // ATOM_APP_ATOM_MAIN_DELEGATE_
+#endif // ATOM_APP_ATOM_MAIN_DELEGATE_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROWSER_ATOM_API_EVENT_H_
-#define ATOM_BROWSER_ATOM_API_EVENT_H_
+#ifndef ATOM_BROWSER_API_ATOM_API_EVENT_H_
+#define ATOM_BROWSER_API_ATOM_API_EVENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
} // namespace atom
-#endif // ATOM_BROWSER_ATOM_API_EVENT_H_
+#endif // ATOM_BROWSER_API_ATOM_API_EVENT_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_
-#define ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_
+#ifndef ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_H_
+#define ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_H_
#include "base/strings/string16.h"
#include "atom/common/api/atom_bindings.h"
} // namespace atom
-#endif // ATOM_BROWSER_API_ATOM_BINDINGS_
+#endif // ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROWSER_ATOM_BROWSER_CLIENT_
-#define ATOM_BROWSER_ATOM_BROWSER_CLIENT_
+#ifndef ATOM_BROWSER_ATOM_BROWSER_CLIENT_H_
+#define ATOM_BROWSER_ATOM_BROWSER_CLIENT_H_
#include "brightray/browser/browser_client.h"
} // namespace atom
-#endif // ATOM_BROWSER_ATOM_BROWSER_CLIENT_
+#endif // ATOM_BROWSER_ATOM_BROWSER_CLIENT_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_
-#define ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_
+#ifndef ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_H_
+#define ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_H_
#include "brightray/browser/browser_main_parts.h"
} // namespace atom
-#endif // ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_
+#endif // ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
-#define ATOM_BROSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
+#ifndef ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
+#define ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
#include "content/public/browser/javascript_dialog_manager.h"
} // namespace atom
-#endif // ATOM_BROSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
+#endif // ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROSER_BROWSER_OBSERVER_H_
-#define ATOM_BROSER_BROWSER_OBSERVER_H_
+#ifndef ATOM_BROWSER_BROWSER_OBSERVER_H_
+#define ATOM_BROWSER_BROWSER_OBSERVER_H_
#include <string>
} // namespace atom
-#endif // ATOM_BROSER_BROWSER_OBSERVER_H_
+#endif // ATOM_BROWSER_BROWSER_OBSERVER_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROWSER_NET_ATOM_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
-#define ATOM_BROWSER_NET_ATOM_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
+#ifndef ATOM_BROWSER_NET_ATOM_URL_REQUEST_JOB_FACTORY_H_
+#define ATOM_BROWSER_NET_ATOM_URL_REQUEST_JOB_FACTORY_H_
#include <map>
#include <vector>
} // namespace atom
-#endif // ATOM_BROWSER_NET_ATOM_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
+#endif // ATOM_BROWSER_NET_ATOM_URL_REQUEST_JOB_FACTORY_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BROWSER_UI_ACCELERATOR_UTIL_H_
-#define BROWSER_UI_ACCELERATOR_UTIL_H_
+#ifndef ATOM_BROWSER_UI_ACCELERATOR_UTIL_H_
+#define ATOM_BROWSER_UI_ACCELERATOR_UTIL_H_
#include <map>
#include <string>
} // namespace accelerator_util
-#endif // BROWSER_UI_ACCELERATOR_UTIL_H_
+#endif // ATOM_BROWSER_UI_ACCELERATOR_UTIL_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BROWSER_UI_FILE_DIALOG_H_
-#define BROWSER_UI_FILE_DIALOG_H_
+#ifndef ATOM_BROWSER_UI_FILE_DIALOG_H_
+#define ATOM_BROWSER_UI_FILE_DIALOG_H_
#include <string>
#include <vector>
} // namespace file_dialog
-#endif // BROWSER_UI_FILE_DIALOG_H_
+#endif // ATOM_BROWSER_UI_FILE_DIALOG_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BROWSER_UI_MESSAGE_BOX_H_
-#define BROWSER_UI_MESSAGE_BOX_H_
+#ifndef ATOM_BROWSER_UI_MESSAGE_BOX_H_
+#define ATOM_BROWSER_UI_MESSAGE_BOX_H_
#include <string>
#include <vector>
} // namespace atom
-#endif // BROWSER_UI_MESSAGE_BOX_H_
+#endif // ATOM_BROWSER_UI_MESSAGE_BOX_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BROWSER_UI_WIN_MENU_2_H_
-#define BROWSER_UI_WIN_MENU_2_H_
+#ifndef ATOM_BROWSER_UI_WIN_MENU_2_H_
+#define ATOM_BROWSER_UI_WIN_MENU_2_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
} // namespace atom
-#endif // BROWSER_UI_WIN_MENU_2_H_
+#endif // ATOM_BROWSER_UI_WIN_MENU_2_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
-#define BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
+#ifndef ATOM_BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
+#define ATOM_BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
#include <vector>
} // namespace atom
-#endif // BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
+#endif // ATOM_BROWSER_UI_WIN_NATIVE_MENU_WIN_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_BROSER_WINDOW_LIST_OBSERVER_H_
-#define ATOM_BROSER_WINDOW_LIST_OBSERVER_H_
+#ifndef ATOM_BROWSER_WINDOW_LIST_OBSERVER_H_
+#define ATOM_BROWSER_WINDOW_LIST_OBSERVER_H_
namespace atom {
virtual ~WindowListObserver() {}
};
-
} // namespace atom
-#endif // ATOM_BROSER_WINDOW_LIST_OBSERVER_H_
+#endif // ATOM_BROWSER_WINDOW_LIST_OBSERVER_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_COMMON_API_ATOM_BINDINGS_
-#define ATOM_COMMON_API_ATOM_BINDINGS_
+#ifndef ATOM_COMMON_API_ATOM_BINDINGS_H_
+#define ATOM_COMMON_API_ATOM_BINDINGS_H_
#include "base/basictypes.h"
#include "v8/include/v8.h"
} // namespace atom
-#endif // ATOM_COMMON_API_ATOM_BINDINGS_
+#endif // ATOM_COMMON_API_ATOM_BINDINGS_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
-#define COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
+#ifndef ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
+#define ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
#include <string>
} // namespace breakpad
-#endif // COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
+#endif // ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
-#define COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
+#ifndef ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
+#define ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
namespace crash_service {
} // namespace crash_service
-#endif // COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
+#endif // ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_COMMON_NODE_BINDINGS_MAC_
-#define ATOM_COMMON_NODE_BINDINGS_MAC_
+#ifndef ATOM_COMMON_NODE_BINDINGS_MAC_H_
+#define ATOM_COMMON_NODE_BINDINGS_MAC_H_
#include "base/compiler_specific.h"
#include "atom/common/node_bindings.h"
} // namespace atom
-#endif // ATOM_COMMON_NODE_BINDINGS_MAC_
+#endif // ATOM_COMMON_NODE_BINDINGS_MAC_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_COMMON_NODE_BINDINGS_WIN_
-#define ATOM_COMMON_NODE_BINDINGS_WIN_
+#ifndef ATOM_COMMON_NODE_BINDINGS_WIN_H_
+#define ATOM_COMMON_NODE_BINDINGS_WIN_H_
#include "base/compiler_specific.h"
#include "atom/common/node_bindings.h"
} // namespace atom
-#endif // ATOM_COMMON_NODE_BINDINGS_WIN_
+#endif // ATOM_COMMON_NODE_BINDINGS_WIN_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_COMMON_OPTIONS_SWITCHES_
-#define ATOM_COMMON_OPTIONS_SWITCHES_
+#ifndef ATOM_COMMON_OPTIONS_SWITCHES_H_
+#define ATOM_COMMON_OPTIONS_SWITCHES_H_
namespace atom {
} // namespace atom
-#endif // ATOM_COMMON_OPTIONS_SWITCHES_
+#endif // ATOM_COMMON_OPTIONS_SWITCHES_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_COMMON_SCOPED_PERSISTENT_H_
-#define ATOM_COMMON_SCOPED_PERSISTENT_H_
+#ifndef ATOM_COMMON_V8_SCOPED_PERSISTENT_H_
+#define ATOM_COMMON_V8_SCOPED_PERSISTENT_H_
#include "base/logging.h"
#include "base/memory/ref_counted.h"
} // namespace atom
-#endif // ATOM_COMMON_SCOPED_PERSISTENT_H_
+#endif // ATOM_COMMON_V8_SCOPED_PERSISTENT_H_
} // namespace atom
-#endif // ATOM_RENDERER_API_ATOM_BINDINGS_H_
+#endif // ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
-#define ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
+#ifndef ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_
+#define ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_
#include "content/public/renderer/render_view_observer.h"
} // namespace atom
-#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
+#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_
from lib.util import execute
IGNORE_FILES = [
- os.path.join('browser', 'atom_application_mac.h'),
- os.path.join('browser', 'atom_application_delegate_mac.h'),
- os.path.join('browser', 'native_window_mac.h'),
- os.path.join('browser', 'resources', 'win', 'resource.h'),
- os.path.join('browser', 'ui', 'cocoa', 'event_processing_window.h'),
- os.path.join('browser', 'ui', 'cocoa', 'atom_menu_controller.h'),
- os.path.join('browser', 'ui', 'cocoa', 'nsalert_synchronous_sheet.h'),
- os.path.join('browser', 'ui', 'gtk', 'gtk_custom_menu.cc'),
- os.path.join('browser', 'ui', 'gtk', 'gtk_custom_menu_item.cc'),
- os.path.join('common', 'api', 'api_messages.cc'),
- os.path.join('common', 'api', 'api_messages.h'),
- os.path.join('common', 'atom_version.h'),
- os.path.join('common', 'swap_or_assign.h'),
+ os.path.join('atom', 'browser', 'atom_application_mac.h'),
+ os.path.join('atom', 'browser', 'atom_application_delegate_mac.h'),
+ os.path.join('atom', 'browser', 'native_window_mac.h'),
+ os.path.join('atom', 'browser', 'resources', 'win', 'resource.h'),
+ os.path.join('atom', 'browser', 'ui', 'cocoa', 'event_processing_window.h'),
+ os.path.join('atom', 'browser', 'ui', 'cocoa', 'atom_menu_controller.h'),
+ os.path.join('atom', 'browser', 'ui', 'gtk', 'gtk_custom_menu.cc'),
+ os.path.join('atom', 'browser', 'ui', 'gtk', 'gtk_custom_menu_item.cc'),
+ os.path.join('atom', 'common', 'api', 'api_messages.cc'),
+ os.path.join('atom', 'common', 'api', 'api_messages.h'),
+ os.path.join('atom', 'common', 'api', 'atom_extensions.h'),
+ os.path.join('atom', 'common', 'atom_version.h'),
+ os.path.join('atom', 'common', 'swap_or_assign.h'),
]
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
def list_files(directories, filters):
matches = []
for directory in directories:
- for root, _, filenames, in os.walk(directory):
+ for root, _, filenames, in os.walk(os.path.join('atom', directory)):
for f in filters:
for filename in fnmatch.filter(filenames, f):
matches.append(os.path.join(root, filename))
def call_cpplint(files):
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
- rules = '--filter=-build/header_guard,-build/include_what_you_use'
+ rules = '--filter=-build/include_what_you_use'
execute([sys.executable, cpplint, rules] + files)