]> khamidou — GitHub mirrors - electron.git/commitdiff
Move headers to atom/common
authorCheng Zhao <zcbenz@gmail.com>
Fri, 19 Jun 2015 15:11:53 +0000 (23:11 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 19 Jun 2015 15:11:53 +0000 (23:11 +0800)
atom/app/atom_library_main.mm
atom/app/atom_main.cc
atom/common/atom_command_line.cc [moved from atom/app/atom_main_args.cc with 94% similarity]
atom/common/atom_command_line.h [moved from atom/app/atom_main_args.h with 85% similarity]
atom/common/node_bindings.cc
filenames.gypi

index 5cf910b2369a9fd3a7fa956f99df0b33fbe92275..885500beb5d3c580e8b00faa8fe548ef2000b83a 100644 (file)
@@ -4,9 +4,9 @@
 
 #include "atom/app/atom_library_main.h"
 
-#include "atom/app/atom_main_args.h"
 #include "atom/app/atom_main_delegate.h"
 #include "atom/app/node_main.h"
+#include "atom/common/atom_command_line.h"
 #include "base/at_exit.h"
 #include "base/i18n/icu_util.h"
 #include "base/mac/bundle_locations.h"
index 02dc985e30c4a8a7eb33fa89118bb6ced6b73b67..47be348522f1a28e5818381ab637e7338667c551 100644 (file)
@@ -3,7 +3,6 @@
 // found in the LICENSE file.
 
 #include "atom/app/atom_main.h"
-#include "atom/app/atom_main_args.h"
 
 #include <stdlib.h>
 #include <string.h>
@@ -33,6 +32,7 @@
 #endif  // defined(OS_MACOSX)
 
 #include "atom/app/node_main.h"
+#include "atom/common/atom_command_line.h"
 #include "base/i18n/icu_util.h"
 
 #if defined(OS_WIN)
similarity index 94%
rename from atom/app/atom_main_args.cc
rename to atom/common/atom_command_line.cc
index ac1c96c1bcaf659e1b819d8752192ba32f860a17..2ac62385aeaccc7cd7cce840b098f55cd091b2c0 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by the MIT license that can be
 // found in the LICENSE file.
 
-#include "atom/app/atom_main_args.h"
+#include "atom/common/atom_command_line.h"
 
 #include "base/command_line.h"
 #include "node/deps/uv/include/uv.h"
similarity index 85%
rename from atom/app/atom_main_args.h
rename to atom/common/atom_command_line.h
index 5dd42713c65a514b50409713e581f972aa4571d3..7c8840f707515e44f16f587921439eb2cd41a076 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by the MIT license that can be
 // found in the LICENSE file.
 
-#ifndef ATOM_APP_ATOM_MAIN_ARGS_H_
-#define ATOM_APP_ATOM_MAIN_ARGS_H_
+#ifndef ATOM_COMMON_ATOM_COMMAND_LINE_H_
+#define ATOM_COMMON_ATOM_COMMAND_LINE_H_
 
 #include <string>
 #include <vector>
@@ -32,4 +32,4 @@ class AtomCommandLine {
 
 }  // namespace atom
 
-#endif  // ATOM_APP_ATOM_MAIN_ARGS_H_
+#endif  // ATOM_COMMON_ATOM_COMMAND_LINE_H_
index ff1d646c4d349a15fc53995feaf2691621c5bc76..2d96d346d6f6f9e31ab5b14a2c21504ba187de95 100644 (file)
@@ -7,7 +7,7 @@
 #include <string>
 #include <vector>
 
-#include "atom/app/atom_main_args.h"
+#include "atom/common/atom_command_line.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
 #include "base/command_line.h"
 #include "base/base_paths.h"
index 99d37b5d30931150281cf700729974767b976dc6..579386a5fa2b998e6fb96e9ccb180df4b9193ee8 100644 (file)
@@ -57,8 +57,6 @@
     'lib_sources': [
       'atom/app/atom_content_client.cc',
       'atom/app/atom_content_client.h',
-      'atom/app/atom_main_args.cc',
-      'atom/app/atom_main_args.h',
       'atom/app/atom_main_delegate.cc',
       'atom/app/atom_main_delegate.h',
       'atom/app/atom_main_delegate_mac.mm',
       'atom/common/asar/asar_util.h',
       'atom/common/asar/scoped_temporary_file.cc',
       'atom/common/asar/scoped_temporary_file.h',
+      'atom/common/atom_command_line.cc',
+      'atom/common/atom_command_line.h',
       'atom/common/common_message_generator.cc',
       'atom/common/common_message_generator.h',
       'atom/common/crash_reporter/crash_reporter.cc',