From: Cheng Zhao Date: Fri, 19 Jun 2015 15:11:53 +0000 (+0800) Subject: Move headers to atom/common X-Git-Tag: v0.28.3~1^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ef59f4f2431d9eeeed9d29c0634bcf76d3184824;p=electron.git Move headers to atom/common --- diff --git a/atom/app/atom_library_main.mm b/atom/app/atom_library_main.mm index 5cf910b2..885500be 100644 --- a/atom/app/atom_library_main.mm +++ b/atom/app/atom_library_main.mm @@ -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" diff --git a/atom/app/atom_main.cc b/atom/app/atom_main.cc index 02dc985e..47be3485 100644 --- a/atom/app/atom_main.cc +++ b/atom/app/atom_main.cc @@ -3,7 +3,6 @@ // found in the LICENSE file. #include "atom/app/atom_main.h" -#include "atom/app/atom_main_args.h" #include #include @@ -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) diff --git a/atom/app/atom_main_args.cc b/atom/common/atom_command_line.cc similarity index 94% rename from atom/app/atom_main_args.cc rename to atom/common/atom_command_line.cc index ac1c96c1..2ac62385 100644 --- a/atom/app/atom_main_args.cc +++ b/atom/common/atom_command_line.cc @@ -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" diff --git a/atom/app/atom_main_args.h b/atom/common/atom_command_line.h similarity index 85% rename from atom/app/atom_main_args.h rename to atom/common/atom_command_line.h index 5dd42713..7c8840f7 100644 --- a/atom/app/atom_main_args.h +++ b/atom/common/atom_command_line.h @@ -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 #include @@ -32,4 +32,4 @@ class AtomCommandLine { } // namespace atom -#endif // ATOM_APP_ATOM_MAIN_ARGS_H_ +#endif // ATOM_COMMON_ATOM_COMMAND_LINE_H_ diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index ff1d646c..2d96d346 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -7,7 +7,7 @@ #include #include -#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" diff --git a/filenames.gypi b/filenames.gypi index 99d37b5d..579386a5 100644 --- a/filenames.gypi +++ b/filenames.gypi @@ -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', @@ -227,6 +225,8 @@ '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',