Add a corresponding .h file for atom_main.cc.

It's required if we want to include Chromium headers before C headers
and do not break cpplint rules in the meanwhile.
This commit is contained in:
Cheng Zhao 2013-11-05 13:12:13 +08:00
parent dc1a8b644a
commit 64b2d0da36
3 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "app/atom_main.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -21,8 +23,6 @@
#include "app/atom_library_main.h" #include "app/atom_library_main.h"
#endif // defined(OS_MACOSX) || defined(OS_LINUX) #endif // defined(OS_MACOSX) || defined(OS_LINUX)
#include "content/public/app/content_main.h"
// Declaration of node::Start. // Declaration of node::Start.
namespace node { namespace node {
int Start(int argc, char *argv[]); int Start(int argc, char *argv[]);

5
app/atom_main.h Normal file
View file

@ -0,0 +1,5 @@
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/app/content_main.h"

View file

@ -4,6 +4,7 @@
'product_name': 'Atom', 'product_name': 'Atom',
'app_sources': [ 'app_sources': [
'app/atom_main.cc', 'app/atom_main.cc',
'app/atom_main.h',
], ],
'bundle_sources': [ 'bundle_sources': [
'browser/mac/atom.icns', 'browser/mac/atom.icns',