From 516d46444dc88325b82ae016a9f56d66d247b599 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 08:30:26 +0800 Subject: [PATCH 01/11] Move all sources under atom/. --- atom.gyp | 428 +++++++++--------- {app => atom/app}/atom_library_main.cc | 4 +- {app => atom/app}/atom_library_main.h | 0 {app => atom/app}/atom_main.cc | 10 +- {app => atom/app}/atom_main.h | 0 {app => atom/app}/atom_main_delegate.cc | 6 +- {app => atom/app}/atom_main_delegate.h | 0 {app => atom/app}/atom_main_delegate_mac.mm | 2 +- {browser => atom/browser}/api/atom_api_app.cc | 8 +- {browser => atom/browser}/api/atom_api_app.h | 4 +- .../browser}/api/atom_api_auto_updater.cc | 8 +- .../browser}/api/atom_api_auto_updater.h | 4 +- .../browser}/api/atom_api_browser_ipc.cc | 8 +- .../browser}/api/atom_api_browser_ipc.h | 0 .../browser}/api/atom_api_dialog.cc | 12 +- .../browser}/api/atom_api_dialog.h | 0 .../browser}/api/atom_api_event.cc | 10 +- .../browser}/api/atom_api_event.h | 4 +- .../browser}/api/atom_api_menu.cc | 8 +- {browser => atom/browser}/api/atom_api_menu.h | 2 +- .../browser}/api/atom_api_menu_gtk.cc | 8 +- .../browser}/api/atom_api_menu_gtk.h | 4 +- .../browser}/api/atom_api_menu_mac.h | 4 +- .../browser}/api/atom_api_menu_mac.mm | 8 +- .../browser}/api/atom_api_menu_win.cc | 10 +- .../browser}/api/atom_api_menu_win.h | 2 +- .../browser}/api/atom_api_power_monitor.cc | 4 +- .../browser}/api/atom_api_power_monitor.h | 2 +- .../browser}/api/atom_api_protocol.cc | 14 +- .../browser}/api/atom_api_protocol.h | 0 .../browser}/api/atom_api_window.cc | 8 +- .../browser}/api/atom_api_window.h | 6 +- .../browser}/api/atom_browser_bindings.cc | 8 +- .../browser}/api/atom_browser_bindings.h | 4 +- {browser => atom/browser}/api/lib/app.coffee | 0 .../browser}/api/lib/atom-delegate.coffee | 0 .../browser}/api/lib/auto-updater.coffee | 0 .../browser}/api/lib/browser-window.coffee | 0 .../browser}/api/lib/dialog.coffee | 0 {browser => atom/browser}/api/lib/ipc.coffee | 0 .../browser}/api/lib/menu-item.coffee | 0 {browser => atom/browser}/api/lib/menu.coffee | 0 .../browser}/api/lib/power-monitor.coffee | 0 .../browser}/api/lib/protocol.coffee | 0 .../browser}/atom_application_delegate_mac.h | 0 .../browser}/atom_application_delegate_mac.mm | 6 +- .../browser}/atom_application_mac.h | 0 .../browser}/atom_application_mac.mm | 4 +- .../browser}/atom_browser_client.cc | 12 +- .../browser}/atom_browser_client.h | 0 .../browser}/atom_browser_context.cc | 6 +- .../browser}/atom_browser_context.h | 0 .../browser}/atom_browser_main_parts.cc | 14 +- .../browser}/atom_browser_main_parts.h | 0 .../browser}/atom_browser_main_parts_mac.mm | 6 +- .../atom_javascript_dialog_manager.cc | 2 +- .../browser}/atom_javascript_dialog_manager.h | 0 {browser => atom/browser}/auto_updater.cc | 2 +- {browser => atom/browser}/auto_updater.h | 0 .../browser}/auto_updater_delegate.h | 0 .../browser}/auto_updater_linux.cc | 2 +- {browser => atom/browser}/auto_updater_mac.mm | 4 +- {browser => atom/browser}/auto_updater_win.cc | 2 +- {browser => atom/browser}/browser.cc | 6 +- {browser => atom/browser}/browser.h | 4 +- {browser => atom/browser}/browser_linux.cc | 8 +- {browser => atom/browser}/browser_mac.mm | 4 +- {browser => atom/browser}/browser_observer.h | 0 {browser => atom/browser}/browser_win.cc | 4 +- .../browser}/default_app/default_app.js | 0 .../browser}/default_app/index.html | 0 {browser => atom/browser}/default_app/main.js | 0 .../browser}/default_app/package.json | 0 .../browser}/devtools_delegate.cc | 4 +- {browser => atom/browser}/devtools_delegate.h | 2 +- {browser => atom/browser}/lib/init.coffee | 0 .../browser}/lib/objects-registry.coffee | 0 .../browser}/lib/rpc-server.coffee | 0 {browser => atom/browser}/native_window.cc | 22 +- {browser => atom/browser}/native_window.h | 2 +- .../browser}/native_window_gtk.cc | 8 +- {browser => atom/browser}/native_window_gtk.h | 6 +- {browser => atom/browser}/native_window_mac.h | 2 +- .../browser}/native_window_mac.mm | 8 +- .../browser}/native_window_observer.h | 0 .../browser}/native_window_win.cc | 12 +- {browser => atom/browser}/native_window_win.h | 4 +- .../browser}/net/adapter_request_job.cc | 4 +- .../browser}/net/adapter_request_job.h | 0 .../net/atom_url_request_context_getter.cc | 4 +- .../net/atom_url_request_context_getter.h | 0 .../net/atom_url_request_job_factory.cc | 2 +- .../net/atom_url_request_job_factory.h | 0 .../browser}/net/url_request_string_job.cc | 2 +- .../browser}/net/url_request_string_job.h | 0 .../browser}/resources/mac/Info.plist | 0 .../browser}/resources/mac/atom.icns | Bin .../browser}/resources/win/atom.ico | Bin .../browser}/resources/win/atom.rc | 0 .../browser}/resources/win/resource.h | 0 .../browser}/ui/accelerator_util.cc | 2 +- .../browser}/ui/accelerator_util.h | 0 .../browser}/ui/accelerator_util_gtk.cc | 2 +- .../browser}/ui/accelerator_util_mac.mm | 2 +- .../browser}/ui/accelerator_util_win.cc | 2 +- .../browser}/ui/cocoa/atom_menu_controller.h | 0 .../browser}/ui/cocoa/atom_menu_controller.mm | 2 +- .../ui/cocoa/event_processing_window.h | 0 .../ui/cocoa/event_processing_window.mm | 2 +- {browser => atom/browser}/ui/file_dialog.h | 0 .../browser}/ui/file_dialog_gtk.cc | 6 +- .../browser}/ui/file_dialog_mac.mm | 4 +- .../browser}/ui/file_dialog_win.cc | 4 +- .../browser}/ui/gtk/event_utils.cc | 2 +- .../browser}/ui/gtk/event_utils.h | 0 .../browser}/ui/gtk/gtk_custom_menu.cc | 4 +- .../browser}/ui/gtk/gtk_custom_menu.h | 0 .../browser}/ui/gtk/gtk_custom_menu_item.cc | 4 +- .../browser}/ui/gtk/gtk_custom_menu_item.h | 0 {browser => atom/browser}/ui/gtk/gtk_util.cc | 2 +- {browser => atom/browser}/ui/gtk/gtk_util.h | 0 .../browser}/ui/gtk/gtk_window_util.cc | 2 +- .../browser}/ui/gtk/gtk_window_util.h | 0 {browser => atom/browser}/ui/gtk/menu_gtk.cc | 10 +- {browser => atom/browser}/ui/gtk/menu_gtk.h | 0 {browser => atom/browser}/ui/message_box.h | 0 .../browser}/ui/message_box_gtk.cc | 6 +- .../browser}/ui/message_box_mac.mm | 4 +- .../browser}/ui/message_box_win.cc | 4 +- {browser => atom/browser}/ui/win/menu_2.cc | 2 +- {browser => atom/browser}/ui/win/menu_2.h | 2 +- .../browser}/ui/win/native_menu_win.cc | 4 +- .../browser}/ui/win/native_menu_win.h | 0 {browser => atom/browser}/window_list.cc | 6 +- {browser => atom/browser}/window_list.h | 0 .../browser}/window_list_observer.h | 0 {common => atom/common}/api/api_messages.cc | 12 +- {common => atom/common}/api/api_messages.h | 2 +- .../common}/api/atom_api_clipboard.cc | 6 +- .../common}/api/atom_api_clipboard.h | 0 .../common}/api/atom_api_crash_reporter.cc | 8 +- .../common}/api/atom_api_crash_reporter.h | 0 .../common}/api/atom_api_event_emitter.cc | 8 +- .../common}/api/atom_api_event_emitter.h | 0 .../common}/api/atom_api_id_weak_map.cc | 6 +- .../common}/api/atom_api_id_weak_map.h | 2 +- .../common}/api/atom_api_screen.cc | 6 +- {common => atom/common}/api/atom_api_screen.h | 2 +- {common => atom/common}/api/atom_api_shell.cc | 8 +- {common => atom/common}/api/atom_api_shell.h | 0 .../common}/api/atom_api_v8_util.cc | 6 +- {common => atom/common}/api/atom_bindings.cc | 8 +- {common => atom/common}/api/atom_bindings.h | 0 .../common}/api/atom_extensions.cc | 6 +- {common => atom/common}/api/atom_extensions.h | 0 .../common}/api/lib/callbacks-registry.coffee | 0 .../common}/api/lib/clipboard.coffee | 0 .../common}/api/lib/crash-reporter.coffee | 0 .../common}/api/lib/id-weak-map.coffee | 0 {common => atom/common}/api/lib/screen.coffee | 0 {common => atom/common}/api/lib/shell.coffee | 0 .../common}/api/object_life_monitor.cc | 2 +- .../common}/api/object_life_monitor.h | 2 +- {common => atom/common}/atom_version.h | 0 .../common}/crash_reporter/crash_reporter.cc | 6 +- .../common}/crash_reporter/crash_reporter.h | 0 .../crash_reporter/crash_reporter_linux.cc | 2 +- .../crash_reporter/crash_reporter_linux.h | 4 +- .../crash_reporter/crash_reporter_mac.h | 2 +- .../crash_reporter/crash_reporter_mac.mm | 2 +- .../crash_reporter/crash_reporter_win.cc | 2 +- .../crash_reporter/crash_reporter_win.h | 2 +- .../linux/crash_dump_handler.cc | 2 +- .../crash_reporter/linux/crash_dump_handler.h | 0 .../crash_reporter/win/crash_service.cc | 2 +- .../crash_reporter/win/crash_service.h | 0 .../crash_reporter/win/crash_service_main.cc | 4 +- .../crash_reporter/win/crash_service_main.h | 0 {common => atom/common}/draggable_region.cc | 2 +- {common => atom/common}/draggable_region.h | 0 {common => atom/common}/lib/init.coffee | 0 .../common}/linux/application_info.cc | 2 +- {common => atom/common}/node_bindings.cc | 6 +- {common => atom/common}/node_bindings.h | 0 .../common}/node_bindings_linux.cc | 2 +- {common => atom/common}/node_bindings_linux.h | 2 +- {common => atom/common}/node_bindings_mac.cc | 4 +- {common => atom/common}/node_bindings_mac.h | 2 +- {common => atom/common}/node_bindings_win.cc | 2 +- {common => atom/common}/node_bindings_win.h | 2 +- {common => atom/common}/options_switches.cc | 2 +- {common => atom/common}/options_switches.h | 0 {common => atom/common}/platform_util.h | 0 .../common}/platform_util_linux.cc | 2 +- {common => atom/common}/platform_util_mac.mm | 2 +- {common => atom/common}/platform_util_win.cc | 2 +- .../common}/resources/mac/Info.plist | 0 .../common}/resources/mac/MainMenu.xib | 0 {common => atom/common}/swap_or_assign.h | 0 .../common}/v8/native_type_conversions.h | 8 +- {common => atom/common}/v8/node_common.h | 0 .../common}/v8/scoped_persistent.h | 0 .../common}/v8/v8_value_converter.cc | 2 +- .../common}/v8/v8_value_converter.h | 0 .../renderer}/api/atom_api_renderer_ipc.cc | 8 +- .../renderer}/api/atom_api_renderer_ipc.h | 0 .../renderer}/api/atom_renderer_bindings.cc | 6 +- .../renderer}/api/atom_renderer_bindings.h | 2 +- .../renderer}/api/lib/ipc.coffee | 0 .../renderer}/api/lib/remote.coffee | 0 .../renderer}/atom_render_view_observer.cc | 10 +- .../renderer}/atom_render_view_observer.h | 0 .../renderer}/atom_renderer_client.cc | 12 +- .../renderer}/atom_renderer_client.h | 0 {renderer => atom/renderer}/lib/init.coffee | 0 .../renderer}/lib/override.coffee | 0 .../renderer}/resources/mac/Info.plist | 0 217 files changed, 519 insertions(+), 519 deletions(-) rename {app => atom/app}/atom_library_main.cc (82%) rename {app => atom/app}/atom_library_main.h (100%) rename {app => atom/app}/atom_main.cc (94%) rename {app => atom/app}/atom_main.h (100%) rename {app => atom/app}/atom_main_delegate.cc (95%) rename {app => atom/app}/atom_main_delegate.h (100%) rename {app => atom/app}/atom_main_delegate_mac.mm (97%) rename {browser => atom/browser}/api/atom_api_app.cc (97%) rename {browser => atom/browser}/api/atom_api_app.h (96%) rename {browser => atom/browser}/api/atom_api_auto_updater.cc (93%) rename {browser => atom/browser}/api/atom_api_auto_updater.h (94%) rename {browser => atom/browser}/api/atom_api_browser_ipc.cc (86%) rename {browser => atom/browser}/api/atom_api_browser_ipc.h (100%) rename {browser => atom/browser}/api/atom_api_dialog.cc (93%) rename {browser => atom/browser}/api/atom_api_dialog.h (100%) rename {browser => atom/browser}/api/atom_api_event.cc (91%) rename {browser => atom/browser}/api/atom_api_event.h (94%) rename {browser => atom/browser}/api/atom_api_menu.cc (98%) rename {browser => atom/browser}/api/atom_api_menu.h (98%) rename {browser => atom/browser}/api/atom_api_menu_gtk.cc (89%) rename {browser => atom/browser}/api/atom_api_menu_gtk.h (88%) rename {browser => atom/browser}/api/atom_api_menu_mac.h (89%) rename {browser => atom/browser}/api/atom_api_menu_mac.mm (95%) rename {browser => atom/browser}/api/atom_api_menu_win.cc (83%) rename {browser => atom/browser}/api/atom_api_menu_win.h (93%) rename {browser => atom/browser}/api/atom_api_power_monitor.cc (94%) rename {browser => atom/browser}/api/atom_api_power_monitor.h (95%) rename {browser => atom/browser}/api/atom_api_protocol.cc (97%) rename {browser => atom/browser}/api/atom_api_protocol.h (100%) rename {browser => atom/browser}/api/atom_api_window.cc (99%) rename {browser => atom/browser}/api/atom_api_window.h (97%) rename {browser => atom/browser}/api/atom_browser_bindings.cc (93%) rename {browser => atom/browser}/api/atom_browser_bindings.h (93%) rename {browser => atom/browser}/api/lib/app.coffee (100%) rename {browser => atom/browser}/api/lib/atom-delegate.coffee (100%) rename {browser => atom/browser}/api/lib/auto-updater.coffee (100%) rename {browser => atom/browser}/api/lib/browser-window.coffee (100%) rename {browser => atom/browser}/api/lib/dialog.coffee (100%) rename {browser => atom/browser}/api/lib/ipc.coffee (100%) rename {browser => atom/browser}/api/lib/menu-item.coffee (100%) rename {browser => atom/browser}/api/lib/menu.coffee (100%) rename {browser => atom/browser}/api/lib/power-monitor.coffee (100%) rename {browser => atom/browser}/api/lib/protocol.coffee (100%) rename {browser => atom/browser}/atom_application_delegate_mac.h (100%) rename {browser => atom/browser}/atom_application_delegate_mac.mm (90%) rename {browser => atom/browser}/atom_application_mac.h (100%) rename {browser => atom/browser}/atom_application_mac.mm (93%) rename {browser => atom/browser}/atom_browser_client.cc (93%) rename {browser => atom/browser}/atom_browser_client.h (100%) rename {browser => atom/browser}/atom_browser_context.cc (93%) rename {browser => atom/browser}/atom_browser_context.h (100%) rename {browser => atom/browser}/atom_browser_main_parts.cc (89%) rename {browser => atom/browser}/atom_browser_main_parts.h (100%) rename {browser => atom/browser}/atom_browser_main_parts_mac.mm (90%) rename {browser => atom/browser}/atom_javascript_dialog_manager.cc (94%) rename {browser => atom/browser}/atom_javascript_dialog_manager.h (100%) rename {browser => atom/browser}/auto_updater.cc (91%) rename {browser => atom/browser}/auto_updater.h (100%) rename {browser => atom/browser}/auto_updater_delegate.h (100%) rename {browser => atom/browser}/auto_updater_linux.cc (89%) rename {browser => atom/browser}/auto_updater_mac.mm (97%) rename {browser => atom/browser}/auto_updater_win.cc (89%) rename {browser => atom/browser}/browser.cc (95%) rename {browser => atom/browser}/browser.h (96%) rename {browser => atom/browser}/browser_linux.cc (84%) rename {browser => atom/browser}/browser_mac.mm (95%) rename {browser => atom/browser}/browser_observer.h (100%) rename {browser => atom/browser}/browser_win.cc (96%) rename {browser => atom/browser}/default_app/default_app.js (100%) rename {browser => atom/browser}/default_app/index.html (100%) rename {browser => atom/browser}/default_app/main.js (100%) rename {browser => atom/browser}/default_app/package.json (100%) rename {browser => atom/browser}/devtools_delegate.cc (97%) rename {browser => atom/browser}/devtools_delegate.h (98%) rename {browser => atom/browser}/lib/init.coffee (100%) rename {browser => atom/browser}/lib/objects-registry.coffee (100%) rename {browser => atom/browser}/lib/rpc-server.coffee (100%) rename {browser => atom/browser}/native_window.cc (97%) rename {browser => atom/browser}/native_window.h (99%) rename {browser => atom/browser}/native_window_gtk.cc (98%) rename {browser => atom/browser}/native_window_gtk.h (97%) rename {browser => atom/browser}/native_window_mac.h (98%) rename {browser => atom/browser}/native_window_mac.mm (98%) rename {browser => atom/browser}/native_window_observer.h (100%) rename {browser => atom/browser}/native_window_win.cc (98%) rename {browser => atom/browser}/native_window_win.h (98%) rename {browser => atom/browser}/net/adapter_request_job.cc (97%) rename {browser => atom/browser}/net/adapter_request_job.h (100%) rename {browser => atom/browser}/net/atom_url_request_context_getter.cc (98%) rename {browser => atom/browser}/net/atom_url_request_context_getter.h (100%) rename {browser => atom/browser}/net/atom_url_request_job_factory.cc (98%) rename {browser => atom/browser}/net/atom_url_request_job_factory.h (100%) rename {browser => atom/browser}/net/url_request_string_job.cc (94%) rename {browser => atom/browser}/net/url_request_string_job.h (100%) rename {browser => atom/browser}/resources/mac/Info.plist (100%) rename {browser => atom/browser}/resources/mac/atom.icns (100%) rename {browser => atom/browser}/resources/win/atom.ico (100%) rename {browser => atom/browser}/resources/win/atom.rc (100%) rename {browser => atom/browser}/resources/win/resource.h (100%) rename {browser => atom/browser}/ui/accelerator_util.cc (99%) rename {browser => atom/browser}/ui/accelerator_util.h (100%) rename {browser => atom/browser}/ui/accelerator_util_gtk.cc (93%) rename {browser => atom/browser}/ui/accelerator_util_mac.mm (96%) rename {browser => atom/browser}/ui/accelerator_util_win.cc (87%) rename {browser => atom/browser}/ui/cocoa/atom_menu_controller.h (100%) rename {browser => atom/browser}/ui/cocoa/atom_menu_controller.mm (99%) rename {browser => atom/browser}/ui/cocoa/event_processing_window.h (100%) rename {browser => atom/browser}/ui/cocoa/event_processing_window.mm (98%) rename {browser => atom/browser}/ui/file_dialog.h (100%) rename {browser => atom/browser}/ui/file_dialog_gtk.cc (98%) rename {browser => atom/browser}/ui/file_dialog_mac.mm (98%) rename {browser => atom/browser}/ui/file_dialog_win.cc (99%) rename {browser => atom/browser}/ui/gtk/event_utils.cc (97%) rename {browser => atom/browser}/ui/gtk/event_utils.h (100%) rename {browser => atom/browser}/ui/gtk/gtk_custom_menu.cc (98%) rename {browser => atom/browser}/ui/gtk/gtk_custom_menu.h (100%) rename {browser => atom/browser}/ui/gtk/gtk_custom_menu_item.cc (99%) rename {browser => atom/browser}/ui/gtk/gtk_custom_menu_item.h (100%) rename {browser => atom/browser}/ui/gtk/gtk_util.cc (98%) rename {browser => atom/browser}/ui/gtk/gtk_util.h (100%) rename {browser => atom/browser}/ui/gtk/gtk_window_util.cc (99%) rename {browser => atom/browser}/ui/gtk/gtk_window_util.h (100%) rename {browser => atom/browser}/ui/gtk/menu_gtk.cc (99%) rename {browser => atom/browser}/ui/gtk/menu_gtk.h (100%) rename {browser => atom/browser}/ui/message_box.h (100%) rename {browser => atom/browser}/ui/message_box_gtk.cc (97%) rename {browser => atom/browser}/ui/message_box_mac.mm (98%) rename {browser => atom/browser}/ui/message_box_win.cc (99%) rename {browser => atom/browser}/ui/win/menu_2.cc (97%) rename {browser => atom/browser}/ui/win/menu_2.h (98%) rename {browser => atom/browser}/ui/win/native_menu_win.cc (99%) rename {browser => atom/browser}/ui/win/native_menu_win.h (100%) rename {browser => atom/browser}/window_list.cc (94%) rename {browser => atom/browser}/window_list.h (100%) rename {browser => atom/browser}/window_list_observer.h (100%) rename {common => atom/common}/api/api_messages.cc (73%) rename {common => atom/common}/api/api_messages.h (97%) rename {common => atom/common}/api/atom_api_clipboard.cc (94%) rename {common => atom/common}/api/atom_api_clipboard.h (100%) rename {common => atom/common}/api/atom_api_crash_reporter.cc (82%) rename {common => atom/common}/api/atom_api_crash_reporter.h (100%) rename {common => atom/common}/api/atom_api_event_emitter.cc (91%) rename {common => atom/common}/api/atom_api_event_emitter.h (100%) rename {common => atom/common}/api/atom_api_id_weak_map.cc (96%) rename {common => atom/common}/api/atom_api_id_weak_map.h (96%) rename {common => atom/common}/api/atom_api_screen.cc (94%) rename {common => atom/common}/api/atom_api_screen.h (94%) rename {common => atom/common}/api/atom_api_shell.cc (91%) rename {common => atom/common}/api/atom_api_shell.h (100%) rename {common => atom/common}/api/atom_api_v8_util.cc (92%) rename {common => atom/common}/api/atom_bindings.cc (97%) rename {common => atom/common}/api/atom_bindings.h (100%) rename {common => atom/common}/api/atom_extensions.cc (91%) rename {common => atom/common}/api/atom_extensions.h (100%) rename {common => atom/common}/api/lib/callbacks-registry.coffee (100%) rename {common => atom/common}/api/lib/clipboard.coffee (100%) rename {common => atom/common}/api/lib/crash-reporter.coffee (100%) rename {common => atom/common}/api/lib/id-weak-map.coffee (100%) rename {common => atom/common}/api/lib/screen.coffee (100%) rename {common => atom/common}/api/lib/shell.coffee (100%) rename {common => atom/common}/api/object_life_monitor.cc (95%) rename {common => atom/common}/api/object_life_monitor.h (94%) rename {common => atom/common}/atom_version.h (100%) rename {common => atom/common}/crash_reporter/crash_reporter.cc (91%) rename {common => atom/common}/crash_reporter/crash_reporter.h (100%) rename {common => atom/common}/crash_reporter/crash_reporter_linux.cc (98%) rename {common => atom/common}/crash_reporter/crash_reporter_linux.h (93%) rename {common => atom/common}/crash_reporter/crash_reporter_mac.h (95%) rename {common => atom/common}/crash_reporter/crash_reporter_mac.mm (97%) rename {common => atom/common}/crash_reporter/crash_reporter_win.cc (98%) rename {common => atom/common}/crash_reporter/crash_reporter_win.h (97%) rename {common => atom/common}/crash_reporter/linux/crash_dump_handler.cc (99%) rename {common => atom/common}/crash_reporter/linux/crash_dump_handler.h (100%) rename {common => atom/common}/crash_reporter/win/crash_service.cc (99%) rename {common => atom/common}/crash_reporter/win/crash_service.h (100%) rename {common => atom/common}/crash_reporter/win/crash_service_main.cc (96%) rename {common => atom/common}/crash_reporter/win/crash_service_main.h (100%) rename {common => atom/common}/draggable_region.cc (86%) rename {common => atom/common}/draggable_region.h (100%) rename {common => atom/common}/lib/init.coffee (100%) rename {common => atom/common}/linux/application_info.cc (90%) rename {common => atom/common}/node_bindings.cc (98%) rename {common => atom/common}/node_bindings.h (100%) rename {common => atom/common}/node_bindings_linux.cc (97%) rename {common => atom/common}/node_bindings_linux.h (95%) rename {common => atom/common}/node_bindings_mac.cc (95%) rename {common => atom/common}/node_bindings_mac.h (95%) rename {common => atom/common}/node_bindings_win.cc (97%) rename {common => atom/common}/node_bindings_win.h (93%) rename {common => atom/common}/options_switches.cc (96%) rename {common => atom/common}/options_switches.h (100%) rename {common => atom/common}/platform_util.h (100%) rename {common => atom/common}/platform_util_linux.cc (98%) rename {common => atom/common}/platform_util_mac.mm (99%) rename {common => atom/common}/platform_util_win.cc (99%) rename {common => atom/common}/resources/mac/Info.plist (100%) rename {common => atom/common}/resources/mac/MainMenu.xib (100%) rename {common => atom/common}/swap_or_assign.h (100%) rename {common => atom/common}/v8/native_type_conversions.h (98%) rename {common => atom/common}/v8/node_common.h (100%) rename {common => atom/common}/v8/scoped_persistent.h (100%) rename {common => atom/common}/v8/v8_value_converter.cc (99%) rename {common => atom/common}/v8/v8_value_converter.h (100%) rename {renderer => atom/renderer}/api/atom_api_renderer_ipc.cc (92%) rename {renderer => atom/renderer}/api/atom_api_renderer_ipc.h (100%) rename {renderer => atom/renderer}/api/atom_renderer_bindings.cc (93%) rename {renderer => atom/renderer}/api/atom_renderer_bindings.h (95%) rename {renderer => atom/renderer}/api/lib/ipc.coffee (100%) rename {renderer => atom/renderer}/api/lib/remote.coffee (100%) rename {renderer => atom/renderer}/atom_render_view_observer.cc (89%) rename {renderer => atom/renderer}/atom_render_view_observer.h (100%) rename {renderer => atom/renderer}/atom_renderer_client.cc (95%) rename {renderer => atom/renderer}/atom_renderer_client.h (100%) rename {renderer => atom/renderer}/lib/init.coffee (100%) rename {renderer => atom/renderer}/lib/override.coffee (100%) rename {renderer => atom/renderer}/resources/mac/Info.plist (100%) diff --git a/atom.gyp b/atom.gyp index 84d2fb910805..a6ca448d78d5 100644 --- a/atom.gyp +++ b/atom.gyp @@ -4,225 +4,225 @@ 'product_name': 'Atom', 'framework_name': 'Atom Framework', 'app_sources': [ - 'app/atom_main.cc', - 'app/atom_main.h', + 'atom/app/atom_main.cc', + 'atom/app/atom_main.h', ], 'bundle_sources': [ - 'browser/resources/mac/atom.icns', + 'atom/browser/resources/mac/atom.icns', ], 'coffee_sources': [ - 'browser/api/lib/app.coffee', - 'browser/api/lib/atom-delegate.coffee', - 'browser/api/lib/auto-updater.coffee', - 'browser/api/lib/browser-window.coffee', - 'browser/api/lib/dialog.coffee', - 'browser/api/lib/ipc.coffee', - 'browser/api/lib/menu.coffee', - 'browser/api/lib/menu-item.coffee', - 'browser/api/lib/power-monitor.coffee', - 'browser/api/lib/protocol.coffee', - 'browser/lib/init.coffee', - 'browser/lib/objects-registry.coffee', - 'browser/lib/rpc-server.coffee', - 'common/api/lib/callbacks-registry.coffee', - 'common/api/lib/clipboard.coffee', - 'common/api/lib/crash-reporter.coffee', - 'common/api/lib/id-weak-map.coffee', - 'common/api/lib/screen.coffee', - 'common/api/lib/shell.coffee', - 'common/lib/init.coffee', - 'renderer/lib/init.coffee', - 'renderer/lib/override.coffee', - 'renderer/api/lib/ipc.coffee', - 'renderer/api/lib/remote.coffee', + 'atom/browser/api/lib/app.coffee', + 'atom/browser/api/lib/atom-delegate.coffee', + 'atom/browser/api/lib/auto-updater.coffee', + 'atom/browser/api/lib/browser-window.coffee', + 'atom/browser/api/lib/dialog.coffee', + 'atom/browser/api/lib/ipc.coffee', + 'atom/browser/api/lib/menu.coffee', + 'atom/browser/api/lib/menu-item.coffee', + 'atom/browser/api/lib/power-monitor.coffee', + 'atom/browser/api/lib/protocol.coffee', + 'atom/browser/lib/init.coffee', + 'atom/browser/lib/objects-registry.coffee', + 'atom/browser/lib/rpc-server.coffee', + 'atom/common/api/lib/callbacks-registry.coffee', + 'atom/common/api/lib/clipboard.coffee', + 'atom/common/api/lib/crash-reporter.coffee', + 'atom/common/api/lib/id-weak-map.coffee', + 'atom/common/api/lib/screen.coffee', + 'atom/common/api/lib/shell.coffee', + 'atom/common/lib/init.coffee', + 'atom/renderer/lib/init.coffee', + 'atom/renderer/lib/override.coffee', + 'atom/renderer/api/lib/ipc.coffee', + 'atom/renderer/api/lib/remote.coffee', ], 'lib_sources': [ - 'app/atom_main_delegate.cc', - 'app/atom_main_delegate.h', - 'app/atom_main_delegate_mac.mm', - 'browser/api/atom_api_app.cc', - 'browser/api/atom_api_app.h', - 'browser/api/atom_api_auto_updater.cc', - 'browser/api/atom_api_auto_updater.h', - 'browser/api/atom_api_browser_ipc.cc', - 'browser/api/atom_api_browser_ipc.h', - 'browser/api/atom_api_dialog.cc', - 'browser/api/atom_api_dialog.h', - 'browser/api/atom_api_event.cc', - 'browser/api/atom_api_event.h', - 'browser/api/atom_api_menu.cc', - 'browser/api/atom_api_menu.h', - 'browser/api/atom_api_menu_gtk.cc', - 'browser/api/atom_api_menu_gtk.h', - 'browser/api/atom_api_menu_mac.h', - 'browser/api/atom_api_menu_mac.mm', - 'browser/api/atom_api_menu_win.cc', - 'browser/api/atom_api_menu_win.h', - 'browser/api/atom_api_power_monitor.cc', - 'browser/api/atom_api_power_monitor.h', - 'browser/api/atom_api_protocol.cc', - 'browser/api/atom_api_protocol.h', - 'browser/api/atom_api_window.cc', - 'browser/api/atom_api_window.h', - 'browser/api/atom_browser_bindings.cc', - 'browser/api/atom_browser_bindings.h', - 'browser/auto_updater.cc', - 'browser/auto_updater.h', - 'browser/auto_updater_delegate.h', - 'browser/auto_updater_linux.cc', - 'browser/auto_updater_mac.mm', - 'browser/auto_updater_win.cc', - 'browser/atom_application_mac.h', - 'browser/atom_application_mac.mm', - 'browser/atom_application_delegate_mac.h', - 'browser/atom_application_delegate_mac.mm', - 'browser/atom_browser_client.cc', - 'browser/atom_browser_client.h', - 'browser/atom_browser_context.cc', - 'browser/atom_browser_context.h', - 'browser/atom_browser_main_parts.cc', - 'browser/atom_browser_main_parts.h', - 'browser/atom_browser_main_parts_mac.mm', - 'browser/atom_javascript_dialog_manager.cc', - 'browser/atom_javascript_dialog_manager.h', - 'browser/browser.cc', - 'browser/browser.h', - 'browser/browser_linux.cc', - 'browser/browser_mac.mm', - 'browser/browser_win.cc', - 'browser/browser_observer.h', - 'browser/devtools_delegate.cc', - 'browser/devtools_delegate.h', - 'browser/native_window.cc', - 'browser/native_window.h', - 'browser/native_window_gtk.cc', - 'browser/native_window_gtk.h', - 'browser/native_window_mac.h', - 'browser/native_window_mac.mm', - 'browser/native_window_win.cc', - 'browser/native_window_win.h', - 'browser/native_window_observer.h', - 'browser/net/adapter_request_job.cc', - 'browser/net/adapter_request_job.h', - 'browser/net/atom_url_request_context_getter.cc', - 'browser/net/atom_url_request_context_getter.h', - 'browser/net/atom_url_request_job_factory.cc', - 'browser/net/atom_url_request_job_factory.h', - 'browser/net/url_request_string_job.cc', - 'browser/net/url_request_string_job.h', - 'browser/ui/accelerator_util.cc', - 'browser/ui/accelerator_util.h', - 'browser/ui/accelerator_util_gtk.cc', - 'browser/ui/accelerator_util_mac.mm', - 'browser/ui/accelerator_util_win.cc', - 'browser/ui/cocoa/atom_menu_controller.h', - 'browser/ui/cocoa/atom_menu_controller.mm', - 'browser/ui/cocoa/event_processing_window.h', - 'browser/ui/cocoa/event_processing_window.mm', - 'browser/ui/file_dialog.h', - 'browser/ui/file_dialog_gtk.cc', - 'browser/ui/file_dialog_mac.mm', - 'browser/ui/file_dialog_win.cc', - 'browser/ui/gtk/gtk_custom_menu.cc', - 'browser/ui/gtk/gtk_custom_menu.h', - 'browser/ui/gtk/gtk_custom_menu_item.cc', - 'browser/ui/gtk/gtk_custom_menu_item.h', - 'browser/ui/gtk/gtk_util.cc', - 'browser/ui/gtk/gtk_util.h', - 'browser/ui/gtk/gtk_window_util.cc', - 'browser/ui/gtk/gtk_window_util.h', - 'browser/ui/gtk/event_utils.cc', - 'browser/ui/gtk/event_utils.h', - 'browser/ui/gtk/menu_gtk.cc', - 'browser/ui/gtk/menu_gtk.h', - 'browser/ui/message_box.h', - 'browser/ui/message_box_gtk.cc', - 'browser/ui/message_box_mac.mm', - 'browser/ui/message_box_win.cc', - 'browser/ui/win/menu_2.cc', - 'browser/ui/win/menu_2.h', - 'browser/ui/win/native_menu_win.cc', - 'browser/ui/win/native_menu_win.h', - 'browser/window_list.cc', - 'browser/window_list.h', - 'browser/window_list_observer.h', - 'common/api/api_messages.cc', - 'common/api/api_messages.h', - 'common/api/atom_api_clipboard.cc', - 'common/api/atom_api_clipboard.h', - 'common/api/atom_api_crash_reporter.cc', - 'common/api/atom_api_crash_reporter.h', - 'common/api/atom_api_event_emitter.cc', - 'common/api/atom_api_event_emitter.h', - 'common/api/atom_api_id_weak_map.cc', - 'common/api/atom_api_id_weak_map.h', - 'common/api/atom_api_screen.cc', - 'common/api/atom_api_screen.h', - 'common/api/atom_api_shell.cc', - 'common/api/atom_api_shell.h', - 'common/api/atom_api_v8_util.cc', - 'common/api/atom_bindings.cc', - 'common/api/atom_bindings.h', - 'common/api/atom_extensions.cc', - 'common/api/atom_extensions.h', - 'common/api/object_life_monitor.cc', - 'common/api/object_life_monitor.h', - 'common/crash_reporter/crash_reporter.cc', - 'common/crash_reporter/crash_reporter.h', - 'common/crash_reporter/crash_reporter_linux.cc', - 'common/crash_reporter/crash_reporter_linux.h', - 'common/crash_reporter/crash_reporter_mac.h', - 'common/crash_reporter/crash_reporter_mac.mm', - 'common/crash_reporter/crash_reporter_win.cc', - 'common/crash_reporter/crash_reporter_win.h', - 'common/crash_reporter/linux/crash_dump_handler.cc', - 'common/crash_reporter/linux/crash_dump_handler.h', - 'common/crash_reporter/win/crash_service.cc', - 'common/crash_reporter/win/crash_service.h', - 'common/crash_reporter/win/crash_service_main.cc', - 'common/crash_reporter/win/crash_service_main.h', - 'common/draggable_region.cc', - 'common/draggable_region.h', - 'common/linux/application_info.cc', - 'common/node_bindings.cc', - 'common/node_bindings.h', - 'common/node_bindings_linux.cc', - 'common/node_bindings_linux.h', - 'common/node_bindings_mac.cc', - 'common/node_bindings_mac.h', - 'common/node_bindings_win.cc', - 'common/node_bindings_win.h', - 'common/options_switches.cc', - 'common/options_switches.h', - 'common/platform_util.h', - 'common/platform_util_linux.cc', - 'common/platform_util_mac.mm', - 'common/platform_util_win.cc', - 'common/swap_or_assign.h', - 'common/v8/node_common.h', - 'common/v8/scoped_persistent.h', - 'common/v8/native_type_conversions.h', - 'common/v8/v8_value_converter.cc', - 'common/v8/v8_value_converter.h', - 'renderer/api/atom_api_renderer_ipc.cc', - 'renderer/api/atom_api_renderer_ipc.h', - 'renderer/api/atom_renderer_bindings.cc', - 'renderer/api/atom_renderer_bindings.h', - 'renderer/atom_render_view_observer.cc', - 'renderer/atom_render_view_observer.h', - 'renderer/atom_renderer_client.cc', - 'renderer/atom_renderer_client.h', + 'atom/app/atom_main_delegate.cc', + 'atom/app/atom_main_delegate.h', + 'atom/app/atom_main_delegate_mac.mm', + 'atom/browser/api/atom_api_app.cc', + 'atom/browser/api/atom_api_app.h', + 'atom/browser/api/atom_api_auto_updater.cc', + 'atom/browser/api/atom_api_auto_updater.h', + 'atom/browser/api/atom_api_browser_ipc.cc', + 'atom/browser/api/atom_api_browser_ipc.h', + 'atom/browser/api/atom_api_dialog.cc', + 'atom/browser/api/atom_api_dialog.h', + 'atom/browser/api/atom_api_event.cc', + 'atom/browser/api/atom_api_event.h', + 'atom/browser/api/atom_api_menu.cc', + 'atom/browser/api/atom_api_menu.h', + 'atom/browser/api/atom_api_menu_gtk.cc', + 'atom/browser/api/atom_api_menu_gtk.h', + 'atom/browser/api/atom_api_menu_mac.h', + 'atom/browser/api/atom_api_menu_mac.mm', + 'atom/browser/api/atom_api_menu_win.cc', + 'atom/browser/api/atom_api_menu_win.h', + 'atom/browser/api/atom_api_power_monitor.cc', + 'atom/browser/api/atom_api_power_monitor.h', + 'atom/browser/api/atom_api_protocol.cc', + 'atom/browser/api/atom_api_protocol.h', + 'atom/browser/api/atom_api_window.cc', + 'atom/browser/api/atom_api_window.h', + 'atom/browser/api/atom_browser_bindings.cc', + 'atom/browser/api/atom_browser_bindings.h', + 'atom/browser/auto_updater.cc', + 'atom/browser/auto_updater.h', + 'atom/browser/auto_updater_delegate.h', + 'atom/browser/auto_updater_linux.cc', + 'atom/browser/auto_updater_mac.mm', + 'atom/browser/auto_updater_win.cc', + 'atom/browser/atom_application_mac.h', + 'atom/browser/atom_application_mac.mm', + 'atom/browser/atom_application_delegate_mac.h', + 'atom/browser/atom_application_delegate_mac.mm', + 'atom/browser/atom_browser_client.cc', + 'atom/browser/atom_browser_client.h', + 'atom/browser/atom_browser_context.cc', + 'atom/browser/atom_browser_context.h', + 'atom/browser/atom_browser_main_parts.cc', + 'atom/browser/atom_browser_main_parts.h', + 'atom/browser/atom_browser_main_parts_mac.mm', + 'atom/browser/atom_javascript_dialog_manager.cc', + 'atom/browser/atom_javascript_dialog_manager.h', + 'atom/browser/browser.cc', + 'atom/browser/browser.h', + 'atom/browser/browser_linux.cc', + 'atom/browser/browser_mac.mm', + 'atom/browser/browser_win.cc', + 'atom/browser/browser_observer.h', + 'atom/browser/devtools_delegate.cc', + 'atom/browser/devtools_delegate.h', + 'atom/browser/native_window.cc', + 'atom/browser/native_window.h', + 'atom/browser/native_window_gtk.cc', + 'atom/browser/native_window_gtk.h', + 'atom/browser/native_window_mac.h', + 'atom/browser/native_window_mac.mm', + 'atom/browser/native_window_win.cc', + 'atom/browser/native_window_win.h', + 'atom/browser/native_window_observer.h', + 'atom/browser/net/adapter_request_job.cc', + 'atom/browser/net/adapter_request_job.h', + 'atom/browser/net/atom_url_request_context_getter.cc', + 'atom/browser/net/atom_url_request_context_getter.h', + 'atom/browser/net/atom_url_request_job_factory.cc', + 'atom/browser/net/atom_url_request_job_factory.h', + 'atom/browser/net/url_request_string_job.cc', + 'atom/browser/net/url_request_string_job.h', + 'atom/browser/ui/accelerator_util.cc', + 'atom/browser/ui/accelerator_util.h', + 'atom/browser/ui/accelerator_util_gtk.cc', + 'atom/browser/ui/accelerator_util_mac.mm', + 'atom/browser/ui/accelerator_util_win.cc', + 'atom/browser/ui/cocoa/atom_menu_controller.h', + 'atom/browser/ui/cocoa/atom_menu_controller.mm', + 'atom/browser/ui/cocoa/event_processing_window.h', + 'atom/browser/ui/cocoa/event_processing_window.mm', + 'atom/browser/ui/file_dialog.h', + 'atom/browser/ui/file_dialog_gtk.cc', + 'atom/browser/ui/file_dialog_mac.mm', + 'atom/browser/ui/file_dialog_win.cc', + 'atom/browser/ui/gtk/gtk_custom_menu.cc', + 'atom/browser/ui/gtk/gtk_custom_menu.h', + 'atom/browser/ui/gtk/gtk_custom_menu_item.cc', + 'atom/browser/ui/gtk/gtk_custom_menu_item.h', + 'atom/browser/ui/gtk/gtk_util.cc', + 'atom/browser/ui/gtk/gtk_util.h', + 'atom/browser/ui/gtk/gtk_window_util.cc', + 'atom/browser/ui/gtk/gtk_window_util.h', + 'atom/browser/ui/gtk/event_utils.cc', + 'atom/browser/ui/gtk/event_utils.h', + 'atom/browser/ui/gtk/menu_gtk.cc', + 'atom/browser/ui/gtk/menu_gtk.h', + 'atom/browser/ui/message_box.h', + 'atom/browser/ui/message_box_gtk.cc', + 'atom/browser/ui/message_box_mac.mm', + 'atom/browser/ui/message_box_win.cc', + 'atom/browser/ui/win/menu_2.cc', + 'atom/browser/ui/win/menu_2.h', + 'atom/browser/ui/win/native_menu_win.cc', + 'atom/browser/ui/win/native_menu_win.h', + 'atom/browser/window_list.cc', + 'atom/browser/window_list.h', + 'atom/browser/window_list_observer.h', + 'atom/common/api/api_messages.cc', + 'atom/common/api/api_messages.h', + 'atom/common/api/atom_api_clipboard.cc', + 'atom/common/api/atom_api_clipboard.h', + 'atom/common/api/atom_api_crash_reporter.cc', + 'atom/common/api/atom_api_crash_reporter.h', + 'atom/common/api/atom_api_event_emitter.cc', + 'atom/common/api/atom_api_event_emitter.h', + 'atom/common/api/atom_api_id_weak_map.cc', + 'atom/common/api/atom_api_id_weak_map.h', + 'atom/common/api/atom_api_screen.cc', + 'atom/common/api/atom_api_screen.h', + 'atom/common/api/atom_api_shell.cc', + 'atom/common/api/atom_api_shell.h', + 'atom/common/api/atom_api_v8_util.cc', + 'atom/common/api/atom_bindings.cc', + 'atom/common/api/atom_bindings.h', + 'atom/common/api/atom_extensions.cc', + 'atom/common/api/atom_extensions.h', + 'atom/common/api/object_life_monitor.cc', + 'atom/common/api/object_life_monitor.h', + 'atom/common/crash_reporter/crash_reporter.cc', + 'atom/common/crash_reporter/crash_reporter.h', + 'atom/common/crash_reporter/crash_reporter_linux.cc', + 'atom/common/crash_reporter/crash_reporter_linux.h', + 'atom/common/crash_reporter/crash_reporter_mac.h', + 'atom/common/crash_reporter/crash_reporter_mac.mm', + 'atom/common/crash_reporter/crash_reporter_win.cc', + 'atom/common/crash_reporter/crash_reporter_win.h', + 'atom/common/crash_reporter/linux/crash_dump_handler.cc', + 'atom/common/crash_reporter/linux/crash_dump_handler.h', + 'atom/common/crash_reporter/win/crash_service.cc', + 'atom/common/crash_reporter/win/crash_service.h', + 'atom/common/crash_reporter/win/crash_service_main.cc', + 'atom/common/crash_reporter/win/crash_service_main.h', + 'atom/common/draggable_region.cc', + 'atom/common/draggable_region.h', + 'atom/common/linux/application_info.cc', + 'atom/common/node_bindings.cc', + 'atom/common/node_bindings.h', + 'atom/common/node_bindings_linux.cc', + 'atom/common/node_bindings_linux.h', + 'atom/common/node_bindings_mac.cc', + 'atom/common/node_bindings_mac.h', + 'atom/common/node_bindings_win.cc', + 'atom/common/node_bindings_win.h', + 'atom/common/options_switches.cc', + 'atom/common/options_switches.h', + 'atom/common/platform_util.h', + 'atom/common/platform_util_linux.cc', + 'atom/common/platform_util_mac.mm', + 'atom/common/platform_util_win.cc', + 'atom/common/swap_or_assign.h', + 'atom/common/v8/node_common.h', + 'atom/common/v8/scoped_persistent.h', + 'atom/common/v8/native_type_conversions.h', + 'atom/common/v8/v8_value_converter.cc', + 'atom/common/v8/v8_value_converter.h', + 'atom/renderer/api/atom_api_renderer_ipc.cc', + 'atom/renderer/api/atom_api_renderer_ipc.h', + 'atom/renderer/api/atom_renderer_bindings.cc', + 'atom/renderer/api/atom_renderer_bindings.h', + 'atom/renderer/atom_render_view_observer.cc', + 'atom/renderer/atom_render_view_observer.h', + 'atom/renderer/atom_renderer_client.cc', + 'atom/renderer/atom_renderer_client.h', ], 'framework_sources': [ - 'app/atom_library_main.cc', - 'app/atom_library_main.h', + 'atom/app/atom_library_main.cc', + 'atom/app/atom_library_main.h', ], 'conditions': [ ['OS=="win"', { 'app_sources': [ - 'browser/resources/win/resource.h', - 'browser/resources/win/atom.ico', - 'browser/resources/win/atom.rc', + 'atom/browser/resources/win/resource.h', + 'atom/browser/resources/win/atom.ico', + 'atom/browser/resources/win/atom.rc', '<(libchromiumcontent_src_dir)/content/app/startup_helper_win.cc', ], }], # OS=="win" @@ -270,7 +270,7 @@ '<(project_name)_helper', ], 'xcode_settings': { - 'INFOPLIST_FILE': 'browser/resources/mac/Info.plist', + 'INFOPLIST_FILE': 'atom/browser/resources/mac/Info.plist', 'LD_RUNPATH_SEARCH_PATHS': [ '@executable_path/../Frameworks', ], @@ -292,7 +292,7 @@ { 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser', 'files': [ - 'browser/default_app', + 'atom/browser/default_app', ], }, ], @@ -330,7 +330,7 @@ { 'destination': '<(PRODUCT_DIR)/resources/browser', 'files': [ - 'browser/default_app', + 'atom/browser/default_app', ] }, ], @@ -348,7 +348,7 @@ { 'destination': '<(PRODUCT_DIR)/resources/browser', 'files': [ - 'browser/default_app', + 'atom/browser/default_app', ] }, ], @@ -600,11 +600,11 @@ }, 'mac_bundle': 1, 'mac_bundle_resources': [ - 'common/resources/mac/MainMenu.xib', + 'atom/common/resources/mac/MainMenu.xib', '<(libchromiumcontent_resources_dir)/content_shell.pak', ], 'xcode_settings': { - 'INFOPLIST_FILE': 'common/resources/mac/Info.plist', + 'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist', 'LIBRARY_SEARCH_PATHS': [ '<(libchromiumcontent_library_dir)', ], @@ -659,7 +659,7 @@ ], 'mac_bundle': 1, 'xcode_settings': { - 'INFOPLIST_FILE': 'renderer/resources/mac/Info.plist', + 'INFOPLIST_FILE': 'atom/renderer/resources/mac/Info.plist', 'LD_RUNPATH_SEARCH_PATHS': [ '@executable_path/../../..', ], diff --git a/app/atom_library_main.cc b/atom/app/atom_library_main.cc similarity index 82% rename from app/atom_library_main.cc rename to atom/app/atom_library_main.cc index 6b78a63bf855..d7571e0ea458 100644 --- a/app/atom_library_main.cc +++ b/atom/app/atom_library_main.cc @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "app/atom_library_main.h" +#include "atom/app/atom_library_main.h" -#include "app/atom_main_delegate.h" +#include "atom/app/atom_main_delegate.h" #include "content/public/app/content_main.h" #if defined(OS_MACOSX) diff --git a/app/atom_library_main.h b/atom/app/atom_library_main.h similarity index 100% rename from app/atom_library_main.h rename to atom/app/atom_library_main.h diff --git a/app/atom_main.cc b/atom/app/atom_main.cc similarity index 94% rename from app/atom_main.cc rename to atom/app/atom_main.cc index 619138618c5c..622cf978e8be 100644 --- a/app/atom_main.cc +++ b/atom/app/atom_main.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "app/atom_main.h" +#include "atom/app/atom_main.h" #include #include @@ -15,16 +15,16 @@ #include #include -#include "app/atom_main_delegate.h" +#include "atom/app/atom_main_delegate.h" #include "base/environment.h" -#include "common/crash_reporter/win/crash_service_main.h" +#include "atom/common/crash_reporter/win/crash_service_main.h" #include "content/public/app/startup_helper_win.h" #include "sandbox/win/src/sandbox_types.h" #elif defined(OS_LINUX) // defined(OS_WIN) -#include "app/atom_main_delegate.h" // NOLINT +#include "atom/app/atom_main_delegate.h" // NOLINT #include "content/public/app/content_main.h" #else // defined(OS_LINUX) -#include "app/atom_library_main.h" +#include "atom/app/atom_library_main.h" #endif // defined(OS_MACOSX) // Declaration of node::Start. diff --git a/app/atom_main.h b/atom/app/atom_main.h similarity index 100% rename from app/atom_main.h rename to atom/app/atom_main.h diff --git a/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc similarity index 95% rename from app/atom_main_delegate.cc rename to atom/app/atom_main_delegate.cc index 6346343b8dfe..576f395714e3 100644 --- a/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "app/atom_main_delegate.h" +#include "atom/app/atom_main_delegate.h" #include "base/command_line.h" #include "base/debug/stack_trace.h" #include "base/logging.h" -#include "browser/atom_browser_client.h" +#include "atom/browser/atom_browser_client.h" #include "content/public/common/content_switches.h" -#include "renderer/atom_renderer_client.h" +#include "atom/renderer/atom_renderer_client.h" #include "ui/base/resource/resource_bundle.h" #include "base/path_service.h" diff --git a/app/atom_main_delegate.h b/atom/app/atom_main_delegate.h similarity index 100% rename from app/atom_main_delegate.h rename to atom/app/atom_main_delegate.h diff --git a/app/atom_main_delegate_mac.mm b/atom/app/atom_main_delegate_mac.mm similarity index 97% rename from app/atom_main_delegate_mac.mm rename to atom/app/atom_main_delegate_mac.mm index d9ddb4d93c79..0b95d36b8dba 100644 --- a/app/atom_main_delegate_mac.mm +++ b/atom/app/atom_main_delegate_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "app/atom_main_delegate.h" +#include "atom/app/atom_main_delegate.h" #import "base/mac/bundle_locations.h" #import "base/mac/foundation_util.h" diff --git a/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc similarity index 97% rename from browser/api/atom_api_app.cc rename to atom/browser/api/atom_api_app.cc index d07c387ba178..f5b183820f85 100644 --- a/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_app.h" +#include "atom/browser/api/atom_api_app.h" #include "base/values.h" #include "base/command_line.h" -#include "browser/browser.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/browser.h" +#include "atom/common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_app.h b/atom/browser/api/atom_api_app.h similarity index 96% rename from browser/api/atom_api_app.h rename to atom/browser/api/atom_api_app.h index 9d3eccff187b..4fed94365669 100644 --- a/browser/api/atom_api_app.h +++ b/atom/browser/api/atom_api_app.h @@ -6,8 +6,8 @@ #define ATOM_BROWSER_API_ATOM_API_APP_H_ #include "base/compiler_specific.h" -#include "browser/browser_observer.h" -#include "common/api/atom_api_event_emitter.h" +#include "atom/browser/browser_observer.h" +#include "atom/common/api/atom_api_event_emitter.h" namespace atom { diff --git a/browser/api/atom_api_auto_updater.cc b/atom/browser/api/atom_api_auto_updater.cc similarity index 93% rename from browser/api/atom_api_auto_updater.cc rename to atom/browser/api/atom_api_auto_updater.cc index 6375e19a9218..1ed8588e41d7 100644 --- a/browser/api/atom_api_auto_updater.cc +++ b/atom/browser/api/atom_api_auto_updater.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_auto_updater.h" +#include "atom/browser/api/atom_api_auto_updater.h" #include "base/time/time.h" #include "base/values.h" -#include "browser/auto_updater.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/auto_updater.h" +#include "atom/common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_auto_updater.h b/atom/browser/api/atom_api_auto_updater.h similarity index 94% rename from browser/api/atom_api_auto_updater.h rename to atom/browser/api/atom_api_auto_updater.h index 0207cbe6a99f..9007bbd984a6 100644 --- a/browser/api/atom_api_auto_updater.h +++ b/atom/browser/api/atom_api_auto_updater.h @@ -7,8 +7,8 @@ #include "base/callback.h" #include "base/memory/scoped_ptr.h" -#include "browser/auto_updater_delegate.h" -#include "common/api/atom_api_event_emitter.h" +#include "atom/browser/auto_updater_delegate.h" +#include "atom/common/api/atom_api_event_emitter.h" namespace atom { diff --git a/browser/api/atom_api_browser_ipc.cc b/atom/browser/api/atom_api_browser_ipc.cc similarity index 86% rename from browser/api/atom_api_browser_ipc.cc rename to atom/browser/api/atom_api_browser_ipc.cc index 024bfffe5bc6..2d062421444f 100644 --- a/browser/api/atom_api_browser_ipc.cc +++ b/atom/browser/api/atom_api_browser_ipc.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_browser_ipc.h" +#include "atom/browser/api/atom_api_browser_ipc.h" -#include "common/api/api_messages.h" -#include "common/v8/node_common.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/api/api_messages.h" +#include "atom/common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/render_view_host.h" using content::RenderViewHost; diff --git a/browser/api/atom_api_browser_ipc.h b/atom/browser/api/atom_api_browser_ipc.h similarity index 100% rename from browser/api/atom_api_browser_ipc.h rename to atom/browser/api/atom_api_browser_ipc.h diff --git a/browser/api/atom_api_dialog.cc b/atom/browser/api/atom_api_dialog.cc similarity index 93% rename from browser/api/atom_api_dialog.cc rename to atom/browser/api/atom_api_dialog.cc index 2eb555ccd5f9..b35849367779 100644 --- a/browser/api/atom_api_dialog.cc +++ b/atom/browser/api/atom_api_dialog.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_dialog.h" +#include "atom/browser/api/atom_api_dialog.h" #include "base/bind.h" -#include "browser/native_window.h" -#include "browser/ui/file_dialog.h" -#include "browser/ui/message_box.h" -#include "common/v8/node_common.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window.h" +#include "atom/browser/ui/file_dialog.h" +#include "atom/browser/ui/message_box.h" +#include "atom/common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" namespace atom { diff --git a/browser/api/atom_api_dialog.h b/atom/browser/api/atom_api_dialog.h similarity index 100% rename from browser/api/atom_api_dialog.h rename to atom/browser/api/atom_api_dialog.h diff --git a/browser/api/atom_api_event.cc b/atom/browser/api/atom_api_event.cc similarity index 91% rename from browser/api/atom_api_event.cc rename to atom/browser/api/atom_api_event.cc index 155fdbbebd26..ec074bb28c51 100644 --- a/browser/api/atom_api_event.cc +++ b/atom/browser/api/atom_api_event.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_event.h" +#include "atom/browser/api/atom_api_event.h" -#include "browser/native_window.h" -#include "common/api/api_messages.h" -#include "common/v8/node_common.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window.h" +#include "atom/common/api/api_messages.h" +#include "atom/common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" namespace atom { diff --git a/browser/api/atom_api_event.h b/atom/browser/api/atom_api_event.h similarity index 94% rename from browser/api/atom_api_event.h rename to atom/browser/api/atom_api_event.h index 1a46f052c7cd..298efde22569 100644 --- a/browser/api/atom_api_event.h +++ b/atom/browser/api/atom_api_event.h @@ -8,8 +8,8 @@ #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/strings/string16.h" -#include "browser/native_window_observer.h" -#include "common/v8/scoped_persistent.h" +#include "atom/browser/native_window_observer.h" +#include "atom/common/v8/scoped_persistent.h" #include "vendor/node/src/node_object_wrap.h" namespace IPC { diff --git a/browser/api/atom_api_menu.cc b/atom/browser/api/atom_api_menu.cc similarity index 98% rename from browser/api/atom_api_menu.cc rename to atom/browser/api/atom_api_menu.cc index 4067829166c8..392b8fa72bfc 100644 --- a/browser/api/atom_api_menu.cc +++ b/atom/browser/api/atom_api_menu.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_menu.h" +#include "atom/browser/api/atom_api_menu.h" -#include "browser/ui/accelerator_util.h" -#include "common/v8/node_common.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/ui/accelerator_util.h" +#include "atom/common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" #define UNWRAP_MEMNU_AND_CHECK \ Menu* self = ObjectWrap::Unwrap(args.This()); \ diff --git a/browser/api/atom_api_menu.h b/atom/browser/api/atom_api_menu.h similarity index 98% rename from browser/api/atom_api_menu.h rename to atom/browser/api/atom_api_menu.h index 25f94b835487..037a473ec486 100644 --- a/browser/api/atom_api_menu.h +++ b/atom/browser/api/atom_api_menu.h @@ -6,7 +6,7 @@ #define ATOM_BROWSER_API_ATOM_API_MENU_H_ #include "base/memory/scoped_ptr.h" -#include "common/api/atom_api_event_emitter.h" +#include "atom/common/api/atom_api_event_emitter.h" #include "ui/base/models/simple_menu_model.h" namespace atom { diff --git a/browser/api/atom_api_menu_gtk.cc b/atom/browser/api/atom_api_menu_gtk.cc similarity index 89% rename from browser/api/atom_api_menu_gtk.cc rename to atom/browser/api/atom_api_menu_gtk.cc index a28e9217b7e6..0265ac74a324 100644 --- a/browser/api/atom_api_menu_gtk.cc +++ b/atom/browser/api/atom_api_menu_gtk.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_menu_gtk.h" +#include "atom/browser/api/atom_api_menu_gtk.h" -#include "browser/native_window_gtk.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window_gtk.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/render_widget_host_view.h" #include "ui/gfx/point.h" #include "ui/gfx/screen.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_menu_gtk.h b/atom/browser/api/atom_api_menu_gtk.h similarity index 88% rename from browser/api/atom_api_menu_gtk.h rename to atom/browser/api/atom_api_menu_gtk.h index 9f1768290bc7..51c82d8daffc 100644 --- a/browser/api/atom_api_menu_gtk.h +++ b/atom/browser/api/atom_api_menu_gtk.h @@ -5,8 +5,8 @@ #ifndef ATOM_BROWSER_API_ATOM_API_MENU_GTK_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_GTK_H_ -#include "browser/api/atom_api_menu.h" -#include "browser/ui/gtk/menu_gtk.h" +#include "atom/browser/api/atom_api_menu.h" +#include "atom/browser/ui/gtk/menu_gtk.h" namespace atom { diff --git a/browser/api/atom_api_menu_mac.h b/atom/browser/api/atom_api_menu_mac.h similarity index 89% rename from browser/api/atom_api_menu_mac.h rename to atom/browser/api/atom_api_menu_mac.h index 62da458aeb5c..3abd34e1e189 100644 --- a/browser/api/atom_api_menu_mac.h +++ b/atom/browser/api/atom_api_menu_mac.h @@ -5,9 +5,9 @@ #ifndef ATOM_BROWSER_API_ATOM_API_MENU_MAC_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_MAC_H_ -#include "browser/api/atom_api_menu.h" +#include "atom/browser/api/atom_api_menu.h" -#import "browser/ui/cocoa/atom_menu_controller.h" +#import "atom/browser/ui/cocoa/atom_menu_controller.h" namespace atom { diff --git a/browser/api/atom_api_menu_mac.mm b/atom/browser/api/atom_api_menu_mac.mm similarity index 95% rename from browser/api/atom_api_menu_mac.mm rename to atom/browser/api/atom_api_menu_mac.mm index 12e2710604b5..fa2a708d6ca9 100644 --- a/browser/api/atom_api_menu_mac.mm +++ b/atom/browser/api/atom_api_menu_mac.mm @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "browser/api/atom_api_menu_mac.h" +#import "atom/browser/api/atom_api_menu_mac.h" #include "base/mac/scoped_sending_event.h" #include "base/message_loop/message_loop.h" #include "base/strings/sys_string_conversions.h" -#include "browser/native_window.h" -#include "common/v8/node_common.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window.h" +#include "atom/common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents_view.h" diff --git a/browser/api/atom_api_menu_win.cc b/atom/browser/api/atom_api_menu_win.cc similarity index 83% rename from browser/api/atom_api_menu_win.cc rename to atom/browser/api/atom_api_menu_win.cc index e645478ac2fc..d5d820e09db3 100644 --- a/browser/api/atom_api_menu_win.cc +++ b/atom/browser/api/atom_api_menu_win.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_menu_win.h" +#include "atom/browser/api/atom_api_menu_win.h" -#include "browser/native_window_win.h" -#include "browser/ui/win/menu_2.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window_win.h" +#include "atom/browser/ui/win/menu_2.h" +#include "atom/common/v8/native_type_conversions.h" #include "ui/gfx/point.h" #include "ui/gfx/screen.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_menu_win.h b/atom/browser/api/atom_api_menu_win.h similarity index 93% rename from browser/api/atom_api_menu_win.h rename to atom/browser/api/atom_api_menu_win.h index dbc09dfa0325..f3cb6077126e 100644 --- a/browser/api/atom_api_menu_win.h +++ b/atom/browser/api/atom_api_menu_win.h @@ -5,7 +5,7 @@ #ifndef ATOM_BROWSER_API_ATOM_API_MENU_WIN_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_WIN_H_ -#include "browser/api/atom_api_menu.h" +#include "atom/browser/api/atom_api_menu.h" namespace atom { diff --git a/browser/api/atom_api_power_monitor.cc b/atom/browser/api/atom_api_power_monitor.cc similarity index 94% rename from browser/api/atom_api_power_monitor.cc rename to atom/browser/api/atom_api_power_monitor.cc index 1dd362bc6b26..d045c1866c2e 100644 --- a/browser/api/atom_api_power_monitor.cc +++ b/atom/browser/api/atom_api_power_monitor.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_power_monitor.h" +#include "atom/browser/api/atom_api_power_monitor.h" #include "base/power_monitor/power_monitor.h" #include "base/power_monitor/power_monitor_device_source.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_power_monitor.h b/atom/browser/api/atom_api_power_monitor.h similarity index 95% rename from browser/api/atom_api_power_monitor.h rename to atom/browser/api/atom_api_power_monitor.h index 3febb438a61d..98b9ee3efd7b 100644 --- a/browser/api/atom_api_power_monitor.h +++ b/atom/browser/api/atom_api_power_monitor.h @@ -7,7 +7,7 @@ #include "base/compiler_specific.h" #include "base/power_monitor/power_observer.h" -#include "common/api/atom_api_event_emitter.h" +#include "atom/common/api/atom_api_event_emitter.h" namespace atom { diff --git a/browser/api/atom_api_protocol.cc b/atom/browser/api/atom_api_protocol.cc similarity index 97% rename from browser/api/atom_api_protocol.cc rename to atom/browser/api/atom_api_protocol.cc index 7c44f81d4fb3..60c7b8cb6206 100644 --- a/browser/api/atom_api_protocol.cc +++ b/atom/browser/api/atom_api_protocol.cc @@ -2,18 +2,18 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_protocol.h" +#include "atom/browser/api/atom_api_protocol.h" #include "base/stl_util.h" -#include "browser/atom_browser_context.h" -#include "browser/net/adapter_request_job.h" -#include "browser/net/atom_url_request_context_getter.h" -#include "browser/net/atom_url_request_job_factory.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/atom_browser_context.h" +#include "atom/browser/net/adapter_request_job.h" +#include "atom/browser/net/atom_url_request_context_getter.h" +#include "atom/browser/net/atom_url_request_job_factory.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/browser_thread.h" #include "net/url_request/url_request_context.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_api_protocol.h b/atom/browser/api/atom_api_protocol.h similarity index 100% rename from browser/api/atom_api_protocol.h rename to atom/browser/api/atom_api_protocol.h diff --git a/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc similarity index 99% rename from browser/api/atom_api_window.cc rename to atom/browser/api/atom_api_window.cc index 7486f4f5b626..e44f26a6bed8 100644 --- a/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -2,19 +2,19 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_api_window.h" +#include "atom/browser/api/atom_api_window.h" #include "base/bind.h" #include "base/process/kill.h" -#include "browser/native_window.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/native_window.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/navigation_entry.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/render_process_host.h" #include "ui/gfx/point.h" #include "ui/gfx/size.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" #include "vendor/node/src/node_buffer.h" using content::NavigationController; diff --git a/browser/api/atom_api_window.h b/atom/browser/api/atom_api_window.h similarity index 97% rename from browser/api/atom_api_window.h rename to atom/browser/api/atom_api_window.h index d53affaa7fce..75149ea00496 100644 --- a/browser/api/atom_api_window.h +++ b/atom/browser/api/atom_api_window.h @@ -8,9 +8,9 @@ #include #include "base/memory/scoped_ptr.h" -#include "browser/native_window_observer.h" -#include "common/api/atom_api_event_emitter.h" -#include "common/v8/scoped_persistent.h" +#include "atom/browser/native_window_observer.h" +#include "atom/common/api/atom_api_event_emitter.h" +#include "atom/common/v8/scoped_persistent.h" namespace base { class DictionaryValue; diff --git a/browser/api/atom_browser_bindings.cc b/atom/browser/api/atom_browser_bindings.cc similarity index 93% rename from browser/api/atom_browser_bindings.cc rename to atom/browser/api/atom_browser_bindings.cc index a7753f77aea8..825fefa6297c 100644 --- a/browser/api/atom_browser_bindings.cc +++ b/atom/browser/api/atom_browser_bindings.cc @@ -2,16 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/api/atom_browser_bindings.h" +#include "atom/browser/api/atom_browser_bindings.h" #include #include "base/logging.h" -#include "browser/api/atom_api_event.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/api/atom_api_event.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/browser_thread.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/api/atom_browser_bindings.h b/atom/browser/api/atom_browser_bindings.h similarity index 93% rename from browser/api/atom_browser_bindings.h rename to atom/browser/api/atom_browser_bindings.h index 004518cc6edd..4aedcd5a24f4 100644 --- a/browser/api/atom_browser_bindings.h +++ b/atom/browser/api/atom_browser_bindings.h @@ -6,8 +6,8 @@ #define ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_ #include "base/strings/string16.h" -#include "common/api/atom_bindings.h" -#include "common/v8/scoped_persistent.h" +#include "atom/common/api/atom_bindings.h" +#include "atom/common/v8/scoped_persistent.h" namespace base { class ListValue; diff --git a/browser/api/lib/app.coffee b/atom/browser/api/lib/app.coffee similarity index 100% rename from browser/api/lib/app.coffee rename to atom/browser/api/lib/app.coffee diff --git a/browser/api/lib/atom-delegate.coffee b/atom/browser/api/lib/atom-delegate.coffee similarity index 100% rename from browser/api/lib/atom-delegate.coffee rename to atom/browser/api/lib/atom-delegate.coffee diff --git a/browser/api/lib/auto-updater.coffee b/atom/browser/api/lib/auto-updater.coffee similarity index 100% rename from browser/api/lib/auto-updater.coffee rename to atom/browser/api/lib/auto-updater.coffee diff --git a/browser/api/lib/browser-window.coffee b/atom/browser/api/lib/browser-window.coffee similarity index 100% rename from browser/api/lib/browser-window.coffee rename to atom/browser/api/lib/browser-window.coffee diff --git a/browser/api/lib/dialog.coffee b/atom/browser/api/lib/dialog.coffee similarity index 100% rename from browser/api/lib/dialog.coffee rename to atom/browser/api/lib/dialog.coffee diff --git a/browser/api/lib/ipc.coffee b/atom/browser/api/lib/ipc.coffee similarity index 100% rename from browser/api/lib/ipc.coffee rename to atom/browser/api/lib/ipc.coffee diff --git a/browser/api/lib/menu-item.coffee b/atom/browser/api/lib/menu-item.coffee similarity index 100% rename from browser/api/lib/menu-item.coffee rename to atom/browser/api/lib/menu-item.coffee diff --git a/browser/api/lib/menu.coffee b/atom/browser/api/lib/menu.coffee similarity index 100% rename from browser/api/lib/menu.coffee rename to atom/browser/api/lib/menu.coffee diff --git a/browser/api/lib/power-monitor.coffee b/atom/browser/api/lib/power-monitor.coffee similarity index 100% rename from browser/api/lib/power-monitor.coffee rename to atom/browser/api/lib/power-monitor.coffee diff --git a/browser/api/lib/protocol.coffee b/atom/browser/api/lib/protocol.coffee similarity index 100% rename from browser/api/lib/protocol.coffee rename to atom/browser/api/lib/protocol.coffee diff --git a/browser/atom_application_delegate_mac.h b/atom/browser/atom_application_delegate_mac.h similarity index 100% rename from browser/atom_application_delegate_mac.h rename to atom/browser/atom_application_delegate_mac.h diff --git a/browser/atom_application_delegate_mac.mm b/atom/browser/atom_application_delegate_mac.mm similarity index 90% rename from browser/atom_application_delegate_mac.mm rename to atom/browser/atom_application_delegate_mac.mm index 1843298bd5ac..2f5519b7ce9b 100644 --- a/browser/atom_application_delegate_mac.mm +++ b/atom/browser/atom_application_delegate_mac.mm @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "browser/atom_application_delegate_mac.h" +#import "atom/browser/atom_application_delegate_mac.h" #include "base/strings/sys_string_conversions.h" -#import "browser/atom_application_mac.h" -#include "browser/browser.h" +#import "atom/browser/atom_application_mac.h" +#include "atom/browser/browser.h" @implementation AtomApplicationDelegate diff --git a/browser/atom_application_mac.h b/atom/browser/atom_application_mac.h similarity index 100% rename from browser/atom_application_mac.h rename to atom/browser/atom_application_mac.h diff --git a/browser/atom_application_mac.mm b/atom/browser/atom_application_mac.mm similarity index 93% rename from browser/atom_application_mac.mm rename to atom/browser/atom_application_mac.mm index 7cfde6038057..6a055b15a95d 100644 --- a/browser/atom_application_mac.mm +++ b/atom/browser/atom_application_mac.mm @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "browser/atom_application_mac.h" +#import "atom/browser/atom_application_mac.h" #include "base/auto_reset.h" #include "base/strings/sys_string_conversions.h" -#include "browser/browser.h" +#include "atom/browser/browser.h" @implementation AtomApplication diff --git a/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc similarity index 93% rename from browser/atom_browser_client.cc rename to atom/browser/atom_browser_client.cc index d35b81cc85b6..bd7d95ab47c6 100644 --- a/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/atom_browser_client.h" +#include "atom/browser/atom_browser_client.h" -#include "browser/atom_browser_context.h" -#include "browser/atom_browser_main_parts.h" -#include "browser/native_window.h" -#include "browser/net/atom_url_request_context_getter.h" -#include "browser/window_list.h" +#include "atom/browser/atom_browser_context.h" +#include "atom/browser/atom_browser_main_parts.h" +#include "atom/browser/native_window.h" +#include "atom/browser/net/atom_url_request_context_getter.h" +#include "atom/browser/window_list.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/render_view_host.h" #include "content/public/browser/site_instance.h" diff --git a/browser/atom_browser_client.h b/atom/browser/atom_browser_client.h similarity index 100% rename from browser/atom_browser_client.h rename to atom/browser/atom_browser_client.h diff --git a/browser/atom_browser_context.cc b/atom/browser/atom_browser_context.cc similarity index 93% rename from browser/atom_browser_context.cc rename to atom/browser/atom_browser_context.cc index 02d6836e7d2d..cbf14c83ed00 100644 --- a/browser/atom_browser_context.cc +++ b/atom/browser/atom_browser_context.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/atom_browser_context.h" +#include "atom/browser/atom_browser_context.h" -#include "browser/atom_browser_main_parts.h" -#include "browser/net/atom_url_request_context_getter.h" +#include "atom/browser/atom_browser_main_parts.h" +#include "atom/browser/net/atom_url_request_context_getter.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/resource_context.h" #include "vendor/brightray/browser/network_delegate.h" diff --git a/browser/atom_browser_context.h b/atom/browser/atom_browser_context.h similarity index 100% rename from browser/atom_browser_context.h rename to atom/browser/atom_browser_context.h diff --git a/browser/atom_browser_main_parts.cc b/atom/browser/atom_browser_main_parts.cc similarity index 89% rename from browser/atom_browser_main_parts.cc rename to atom/browser/atom_browser_main_parts.cc index 0cb05dd1a1eb..84f15d620271 100644 --- a/browser/atom_browser_main_parts.cc +++ b/atom/browser/atom_browser_main_parts.cc @@ -2,20 +2,20 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/atom_browser_main_parts.h" +#include "atom/browser/atom_browser_main_parts.h" -#include "browser/api/atom_browser_bindings.h" -#include "browser/atom_browser_client.h" -#include "browser/atom_browser_context.h" -#include "browser/browser.h" -#include "common/node_bindings.h" +#include "atom/browser/api/atom_browser_bindings.h" +#include "atom/browser/atom_browser_client.h" +#include "atom/browser/atom_browser_context.h" +#include "atom/browser/browser.h" +#include "atom/common/node_bindings.h" #include "net/proxy/proxy_resolver_v8.h" #if defined(OS_WIN) #include "ui/gfx/win/dpi.h" #endif -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/browser/atom_browser_main_parts.h b/atom/browser/atom_browser_main_parts.h similarity index 100% rename from browser/atom_browser_main_parts.h rename to atom/browser/atom_browser_main_parts.h diff --git a/browser/atom_browser_main_parts_mac.mm b/atom/browser/atom_browser_main_parts_mac.mm similarity index 90% rename from browser/atom_browser_main_parts_mac.mm rename to atom/browser/atom_browser_main_parts_mac.mm index 4b2c7ab99372..2f2614542869 100644 --- a/browser/atom_browser_main_parts_mac.mm +++ b/atom/browser/atom_browser_main_parts_mac.mm @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/atom_browser_main_parts.h" +#include "atom/browser/atom_browser_main_parts.h" #include "base/files/file_path.h" #import "base/mac/foundation_util.h" -#import "browser/atom_application_mac.h" -#import "browser/atom_application_delegate_mac.h" +#import "atom/browser/atom_application_mac.h" +#import "atom/browser/atom_application_delegate_mac.h" #import "vendor/brightray/common/mac/main_application_bundle.h" namespace atom { diff --git a/browser/atom_javascript_dialog_manager.cc b/atom/browser/atom_javascript_dialog_manager.cc similarity index 94% rename from browser/atom_javascript_dialog_manager.cc rename to atom/browser/atom_javascript_dialog_manager.cc index 33f1314235f0..dda3f5fd4461 100644 --- a/browser/atom_javascript_dialog_manager.cc +++ b/atom/browser/atom_javascript_dialog_manager.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/atom_javascript_dialog_manager.h" +#include "atom/browser/atom_javascript_dialog_manager.h" #include "base/strings/utf_string_conversions.h" diff --git a/browser/atom_javascript_dialog_manager.h b/atom/browser/atom_javascript_dialog_manager.h similarity index 100% rename from browser/atom_javascript_dialog_manager.h rename to atom/browser/atom_javascript_dialog_manager.h diff --git a/browser/auto_updater.cc b/atom/browser/auto_updater.cc similarity index 91% rename from browser/auto_updater.cc rename to atom/browser/auto_updater.cc index ef6f3ad13760..a8dc3d889370 100644 --- a/browser/auto_updater.cc +++ b/atom/browser/auto_updater.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/auto_updater.h" +#include "atom/browser/auto_updater.h" namespace auto_updater { diff --git a/browser/auto_updater.h b/atom/browser/auto_updater.h similarity index 100% rename from browser/auto_updater.h rename to atom/browser/auto_updater.h diff --git a/browser/auto_updater_delegate.h b/atom/browser/auto_updater_delegate.h similarity index 100% rename from browser/auto_updater_delegate.h rename to atom/browser/auto_updater_delegate.h diff --git a/browser/auto_updater_linux.cc b/atom/browser/auto_updater_linux.cc similarity index 89% rename from browser/auto_updater_linux.cc rename to atom/browser/auto_updater_linux.cc index ccdc4ed8e008..12b6e5d53735 100644 --- a/browser/auto_updater_linux.cc +++ b/atom/browser/auto_updater_linux.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/auto_updater.h" +#include "atom/browser/auto_updater.h" namespace auto_updater { diff --git a/browser/auto_updater_mac.mm b/atom/browser/auto_updater_mac.mm similarity index 97% rename from browser/auto_updater_mac.mm rename to atom/browser/auto_updater_mac.mm index 290eea5dc3c9..f70862e71ba2 100644 --- a/browser/auto_updater_mac.mm +++ b/atom/browser/auto_updater_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/auto_updater.h" +#include "atom/browser/auto_updater.h" #import #import @@ -12,7 +12,7 @@ #include "base/bind.h" #include "base/time/time.h" #include "base/strings/sys_string_conversions.h" -#include "browser/auto_updater_delegate.h" +#include "atom/browser/auto_updater_delegate.h" #include diff --git a/browser/auto_updater_win.cc b/atom/browser/auto_updater_win.cc similarity index 89% rename from browser/auto_updater_win.cc rename to atom/browser/auto_updater_win.cc index ccdc4ed8e008..12b6e5d53735 100644 --- a/browser/auto_updater_win.cc +++ b/atom/browser/auto_updater_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/auto_updater.h" +#include "atom/browser/auto_updater.h" namespace auto_updater { diff --git a/browser/browser.cc b/atom/browser/browser.cc similarity index 95% rename from browser/browser.cc rename to atom/browser/browser.cc index 6567aea1546e..954eae24b408 100644 --- a/browser/browser.cc +++ b/atom/browser/browser.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/browser.h" +#include "atom/browser/browser.h" -#include "browser/atom_browser_main_parts.h" -#include "browser/window_list.h" +#include "atom/browser/atom_browser_main_parts.h" +#include "atom/browser/window_list.h" namespace atom { diff --git a/browser/browser.h b/atom/browser/browser.h similarity index 96% rename from browser/browser.h rename to atom/browser/browser.h index 759e9680f205..80dc5927a997 100644 --- a/browser/browser.h +++ b/atom/browser/browser.h @@ -8,8 +8,8 @@ #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/observer_list.h" -#include "browser/browser_observer.h" -#include "browser/window_list_observer.h" +#include "atom/browser/browser_observer.h" +#include "atom/browser/window_list_observer.h" namespace atom { diff --git a/browser/browser_linux.cc b/atom/browser/browser_linux.cc similarity index 84% rename from browser/browser_linux.cc rename to atom/browser/browser_linux.cc index fcff198fcde6..a62042710d40 100644 --- a/browser/browser_linux.cc +++ b/atom/browser/browser_linux.cc @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/browser.h" +#include "atom/browser/browser.h" #include -#include "browser/native_window.h" -#include "browser/window_list.h" -#include "common/atom_version.h" +#include "atom/browser/native_window.h" +#include "atom/browser/window_list.h" +#include "atom/common/atom_version.h" namespace atom { diff --git a/browser/browser_mac.mm b/atom/browser/browser_mac.mm similarity index 95% rename from browser/browser_mac.mm rename to atom/browser/browser_mac.mm index 63312f4e6ec1..d88be3ca5985 100644 --- a/browser/browser_mac.mm +++ b/atom/browser/browser_mac.mm @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/browser.h" +#include "atom/browser/browser.h" #import "base/mac/bundle_locations.h" #include "base/strings/sys_string_conversions.h" -#import "browser/atom_application_mac.h" +#import "atom/browser/atom_application_mac.h" namespace atom { diff --git a/browser/browser_observer.h b/atom/browser/browser_observer.h similarity index 100% rename from browser/browser_observer.h rename to atom/browser/browser_observer.h diff --git a/browser/browser_win.cc b/atom/browser/browser_win.cc similarity index 96% rename from browser/browser_win.cc rename to atom/browser/browser_win.cc index b065f70782fd..74953cf09032 100644 --- a/browser/browser_win.cc +++ b/atom/browser/browser_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/browser.h" +#include "atom/browser/browser.h" #include @@ -12,7 +12,7 @@ #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #include "base/strings/utf_string_conversions.h" -#include "common/atom_version.h" +#include "atom/common/atom_version.h" namespace atom { diff --git a/browser/default_app/default_app.js b/atom/browser/default_app/default_app.js similarity index 100% rename from browser/default_app/default_app.js rename to atom/browser/default_app/default_app.js diff --git a/browser/default_app/index.html b/atom/browser/default_app/index.html similarity index 100% rename from browser/default_app/index.html rename to atom/browser/default_app/index.html diff --git a/browser/default_app/main.js b/atom/browser/default_app/main.js similarity index 100% rename from browser/default_app/main.js rename to atom/browser/default_app/main.js diff --git a/browser/default_app/package.json b/atom/browser/default_app/package.json similarity index 100% rename from browser/default_app/package.json rename to atom/browser/default_app/package.json diff --git a/browser/devtools_delegate.cc b/atom/browser/devtools_delegate.cc similarity index 97% rename from browser/devtools_delegate.cc rename to atom/browser/devtools_delegate.cc index 3886bfe22202..b66abdd6398e 100644 --- a/browser/devtools_delegate.cc +++ b/atom/browser/devtools_delegate.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/devtools_delegate.h" +#include "atom/browser/devtools_delegate.h" #include "base/message_loop/message_loop.h" #include "base/values.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" #include "content/public/browser/devtools_agent_host.h" #include "content/public/browser/devtools_client_host.h" #include "content/public/browser/devtools_http_handler.h" diff --git a/browser/devtools_delegate.h b/atom/browser/devtools_delegate.h similarity index 98% rename from browser/devtools_delegate.h rename to atom/browser/devtools_delegate.h index 54e05a25b587..f6a7b8492347 100644 --- a/browser/devtools_delegate.h +++ b/atom/browser/devtools_delegate.h @@ -6,7 +6,7 @@ #define ATOM_BROWSER_DEVTOOLS_DELEGATE_H_ #include "base/memory/scoped_ptr.h" -#include "browser/native_window_observer.h" +#include "atom/browser/native_window_observer.h" #include "content/public/browser/devtools_frontend_host_delegate.h" #include "content/public/browser/web_contents_observer.h" #include "vendor/brightray/browser/devtools_embedder_message_dispatcher.h" diff --git a/browser/lib/init.coffee b/atom/browser/lib/init.coffee similarity index 100% rename from browser/lib/init.coffee rename to atom/browser/lib/init.coffee diff --git a/browser/lib/objects-registry.coffee b/atom/browser/lib/objects-registry.coffee similarity index 100% rename from browser/lib/objects-registry.coffee rename to atom/browser/lib/objects-registry.coffee diff --git a/browser/lib/rpc-server.coffee b/atom/browser/lib/rpc-server.coffee similarity index 100% rename from browser/lib/rpc-server.coffee rename to atom/browser/lib/rpc-server.coffee diff --git a/browser/native_window.cc b/atom/browser/native_window.cc similarity index 97% rename from browser/native_window.cc rename to atom/browser/native_window.cc index bff1c2f3c777..9cc38bf96cf6 100644 --- a/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/native_window.h" +#include "atom/browser/native_window.h" #include @@ -13,13 +13,13 @@ #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" -#include "browser/api/atom_browser_bindings.h" -#include "browser/atom_browser_context.h" -#include "browser/atom_browser_main_parts.h" -#include "browser/atom_javascript_dialog_manager.h" -#include "browser/browser.h" -#include "browser/devtools_delegate.h" -#include "browser/window_list.h" +#include "atom/browser/api/atom_browser_bindings.h" +#include "atom/browser/atom_browser_context.h" +#include "atom/browser/atom_browser_main_parts.h" +#include "atom/browser/atom_javascript_dialog_manager.h" +#include "atom/browser/browser.h" +#include "atom/browser/devtools_delegate.h" +#include "atom/browser/window_list.h" #include "content/public/browser/devtools_agent_host.h" #include "content/public/browser/invalidate_type.h" #include "content/public/browser/navigation_entry.h" @@ -31,9 +31,9 @@ #include "content/public/browser/render_widget_host_view.h" #include "content/public/browser/web_contents_view.h" #include "content/public/common/renderer_preferences.h" -#include "common/api/api_messages.h" -#include "common/atom_version.h" -#include "common/options_switches.h" +#include "atom/common/api/api_messages.h" +#include "atom/common/atom_version.h" +#include "atom/common/options_switches.h" #include "ipc/ipc_message_macros.h" #include "ui/gfx/codec/png_codec.h" #include "ui/gfx/point.h" diff --git a/browser/native_window.h b/atom/browser/native_window.h similarity index 99% rename from browser/native_window.h rename to atom/browser/native_window.h index 287138aa8dc5..8717192034eb 100644 --- a/browser/native_window.h +++ b/atom/browser/native_window.h @@ -11,7 +11,7 @@ #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/observer_list.h" -#include "browser/native_window_observer.h" +#include "atom/browser/native_window_observer.h" #include "content/public/browser/notification_registrar.h" #include "content/public/browser/notification_observer.h" #include "ui/gfx/image/image.h" diff --git a/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc similarity index 98% rename from browser/native_window_gtk.cc rename to atom/browser/native_window_gtk.cc index e90a1954a19f..34bdcb25b6ac 100644 --- a/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/native_window_gtk.h" +#include "atom/browser/native_window_gtk.h" #include "base/values.h" -#include "browser/ui/gtk/gtk_window_util.h" -#include "common/draggable_region.h" -#include "common/options_switches.h" +#include "atom/browser/ui/gtk/gtk_window_util.h" +#include "atom/common/draggable_region.h" +#include "atom/common/options_switches.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents_view.h" #include "content/public/common/renderer_preferences.h" diff --git a/browser/native_window_gtk.h b/atom/browser/native_window_gtk.h similarity index 97% rename from browser/native_window_gtk.h rename to atom/browser/native_window_gtk.h index d72b4a05f8b6..76da28567748 100644 --- a/browser/native_window_gtk.h +++ b/atom/browser/native_window_gtk.h @@ -7,9 +7,9 @@ #include -#include "browser/native_window.h" -#include "browser/ui/accelerator_util.h" -#include "browser/ui/gtk/menu_gtk.h" +#include "atom/browser/native_window.h" +#include "atom/browser/ui/accelerator_util.h" +#include "atom/browser/ui/gtk/menu_gtk.h" #include "third_party/skia/include/core/SkRegion.h" #include "ui/base/accelerators/accelerator.h" #include "ui/base/gtk/gtk_signal.h" diff --git a/browser/native_window_mac.h b/atom/browser/native_window_mac.h similarity index 98% rename from browser/native_window_mac.h rename to atom/browser/native_window_mac.h index 0338eebefc3e..d5efdfefe8b1 100644 --- a/browser/native_window_mac.h +++ b/atom/browser/native_window_mac.h @@ -8,7 +8,7 @@ #import #include "base/memory/scoped_ptr.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" class SkRegion; diff --git a/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm similarity index 98% rename from browser/native_window_mac.mm rename to atom/browser/native_window_mac.mm index 9ef68f42c515..8ee1276924c6 100644 --- a/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/native_window_mac.h" +#include "atom/browser/native_window_mac.h" #include @@ -10,11 +10,11 @@ #include "base/mac/scoped_nsobject.h" #include "base/strings/sys_string_conversions.h" #include "base/values.h" -#import "browser/ui/cocoa/event_processing_window.h" +#import "atom/browser/ui/cocoa/event_processing_window.h" #include "brightray/browser/inspectable_web_contents.h" #include "brightray/browser/inspectable_web_contents_view.h" -#include "common/draggable_region.h" -#include "common/options_switches.h" +#include "atom/common/draggable_region.h" +#include "atom/common/options_switches.h" #include "content/public/browser/native_web_keyboard_event.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents_view.h" diff --git a/browser/native_window_observer.h b/atom/browser/native_window_observer.h similarity index 100% rename from browser/native_window_observer.h rename to atom/browser/native_window_observer.h diff --git a/browser/native_window_win.cc b/atom/browser/native_window_win.cc similarity index 98% rename from browser/native_window_win.cc rename to atom/browser/native_window_win.cc index af8b34184375..245e1af3ea9f 100644 --- a/browser/native_window_win.cc +++ b/atom/browser/native_window_win.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/native_window_win.h" +#include "atom/browser/native_window_win.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" -#include "browser/api/atom_api_menu.h" -#include "browser/ui/win/menu_2.h" -#include "browser/ui/win/native_menu_win.h" -#include "common/draggable_region.h" -#include "common/options_switches.h" +#include "atom/browser/api/atom_api_menu.h" +#include "atom/browser/ui/win/menu_2.h" +#include "atom/browser/ui/win/native_menu_win.h" +#include "atom/common/draggable_region.h" +#include "atom/common/options_switches.h" #include "content/public/browser/native_web_keyboard_event.h" #include "content/public/browser/render_view_host.h" #include "content/public/browser/render_widget_host_view.h" diff --git a/browser/native_window_win.h b/atom/browser/native_window_win.h similarity index 98% rename from browser/native_window_win.h rename to atom/browser/native_window_win.h index cab0abe84754..769ef5d97b7b 100644 --- a/browser/native_window_win.h +++ b/atom/browser/native_window_win.h @@ -7,8 +7,8 @@ #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" -#include "browser/native_window.h" -#include "browser/ui/accelerator_util.h" +#include "atom/browser/native_window.h" +#include "atom/browser/ui/accelerator_util.h" #include "ui/gfx/size.h" #include "ui/views/widget/widget_delegate.h" diff --git a/browser/net/adapter_request_job.cc b/atom/browser/net/adapter_request_job.cc similarity index 97% rename from browser/net/adapter_request_job.cc rename to atom/browser/net/adapter_request_job.cc index 70c9293273c2..cfa54aa116e0 100644 --- a/browser/net/adapter_request_job.cc +++ b/atom/browser/net/adapter_request_job.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/net/adapter_request_job.h" +#include "atom/browser/net/adapter_request_job.h" #include "base/threading/sequenced_worker_pool.h" -#include "browser/net/url_request_string_job.h" +#include "atom/browser/net/url_request_string_job.h" #include "content/public/browser/browser_thread.h" #include "net/base/net_errors.h" #include "net/url_request/url_request_error_job.h" diff --git a/browser/net/adapter_request_job.h b/atom/browser/net/adapter_request_job.h similarity index 100% rename from browser/net/adapter_request_job.h rename to atom/browser/net/adapter_request_job.h diff --git a/browser/net/atom_url_request_context_getter.cc b/atom/browser/net/atom_url_request_context_getter.cc similarity index 98% rename from browser/net/atom_url_request_context_getter.cc rename to atom/browser/net/atom_url_request_context_getter.cc index bdc72028e6e5..811bd584d68e 100644 --- a/browser/net/atom_url_request_context_getter.cc +++ b/atom/browser/net/atom_url_request_context_getter.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/net/atom_url_request_context_getter.h" +#include "atom/browser/net/atom_url_request_context_getter.h" #include "base/strings/string_util.h" #include "base/threading/sequenced_worker_pool.h" #include "base/threading/worker_pool.h" -#include "browser/net/atom_url_request_job_factory.h" +#include "atom/browser/net/atom_url_request_job_factory.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/cookie_store_factory.h" #include "content/public/common/url_constants.h" diff --git a/browser/net/atom_url_request_context_getter.h b/atom/browser/net/atom_url_request_context_getter.h similarity index 100% rename from browser/net/atom_url_request_context_getter.h rename to atom/browser/net/atom_url_request_context_getter.h diff --git a/browser/net/atom_url_request_job_factory.cc b/atom/browser/net/atom_url_request_job_factory.cc similarity index 98% rename from browser/net/atom_url_request_job_factory.cc rename to atom/browser/net/atom_url_request_job_factory.cc index 01188674dc0e..b0ee61049870 100644 --- a/browser/net/atom_url_request_job_factory.cc +++ b/atom/browser/net/atom_url_request_job_factory.cc @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/net/atom_url_request_job_factory.h" +#include "atom/browser/net/atom_url_request_job_factory.h" #include "base/stl_util.h" #include "net/base/load_flags.h" diff --git a/browser/net/atom_url_request_job_factory.h b/atom/browser/net/atom_url_request_job_factory.h similarity index 100% rename from browser/net/atom_url_request_job_factory.h rename to atom/browser/net/atom_url_request_job_factory.h diff --git a/browser/net/url_request_string_job.cc b/atom/browser/net/url_request_string_job.cc similarity index 94% rename from browser/net/url_request_string_job.cc rename to atom/browser/net/url_request_string_job.cc index 4a0e3ada8c83..76ecb7de25c8 100644 --- a/browser/net/url_request_string_job.cc +++ b/atom/browser/net/url_request_string_job.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/net/url_request_string_job.h" +#include "atom/browser/net/url_request_string_job.h" #include "net/base/net_errors.h" diff --git a/browser/net/url_request_string_job.h b/atom/browser/net/url_request_string_job.h similarity index 100% rename from browser/net/url_request_string_job.h rename to atom/browser/net/url_request_string_job.h diff --git a/browser/resources/mac/Info.plist b/atom/browser/resources/mac/Info.plist similarity index 100% rename from browser/resources/mac/Info.plist rename to atom/browser/resources/mac/Info.plist diff --git a/browser/resources/mac/atom.icns b/atom/browser/resources/mac/atom.icns similarity index 100% rename from browser/resources/mac/atom.icns rename to atom/browser/resources/mac/atom.icns diff --git a/browser/resources/win/atom.ico b/atom/browser/resources/win/atom.ico similarity index 100% rename from browser/resources/win/atom.ico rename to atom/browser/resources/win/atom.ico diff --git a/browser/resources/win/atom.rc b/atom/browser/resources/win/atom.rc similarity index 100% rename from browser/resources/win/atom.rc rename to atom/browser/resources/win/atom.rc diff --git a/browser/resources/win/resource.h b/atom/browser/resources/win/resource.h similarity index 100% rename from browser/resources/win/resource.h rename to atom/browser/resources/win/resource.h diff --git a/browser/ui/accelerator_util.cc b/atom/browser/ui/accelerator_util.cc similarity index 99% rename from browser/ui/accelerator_util.cc rename to atom/browser/ui/accelerator_util.cc index b85bd6685ff7..424d4810965c 100644 --- a/browser/ui/accelerator_util.cc +++ b/atom/browser/ui/accelerator_util.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/accelerator_util.h" +#include "atom/browser/ui/accelerator_util.h" #include diff --git a/browser/ui/accelerator_util.h b/atom/browser/ui/accelerator_util.h similarity index 100% rename from browser/ui/accelerator_util.h rename to atom/browser/ui/accelerator_util.h diff --git a/browser/ui/accelerator_util_gtk.cc b/atom/browser/ui/accelerator_util_gtk.cc similarity index 93% rename from browser/ui/accelerator_util_gtk.cc rename to atom/browser/ui/accelerator_util_gtk.cc index ac14b260be5e..875266789748 100644 --- a/browser/ui/accelerator_util_gtk.cc +++ b/atom/browser/ui/accelerator_util_gtk.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/accelerator_util.h" +#include "atom/browser/ui/accelerator_util.h" #include "ui/base/accelerators/accelerator.h" #include "ui/base/accelerators/platform_accelerator_gtk.h" diff --git a/browser/ui/accelerator_util_mac.mm b/atom/browser/ui/accelerator_util_mac.mm similarity index 96% rename from browser/ui/accelerator_util_mac.mm rename to atom/browser/ui/accelerator_util_mac.mm index 5f5bb700a46f..536b04b45c7a 100644 --- a/browser/ui/accelerator_util_mac.mm +++ b/atom/browser/ui/accelerator_util_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/accelerator_util.h" +#include "atom/browser/ui/accelerator_util.h" #include "ui/base/accelerators/accelerator.h" #import "ui/base/accelerators/platform_accelerator_cocoa.h" diff --git a/browser/ui/accelerator_util_win.cc b/atom/browser/ui/accelerator_util_win.cc similarity index 87% rename from browser/ui/accelerator_util_win.cc rename to atom/browser/ui/accelerator_util_win.cc index d4a861fd18ef..c84166246aae 100644 --- a/browser/ui/accelerator_util_win.cc +++ b/atom/browser/ui/accelerator_util_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/accelerator_util.h" +#include "atom/browser/ui/accelerator_util.h" #include "ui/base/accelerators/accelerator.h" diff --git a/browser/ui/cocoa/atom_menu_controller.h b/atom/browser/ui/cocoa/atom_menu_controller.h similarity index 100% rename from browser/ui/cocoa/atom_menu_controller.h rename to atom/browser/ui/cocoa/atom_menu_controller.h diff --git a/browser/ui/cocoa/atom_menu_controller.mm b/atom/browser/ui/cocoa/atom_menu_controller.mm similarity index 99% rename from browser/ui/cocoa/atom_menu_controller.mm rename to atom/browser/ui/cocoa/atom_menu_controller.mm index 0a23ab2921e7..0312ef169a12 100644 --- a/browser/ui/cocoa/atom_menu_controller.mm +++ b/atom/browser/ui/cocoa/atom_menu_controller.mm @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "browser/ui/cocoa/atom_menu_controller.h" +#import "atom/browser/ui/cocoa/atom_menu_controller.h" #include "base/logging.h" #include "base/strings/sys_string_conversions.h" diff --git a/browser/ui/cocoa/event_processing_window.h b/atom/browser/ui/cocoa/event_processing_window.h similarity index 100% rename from browser/ui/cocoa/event_processing_window.h rename to atom/browser/ui/cocoa/event_processing_window.h diff --git a/browser/ui/cocoa/event_processing_window.mm b/atom/browser/ui/cocoa/event_processing_window.mm similarity index 98% rename from browser/ui/cocoa/event_processing_window.mm rename to atom/browser/ui/cocoa/event_processing_window.mm index ce6e9b2f35ae..2efba68d2ab0 100644 --- a/browser/ui/cocoa/event_processing_window.mm +++ b/atom/browser/ui/cocoa/event_processing_window.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "browser/ui/cocoa/event_processing_window.h" +#import "atom/browser/ui/cocoa/event_processing_window.h" #include "base/logging.h" #import "content/public/browser/render_widget_host_view_mac_base.h" diff --git a/browser/ui/file_dialog.h b/atom/browser/ui/file_dialog.h similarity index 100% rename from browser/ui/file_dialog.h rename to atom/browser/ui/file_dialog.h diff --git a/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc similarity index 98% rename from browser/ui/file_dialog_gtk.cc rename to atom/browser/ui/file_dialog_gtk.cc index 94c9d53c0922..b3ac3b975ef9 100644 --- a/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/file_dialog.h" +#include "atom/browser/ui/file_dialog.h" #include "base/callback.h" #include "base/file_util.h" -#include "browser/native_window.h" -#include "browser/ui/gtk/gtk_util.h" +#include "atom/browser/native_window.h" +#include "atom/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" namespace file_dialog { diff --git a/browser/ui/file_dialog_mac.mm b/atom/browser/ui/file_dialog_mac.mm similarity index 98% rename from browser/ui/file_dialog_mac.mm rename to atom/browser/ui/file_dialog_mac.mm index 80f655d9f6e7..495db6849824 100644 --- a/browser/ui/file_dialog_mac.mm +++ b/atom/browser/ui/file_dialog_mac.mm @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/file_dialog.h" +#include "atom/browser/ui/file_dialog.h" #import #include #include "base/file_util.h" #include "base/strings/sys_string_conversions.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" namespace file_dialog { diff --git a/browser/ui/file_dialog_win.cc b/atom/browser/ui/file_dialog_win.cc similarity index 99% rename from browser/ui/file_dialog_win.cc rename to atom/browser/ui/file_dialog_win.cc index b8b8233db9f4..d813dfe9ada0 100644 --- a/browser/ui/file_dialog_win.cc +++ b/atom/browser/ui/file_dialog_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/file_dialog.h" +#include "atom/browser/ui/file_dialog.h" #include #include @@ -15,7 +15,7 @@ #include "base/strings/string_split.h" #include "base/strings/utf_string_conversions.h" #include "base/win/registry.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" #include "third_party/wtl/include/atlapp.h" #include "third_party/wtl/include/atldlgs.h" diff --git a/browser/ui/gtk/event_utils.cc b/atom/browser/ui/gtk/event_utils.cc similarity index 97% rename from browser/ui/gtk/event_utils.cc rename to atom/browser/ui/gtk/event_utils.cc index c21e15417629..76c998a68f77 100644 --- a/browser/ui/gtk/event_utils.cc +++ b/atom/browser/ui/gtk/event_utils.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/event_utils.h" +#include "atom/browser/ui/gtk/event_utils.h" #include "base/logging.h" #include "ui/base/window_open_disposition.h" diff --git a/browser/ui/gtk/event_utils.h b/atom/browser/ui/gtk/event_utils.h similarity index 100% rename from browser/ui/gtk/event_utils.h rename to atom/browser/ui/gtk/event_utils.h diff --git a/browser/ui/gtk/gtk_custom_menu.cc b/atom/browser/ui/gtk/gtk_custom_menu.cc similarity index 98% rename from browser/ui/gtk/gtk_custom_menu.cc rename to atom/browser/ui/gtk/gtk_custom_menu.cc index 4606cafdcfae..6dc4c4ed96b6 100644 --- a/browser/ui/gtk/gtk_custom_menu.cc +++ b/atom/browser/ui/gtk/gtk_custom_menu.cc @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/gtk_custom_menu.h" +#include "atom/browser/ui/gtk/gtk_custom_menu.h" -#include "browser/ui/gtk/gtk_custom_menu_item.h" +#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" G_DEFINE_TYPE(GtkCustomMenu, gtk_custom_menu, GTK_TYPE_MENU) diff --git a/browser/ui/gtk/gtk_custom_menu.h b/atom/browser/ui/gtk/gtk_custom_menu.h similarity index 100% rename from browser/ui/gtk/gtk_custom_menu.h rename to atom/browser/ui/gtk/gtk_custom_menu.h diff --git a/browser/ui/gtk/gtk_custom_menu_item.cc b/atom/browser/ui/gtk/gtk_custom_menu_item.cc similarity index 99% rename from browser/ui/gtk/gtk_custom_menu_item.cc rename to atom/browser/ui/gtk/gtk_custom_menu_item.cc index 617c1711995a..b9c81581afb9 100644 --- a/browser/ui/gtk/gtk_custom_menu_item.cc +++ b/atom/browser/ui/gtk/gtk_custom_menu_item.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/gtk_custom_menu_item.h" +#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" #include "base/i18n/rtl.h" -#include "browser/ui/gtk/gtk_custom_menu.h" +#include "atom/browser/ui/gtk/gtk_custom_menu.h" #include "ui/gfx/gtk_compat.h" // This method was autogenerated by the program glib-genmarshall, which diff --git a/browser/ui/gtk/gtk_custom_menu_item.h b/atom/browser/ui/gtk/gtk_custom_menu_item.h similarity index 100% rename from browser/ui/gtk/gtk_custom_menu_item.h rename to atom/browser/ui/gtk/gtk_custom_menu_item.h diff --git a/browser/ui/gtk/gtk_util.cc b/atom/browser/ui/gtk/gtk_util.cc similarity index 98% rename from browser/ui/gtk/gtk_util.cc rename to atom/browser/ui/gtk/gtk_util.cc index 8f6f7c8daa94..7db95dadf152 100644 --- a/browser/ui/gtk/gtk_util.cc +++ b/atom/browser/ui/gtk/gtk_util.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/gtk_util.h" +#include "atom/browser/ui/gtk/gtk_util.h" #include diff --git a/browser/ui/gtk/gtk_util.h b/atom/browser/ui/gtk/gtk_util.h similarity index 100% rename from browser/ui/gtk/gtk_util.h rename to atom/browser/ui/gtk/gtk_util.h diff --git a/browser/ui/gtk/gtk_window_util.cc b/atom/browser/ui/gtk/gtk_window_util.cc similarity index 99% rename from browser/ui/gtk/gtk_window_util.cc rename to atom/browser/ui/gtk/gtk_window_util.cc index c06e3302b373..e68102c9d06e 100644 --- a/browser/ui/gtk/gtk_window_util.cc +++ b/atom/browser/ui/gtk/gtk_window_util.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/gtk_window_util.h" +#include "atom/browser/ui/gtk/gtk_window_util.h" #include #include "content/public/browser/render_view_host.h" diff --git a/browser/ui/gtk/gtk_window_util.h b/atom/browser/ui/gtk/gtk_window_util.h similarity index 100% rename from browser/ui/gtk/gtk_window_util.h rename to atom/browser/ui/gtk/gtk_window_util.h diff --git a/browser/ui/gtk/menu_gtk.cc b/atom/browser/ui/gtk/menu_gtk.cc similarity index 99% rename from browser/ui/gtk/menu_gtk.cc rename to atom/browser/ui/gtk/menu_gtk.cc index 50f19fb9647b..c3d32dbccd1a 100644 --- a/browser/ui/gtk/menu_gtk.cc +++ b/atom/browser/ui/gtk/menu_gtk.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/gtk/menu_gtk.h" +#include "atom/browser/ui/gtk/menu_gtk.h" #include @@ -12,10 +12,10 @@ #include "base/message_loop/message_loop.h" #include "base/stl_util.h" #include "base/strings/utf_string_conversions.h" -#include "browser/ui/gtk/event_utils.h" -#include "browser/ui/gtk/gtk_custom_menu.h" -#include "browser/ui/gtk/gtk_custom_menu_item.h" -#include "browser/ui/gtk/gtk_util.h" +#include "atom/browser/ui/gtk/event_utils.h" +#include "atom/browser/ui/gtk/gtk_custom_menu.h" +#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" +#include "atom/browser/ui/gtk/gtk_util.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/base/accelerators/menu_label_accelerator_util_linux.h" #include "ui/base/accelerators/platform_accelerator_gtk.h" diff --git a/browser/ui/gtk/menu_gtk.h b/atom/browser/ui/gtk/menu_gtk.h similarity index 100% rename from browser/ui/gtk/menu_gtk.h rename to atom/browser/ui/gtk/menu_gtk.h diff --git a/browser/ui/message_box.h b/atom/browser/ui/message_box.h similarity index 100% rename from browser/ui/message_box.h rename to atom/browser/ui/message_box.h diff --git a/browser/ui/message_box_gtk.cc b/atom/browser/ui/message_box_gtk.cc similarity index 97% rename from browser/ui/message_box_gtk.cc rename to atom/browser/ui/message_box_gtk.cc index 0fbb156f7dd9..73447340bc30 100644 --- a/browser/ui/message_box_gtk.cc +++ b/atom/browser/ui/message_box_gtk.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/message_box.h" +#include "atom/browser/ui/message_box.h" #include "base/callback.h" #include "base/strings/string_util.h" -#include "browser/native_window.h" -#include "browser/ui/gtk/gtk_util.h" +#include "atom/browser/native_window.h" +#include "atom/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" namespace atom { diff --git a/browser/ui/message_box_mac.mm b/atom/browser/ui/message_box_mac.mm similarity index 98% rename from browser/ui/message_box_mac.mm rename to atom/browser/ui/message_box_mac.mm index 5847d26195ab..8e9acf9605d3 100644 --- a/browser/ui/message_box_mac.mm +++ b/atom/browser/ui/message_box_mac.mm @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/message_box.h" +#include "atom/browser/ui/message_box.h" #import #include "base/callback.h" #include "base/strings/sys_string_conversions.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" @interface ModalDelegate : NSObject { @private diff --git a/browser/ui/message_box_win.cc b/atom/browser/ui/message_box_win.cc similarity index 99% rename from browser/ui/message_box_win.cc rename to atom/browser/ui/message_box_win.cc index c7a61b8edbb7..3227c8b2a594 100644 --- a/browser/ui/message_box_win.cc +++ b/atom/browser/ui/message_box_win.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/message_box.h" +#include "atom/browser/ui/message_box.h" #include "base/callback.h" #include "base/message_loop/message_loop.h" #include "base/run_loop.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" -#include "browser/native_window.h" +#include "atom/browser/native_window.h" #include "skia/ext/skia_utils_win.h" #include "ui/views/controls/button/label_button.h" #include "ui/views/controls/message_box_view.h" diff --git a/browser/ui/win/menu_2.cc b/atom/browser/ui/win/menu_2.cc similarity index 97% rename from browser/ui/win/menu_2.cc rename to atom/browser/ui/win/menu_2.cc index c2bcd476ec7e..6db97359bcd0 100644 --- a/browser/ui/win/menu_2.cc +++ b/atom/browser/ui/win/menu_2.cc @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/win/menu_2.h" +#include "atom/browser/ui/win/menu_2.h" #include "ui/base/models/menu_model.h" #include "ui/views/controls/menu/menu_listener.h" diff --git a/browser/ui/win/menu_2.h b/atom/browser/ui/win/menu_2.h similarity index 98% rename from browser/ui/win/menu_2.h rename to atom/browser/ui/win/menu_2.h index 67a80e28de11..396d3302272a 100644 --- a/browser/ui/win/menu_2.h +++ b/atom/browser/ui/win/menu_2.h @@ -8,7 +8,7 @@ #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" -#include "browser/ui/win/native_menu_win.h" +#include "atom/browser/ui/win/native_menu_win.h" #include "ui/gfx/native_widget_types.h" namespace gfx { diff --git a/browser/ui/win/native_menu_win.cc b/atom/browser/ui/win/native_menu_win.cc similarity index 99% rename from browser/ui/win/native_menu_win.cc rename to atom/browser/ui/win/native_menu_win.cc index 9ed6b8306402..47555f8f30ac 100644 --- a/browser/ui/win/native_menu_win.cc +++ b/atom/browser/ui/win/native_menu_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/ui/win/native_menu_win.h" +#include "atom/browser/ui/win/native_menu_win.h" #include @@ -12,7 +12,7 @@ #include "base/stl_util.h" #include "base/strings/string_util.h" #include "base/win/wrapped_window_proc.h" -#include "browser/ui/win/menu_2.h" +#include "atom/browser/ui/win/menu_2.h" #include "ui/base/accelerators/accelerator.h" #include "ui/events/keycodes/keyboard_codes.h" #include "ui/base/l10n/l10n_util.h" diff --git a/browser/ui/win/native_menu_win.h b/atom/browser/ui/win/native_menu_win.h similarity index 100% rename from browser/ui/win/native_menu_win.h rename to atom/browser/ui/win/native_menu_win.h diff --git a/browser/window_list.cc b/atom/browser/window_list.cc similarity index 94% rename from browser/window_list.cc rename to atom/browser/window_list.cc index 891ac5b03e69..9343d89aca70 100644 --- a/browser/window_list.cc +++ b/atom/browser/window_list.cc @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "browser/window_list.h" +#include "atom/browser/window_list.h" #include #include "base/logging.h" -#include "browser/native_window.h" -#include "browser/window_list_observer.h" +#include "atom/browser/native_window.h" +#include "atom/browser/window_list_observer.h" namespace atom { diff --git a/browser/window_list.h b/atom/browser/window_list.h similarity index 100% rename from browser/window_list.h rename to atom/browser/window_list.h diff --git a/browser/window_list_observer.h b/atom/browser/window_list_observer.h similarity index 100% rename from browser/window_list_observer.h rename to atom/browser/window_list_observer.h diff --git a/common/api/api_messages.cc b/atom/common/api/api_messages.cc similarity index 73% rename from common/api/api_messages.cc rename to atom/common/api/api_messages.cc index e5ba3c9f1680..4fa907517c1a 100644 --- a/common/api/api_messages.cc +++ b/atom/common/api/api_messages.cc @@ -4,30 +4,30 @@ // Get basic type definitions. #define IPC_MESSAGE_IMPL -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" // Generate constructors. #include "ipc/struct_constructor_macros.h" -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" // Generate destructors. #include "ipc/struct_destructor_macros.h" -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" // Generate param traits write methods. #include "ipc/param_traits_write_macros.h" namespace IPC { -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" } // namespace IPC // Generate param traits read methods. #include "ipc/param_traits_read_macros.h" namespace IPC { -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" } // namespace IPC // Generate param traits log methods. #include "ipc/param_traits_log_macros.h" namespace IPC { -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" } // namespace IPC diff --git a/common/api/api_messages.h b/atom/common/api/api_messages.h similarity index 97% rename from common/api/api_messages.h rename to atom/common/api/api_messages.h index e92a4d3f0b2a..003ac790fc84 100644 --- a/common/api/api_messages.h +++ b/atom/common/api/api_messages.h @@ -6,7 +6,7 @@ #include "base/strings/string16.h" #include "base/values.h" -#include "common/draggable_region.h" +#include "atom/common/draggable_region.h" #include "content/public/common/common_param_traits.h" #include "ipc/ipc_message_macros.h" diff --git a/common/api/atom_api_clipboard.cc b/atom/common/api/atom_api_clipboard.cc similarity index 94% rename from common/api/atom_api_clipboard.cc rename to atom/common/api/atom_api_clipboard.cc index d0c97d350fc9..e7d4c7e96c49 100644 --- a/common/api/atom_api_clipboard.cc +++ b/atom/common/api/atom_api_clipboard.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_clipboard.h" +#include "atom/common/api/atom_api_clipboard.h" #include -#include "common/v8/native_type_conversions.h" +#include "atom/common/v8/native_type_conversions.h" #include "ui/base/clipboard/clipboard.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_api_clipboard.h b/atom/common/api/atom_api_clipboard.h similarity index 100% rename from common/api/atom_api_clipboard.h rename to atom/common/api/atom_api_clipboard.h diff --git a/common/api/atom_api_crash_reporter.cc b/atom/common/api/atom_api_crash_reporter.cc similarity index 82% rename from common/api/atom_api_crash_reporter.cc rename to atom/common/api/atom_api_crash_reporter.cc index d64796e2c12f..325cb69c747f 100644 --- a/common/api/atom_api_crash_reporter.cc +++ b/atom/common/api/atom_api_crash_reporter.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_crash_reporter.h" +#include "atom/common/api/atom_api_crash_reporter.h" -#include "common/crash_reporter/crash_reporter.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/crash_reporter/crash_reporter.h" +#include "atom/common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_api_crash_reporter.h b/atom/common/api/atom_api_crash_reporter.h similarity index 100% rename from common/api/atom_api_crash_reporter.h rename to atom/common/api/atom_api_crash_reporter.h diff --git a/common/api/atom_api_event_emitter.cc b/atom/common/api/atom_api_event_emitter.cc similarity index 91% rename from common/api/atom_api_event_emitter.cc rename to atom/common/api/atom_api_event_emitter.cc index 998876b05270..c6640492418c 100644 --- a/common/api/atom_api_event_emitter.cc +++ b/atom/common/api/atom_api_event_emitter.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_event_emitter.h" +#include "atom/common/api/atom_api_event_emitter.h" #include #include "base/logging.h" -#include "browser/api/atom_api_event.h" -#include "common/v8/native_type_conversions.h" +#include "atom/browser/api/atom_api_event.h" +#include "atom/common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_api_event_emitter.h b/atom/common/api/atom_api_event_emitter.h similarity index 100% rename from common/api/atom_api_event_emitter.h rename to atom/common/api/atom_api_event_emitter.h diff --git a/common/api/atom_api_id_weak_map.cc b/atom/common/api/atom_api_id_weak_map.cc similarity index 96% rename from common/api/atom_api_id_weak_map.cc rename to atom/common/api/atom_api_id_weak_map.cc index 09abbe9017b2..3a2fb2ce5dbf 100644 --- a/common/api/atom_api_id_weak_map.cc +++ b/atom/common/api/atom_api_id_weak_map.cc @@ -3,13 +3,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_id_weak_map.h" +#include "atom/common/api/atom_api_id_weak_map.h" #include #include "base/logging.h" -#include "common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/native_type_conversions.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_api_id_weak_map.h b/atom/common/api/atom_api_id_weak_map.h similarity index 96% rename from common/api/atom_api_id_weak_map.h rename to atom/common/api/atom_api_id_weak_map.h index d2c0a33ac68f..c4e02c2c8766 100644 --- a/common/api/atom_api_id_weak_map.h +++ b/atom/common/api/atom_api_id_weak_map.h @@ -9,7 +9,7 @@ #include #include "base/basictypes.h" -#include "common/v8/scoped_persistent.h" +#include "atom/common/v8/scoped_persistent.h" #include "vendor/node/src/node_object_wrap.h" namespace atom { diff --git a/common/api/atom_api_screen.cc b/atom/common/api/atom_api_screen.cc similarity index 94% rename from common/api/atom_api_screen.cc rename to atom/common/api/atom_api_screen.cc index 8e7945003e3f..f5dc4388d552 100644 --- a/common/api/atom_api_screen.cc +++ b/atom/common/api/atom_api_screen.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_screen.h" +#include "atom/common/api/atom_api_screen.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/v8/native_type_conversions.h" #include "ui/gfx/screen.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" #if defined(TOOLKIT_GTK) #include "base/command_line.h" diff --git a/common/api/atom_api_screen.h b/atom/common/api/atom_api_screen.h similarity index 94% rename from common/api/atom_api_screen.h rename to atom/common/api/atom_api_screen.h index df762f3e8d60..65197d9c2ab9 100644 --- a/common/api/atom_api_screen.h +++ b/atom/common/api/atom_api_screen.h @@ -5,7 +5,7 @@ #ifndef ATOM_COMMON_API_ATOM_API_SCREEN_H_ #define ATOM_COMMON_API_ATOM_API_SCREEN_H_ -#include "common/api/atom_api_event_emitter.h" +#include "atom/common/api/atom_api_event_emitter.h" namespace gfx { class Screen; diff --git a/common/api/atom_api_shell.cc b/atom/common/api/atom_api_shell.cc similarity index 91% rename from common/api/atom_api_shell.cc rename to atom/common/api/atom_api_shell.cc index 63a114b87f80..6864e25f2eae 100644 --- a/common/api/atom_api_shell.cc +++ b/atom/common/api/atom_api_shell.cc @@ -2,16 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_api_shell.h" +#include "atom/common/api/atom_api_shell.h" #include #include "base/files/file_path.h" -#include "common/platform_util.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/platform_util.h" +#include "atom/common/v8/native_type_conversions.h" #include "url/gurl.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_api_shell.h b/atom/common/api/atom_api_shell.h similarity index 100% rename from common/api/atom_api_shell.h rename to atom/common/api/atom_api_shell.h diff --git a/common/api/atom_api_v8_util.cc b/atom/common/api/atom_api_v8_util.cc similarity index 92% rename from common/api/atom_api_v8_util.cc rename to atom/common/api/atom_api_v8_util.cc index 1f3d250af6e2..8aa20656457a 100644 --- a/common/api/atom_api_v8_util.cc +++ b/atom/common/api/atom_api_v8_util.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/object_life_monitor.h" +#include "atom/common/api/object_life_monitor.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/v8/native_type_conversions.h" #include "v8/include/v8-profiler.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_bindings.cc b/atom/common/api/atom_bindings.cc similarity index 97% rename from common/api/atom_bindings.cc rename to atom/common/api/atom_bindings.cc index 060486b45756..91c5b2523d16 100644 --- a/common/api/atom_bindings.cc +++ b/atom/common/api/atom_bindings.cc @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/atom_bindings.h" +#include "atom/common/api/atom_bindings.h" #include "base/logging.h" -#include "common/atom_version.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/atom_version.h" +#include "atom/common/v8/native_type_conversions.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/api/atom_bindings.h b/atom/common/api/atom_bindings.h similarity index 100% rename from common/api/atom_bindings.h rename to atom/common/api/atom_bindings.h diff --git a/common/api/atom_extensions.cc b/atom/common/api/atom_extensions.cc similarity index 91% rename from common/api/atom_extensions.cc rename to atom/common/api/atom_extensions.cc index 4bbf7dd634a8..16cd74e7846c 100644 --- a/common/api/atom_extensions.cc +++ b/atom/common/api/atom_extensions.cc @@ -8,7 +8,7 @@ #include "base/strings/string_util.h" #include "vendor/node/src/node_version.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { @@ -20,7 +20,7 @@ namespace atom { #define NODE_EXT_LIST_ITEM NODE_MODULE_DECL #define NODE_EXT_LIST_END -#include "common/api/atom_extensions.h" +#include "atom/common/api/atom_extensions.h" #undef NODE_EXT_LIST_START #undef NODE_EXT_LIST_ITEM @@ -31,7 +31,7 @@ namespace atom { #define NODE_EXT_LIST_ITEM NODE_EXT_STRING #define NODE_EXT_LIST_END NULL}; -#include "common/api/atom_extensions.h" // NOLINT +#include "atom/common/api/atom_extensions.h" // NOLINT node::node_module_struct* GetBuiltinModule(const char *name, bool is_browser) { char common[128]; diff --git a/common/api/atom_extensions.h b/atom/common/api/atom_extensions.h similarity index 100% rename from common/api/atom_extensions.h rename to atom/common/api/atom_extensions.h diff --git a/common/api/lib/callbacks-registry.coffee b/atom/common/api/lib/callbacks-registry.coffee similarity index 100% rename from common/api/lib/callbacks-registry.coffee rename to atom/common/api/lib/callbacks-registry.coffee diff --git a/common/api/lib/clipboard.coffee b/atom/common/api/lib/clipboard.coffee similarity index 100% rename from common/api/lib/clipboard.coffee rename to atom/common/api/lib/clipboard.coffee diff --git a/common/api/lib/crash-reporter.coffee b/atom/common/api/lib/crash-reporter.coffee similarity index 100% rename from common/api/lib/crash-reporter.coffee rename to atom/common/api/lib/crash-reporter.coffee diff --git a/common/api/lib/id-weak-map.coffee b/atom/common/api/lib/id-weak-map.coffee similarity index 100% rename from common/api/lib/id-weak-map.coffee rename to atom/common/api/lib/id-weak-map.coffee diff --git a/common/api/lib/screen.coffee b/atom/common/api/lib/screen.coffee similarity index 100% rename from common/api/lib/screen.coffee rename to atom/common/api/lib/screen.coffee diff --git a/common/api/lib/shell.coffee b/atom/common/api/lib/shell.coffee similarity index 100% rename from common/api/lib/shell.coffee rename to atom/common/api/lib/shell.coffee diff --git a/common/api/object_life_monitor.cc b/atom/common/api/object_life_monitor.cc similarity index 95% rename from common/api/object_life_monitor.cc rename to atom/common/api/object_life_monitor.cc index fc9514363f49..d058d6d5dcf7 100644 --- a/common/api/object_life_monitor.cc +++ b/atom/common/api/object_life_monitor.cc @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/api/object_life_monitor.h" +#include "atom/common/api/object_life_monitor.h" namespace atom { diff --git a/common/api/object_life_monitor.h b/atom/common/api/object_life_monitor.h similarity index 94% rename from common/api/object_life_monitor.h rename to atom/common/api/object_life_monitor.h index 2621a62baf30..101560f161e4 100644 --- a/common/api/object_life_monitor.h +++ b/atom/common/api/object_life_monitor.h @@ -7,7 +7,7 @@ #define ATOM_COMMON_API_OBJECT_LIFE_MONITOR_H_ #include "base/basictypes.h" -#include "common/v8/scoped_persistent.h" +#include "atom/common/v8/scoped_persistent.h" namespace atom { diff --git a/common/atom_version.h b/atom/common/atom_version.h similarity index 100% rename from common/atom_version.h rename to atom/common/atom_version.h diff --git a/common/crash_reporter/crash_reporter.cc b/atom/common/crash_reporter/crash_reporter.cc similarity index 91% rename from common/crash_reporter/crash_reporter.cc rename to atom/common/crash_reporter/crash_reporter.cc index 39d66956bd8f..02d82a4cc454 100644 --- a/common/crash_reporter/crash_reporter.cc +++ b/atom/common/crash_reporter/crash_reporter.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/crash_reporter.h" +#include "atom/common/crash_reporter/crash_reporter.h" #include "base/command_line.h" -#include "browser/browser.h" -#include "common/atom_version.h" +#include "atom/browser/browser.h" +#include "atom/common/atom_version.h" #include "content/public/common/content_switches.h" namespace crash_reporter { diff --git a/common/crash_reporter/crash_reporter.h b/atom/common/crash_reporter/crash_reporter.h similarity index 100% rename from common/crash_reporter/crash_reporter.h rename to atom/common/crash_reporter/crash_reporter.h diff --git a/common/crash_reporter/crash_reporter_linux.cc b/atom/common/crash_reporter/crash_reporter_linux.cc similarity index 98% rename from common/crash_reporter/crash_reporter_linux.cc rename to atom/common/crash_reporter/crash_reporter_linux.cc index ded879a42141..173bd6618035 100644 --- a/common/crash_reporter/crash_reporter_linux.cc +++ b/atom/common/crash_reporter/crash_reporter_linux.cc @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/crash_reporter_linux.h" +#include "atom/common/crash_reporter/crash_reporter_linux.h" #include #include diff --git a/common/crash_reporter/crash_reporter_linux.h b/atom/common/crash_reporter/crash_reporter_linux.h similarity index 93% rename from common/crash_reporter/crash_reporter_linux.h rename to atom/common/crash_reporter/crash_reporter_linux.h index e2349bbe5deb..749d4a30b886 100644 --- a/common/crash_reporter/crash_reporter_linux.h +++ b/atom/common/crash_reporter/crash_reporter_linux.h @@ -7,8 +7,8 @@ #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" -#include "common/crash_reporter/crash_reporter.h" -#include "common/crash_reporter/linux/crash_dump_handler.h" +#include "atom/common/crash_reporter/crash_reporter.h" +#include "atom/common/crash_reporter/linux/crash_dump_handler.h" template struct DefaultSingletonTraits; diff --git a/common/crash_reporter/crash_reporter_mac.h b/atom/common/crash_reporter/crash_reporter_mac.h similarity index 95% rename from common/crash_reporter/crash_reporter_mac.h rename to atom/common/crash_reporter/crash_reporter_mac.h index 800de9c86fbd..b9a1cc129933 100644 --- a/common/crash_reporter/crash_reporter_mac.h +++ b/atom/common/crash_reporter/crash_reporter_mac.h @@ -6,7 +6,7 @@ #define ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_MAC_H_ #include "base/compiler_specific.h" -#include "common/crash_reporter/crash_reporter.h" +#include "atom/common/crash_reporter/crash_reporter.h" #import "vendor/breakpad/src/client/mac/Framework/Breakpad.h" template struct DefaultSingletonTraits; diff --git a/common/crash_reporter/crash_reporter_mac.mm b/atom/common/crash_reporter/crash_reporter_mac.mm similarity index 97% rename from common/crash_reporter/crash_reporter_mac.mm rename to atom/common/crash_reporter/crash_reporter_mac.mm index e43b7bb9dc6d..dd2e849be3f6 100644 --- a/common/crash_reporter/crash_reporter_mac.mm +++ b/atom/common/crash_reporter/crash_reporter_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/crash_reporter_mac.h" +#include "atom/common/crash_reporter/crash_reporter_mac.h" #include "base/memory/singleton.h" #include "base/strings/sys_string_conversions.h" diff --git a/common/crash_reporter/crash_reporter_win.cc b/atom/common/crash_reporter/crash_reporter_win.cc similarity index 98% rename from common/crash_reporter/crash_reporter_win.cc rename to atom/common/crash_reporter/crash_reporter_win.cc index 2403b3b90bee..f8d1411c2cf5 100644 --- a/common/crash_reporter/crash_reporter_win.cc +++ b/atom/common/crash_reporter/crash_reporter_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/crash_reporter_win.h" +#include "atom/common/crash_reporter/crash_reporter_win.h" #include "base/file_util.h" #include "base/logging.h" diff --git a/common/crash_reporter/crash_reporter_win.h b/atom/common/crash_reporter/crash_reporter_win.h similarity index 97% rename from common/crash_reporter/crash_reporter_win.h rename to atom/common/crash_reporter/crash_reporter_win.h index 6786975546dc..bf1ef752eb7f 100644 --- a/common/crash_reporter/crash_reporter_win.h +++ b/atom/common/crash_reporter/crash_reporter_win.h @@ -7,7 +7,7 @@ #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" -#include "common/crash_reporter/crash_reporter.h" +#include "atom/common/crash_reporter/crash_reporter.h" #include "vendor/breakpad/src/client/windows/handler/exception_handler.h" template struct DefaultSingletonTraits; diff --git a/common/crash_reporter/linux/crash_dump_handler.cc b/atom/common/crash_reporter/linux/crash_dump_handler.cc similarity index 99% rename from common/crash_reporter/linux/crash_dump_handler.cc rename to atom/common/crash_reporter/linux/crash_dump_handler.cc index ddbd6e32de30..824ada737d28 100644 --- a/common/crash_reporter/linux/crash_dump_handler.cc +++ b/atom/common/crash_reporter/linux/crash_dump_handler.cc @@ -6,7 +6,7 @@ // For linux_syscall_support.h. This makes it safe to call embedded system // calls when in seccomp mode. -#include "common/crash_reporter/linux/crash_dump_handler.h" +#include "atom/common/crash_reporter/linux/crash_dump_handler.h" #include diff --git a/common/crash_reporter/linux/crash_dump_handler.h b/atom/common/crash_reporter/linux/crash_dump_handler.h similarity index 100% rename from common/crash_reporter/linux/crash_dump_handler.h rename to atom/common/crash_reporter/linux/crash_dump_handler.h diff --git a/common/crash_reporter/win/crash_service.cc b/atom/common/crash_reporter/win/crash_service.cc similarity index 99% rename from common/crash_reporter/win/crash_service.cc rename to atom/common/crash_reporter/win/crash_service.cc index 0a16dc96a0f1..e76c875b4600 100644 --- a/common/crash_reporter/win/crash_service.cc +++ b/atom/common/crash_reporter/win/crash_service.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/win/crash_service.h" +#include "atom/common/crash_reporter/win/crash_service.h" #include diff --git a/common/crash_reporter/win/crash_service.h b/atom/common/crash_reporter/win/crash_service.h similarity index 100% rename from common/crash_reporter/win/crash_service.h rename to atom/common/crash_reporter/win/crash_service.h diff --git a/common/crash_reporter/win/crash_service_main.cc b/atom/common/crash_reporter/win/crash_service_main.cc similarity index 96% rename from common/crash_reporter/win/crash_service_main.cc rename to atom/common/crash_reporter/win/crash_service_main.cc index b62fd538f2c2..7cd35445df4c 100644 --- a/common/crash_reporter/win/crash_service_main.cc +++ b/atom/common/crash_reporter/win/crash_service_main.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/crash_reporter/win/crash_service_main.h" +#include "atom/common/crash_reporter/win/crash_service_main.h" #include "base/at_exit.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #include "base/strings/string_util.h" -#include "common/crash_reporter/win/crash_service.h" +#include "atom/common/crash_reporter/win/crash_service.h" namespace crash_service { diff --git a/common/crash_reporter/win/crash_service_main.h b/atom/common/crash_reporter/win/crash_service_main.h similarity index 100% rename from common/crash_reporter/win/crash_service_main.h rename to atom/common/crash_reporter/win/crash_service_main.h diff --git a/common/draggable_region.cc b/atom/common/draggable_region.cc similarity index 86% rename from common/draggable_region.cc rename to atom/common/draggable_region.cc index e408c9b462e9..691279f0f42d 100644 --- a/common/draggable_region.cc +++ b/atom/common/draggable_region.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/draggable_region.h" +#include "atom/common/draggable_region.h" namespace atom { diff --git a/common/draggable_region.h b/atom/common/draggable_region.h similarity index 100% rename from common/draggable_region.h rename to atom/common/draggable_region.h diff --git a/common/lib/init.coffee b/atom/common/lib/init.coffee similarity index 100% rename from common/lib/init.coffee rename to atom/common/lib/init.coffee diff --git a/common/linux/application_info.cc b/atom/common/linux/application_info.cc similarity index 90% rename from common/linux/application_info.cc rename to atom/common/linux/application_info.cc index 93d33b567242..a1ce5ada38ba 100644 --- a/common/linux/application_info.cc +++ b/atom/common/linux/application_info.cc @@ -4,7 +4,7 @@ #include -#include "common/atom_version.h" +#include "atom/common/atom_version.h" namespace brightray { diff --git a/common/node_bindings.cc b/atom/common/node_bindings.cc similarity index 98% rename from common/node_bindings.cc rename to atom/common/node_bindings.cc index 3d2d5ebcc4f7..ef5e6ef73e0a 100644 --- a/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -2,20 +2,20 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/node_bindings.h" +#include "atom/common/node_bindings.h" #include "base/command_line.h" #include "base/message_loop/message_loop.h" #include "base/base_paths.h" #include "base/path_service.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/browser_thread.h" #if defined(OS_WIN) #include "base/strings/utf_string_conversions.h" #endif -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" using content::BrowserThread; diff --git a/common/node_bindings.h b/atom/common/node_bindings.h similarity index 100% rename from common/node_bindings.h rename to atom/common/node_bindings.h diff --git a/common/node_bindings_linux.cc b/atom/common/node_bindings_linux.cc similarity index 97% rename from common/node_bindings_linux.cc rename to atom/common/node_bindings_linux.cc index 035441c8dc37..7aa5ccd1048f 100644 --- a/common/node_bindings_linux.cc +++ b/atom/common/node_bindings_linux.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/node_bindings_linux.h" +#include "atom/common/node_bindings_linux.h" #include diff --git a/common/node_bindings_linux.h b/atom/common/node_bindings_linux.h similarity index 95% rename from common/node_bindings_linux.h rename to atom/common/node_bindings_linux.h index 83711543d80f..ba948a84beec 100644 --- a/common/node_bindings_linux.h +++ b/atom/common/node_bindings_linux.h @@ -6,7 +6,7 @@ #define ATOM_COMMON_NODE_BINDINGS_LINUX_H_ #include "base/compiler_specific.h" -#include "common/node_bindings.h" +#include "atom/common/node_bindings.h" namespace atom { diff --git a/common/node_bindings_mac.cc b/atom/common/node_bindings_mac.cc similarity index 95% rename from common/node_bindings_mac.cc rename to atom/common/node_bindings_mac.cc index 0a31a1dd1fac..d918b8e761c8 100644 --- a/common/node_bindings_mac.cc +++ b/atom/common/node_bindings_mac.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/node_bindings_mac.h" +#include "atom/common/node_bindings_mac.h" #include #include #include #include -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/common/node_bindings_mac.h b/atom/common/node_bindings_mac.h similarity index 95% rename from common/node_bindings_mac.h rename to atom/common/node_bindings_mac.h index 4929c1a2cf6d..1c1d5b57f4a5 100644 --- a/common/node_bindings_mac.h +++ b/atom/common/node_bindings_mac.h @@ -6,7 +6,7 @@ #define ATOM_COMMON_NODE_BINDINGS_MAC_ #include "base/compiler_specific.h" -#include "common/node_bindings.h" +#include "atom/common/node_bindings.h" namespace atom { diff --git a/common/node_bindings_win.cc b/atom/common/node_bindings_win.cc similarity index 97% rename from common/node_bindings_win.cc rename to atom/common/node_bindings_win.cc index 15f5b32c2683..6e56d80bae19 100644 --- a/common/node_bindings_win.cc +++ b/atom/common/node_bindings_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/node_bindings_win.h" +#include "atom/common/node_bindings_win.h" #include diff --git a/common/node_bindings_win.h b/atom/common/node_bindings_win.h similarity index 93% rename from common/node_bindings_win.h rename to atom/common/node_bindings_win.h index 7a512313da8a..a8cdef880028 100644 --- a/common/node_bindings_win.h +++ b/atom/common/node_bindings_win.h @@ -6,7 +6,7 @@ #define ATOM_COMMON_NODE_BINDINGS_WIN_ #include "base/compiler_specific.h" -#include "common/node_bindings.h" +#include "atom/common/node_bindings.h" namespace atom { diff --git a/common/options_switches.cc b/atom/common/options_switches.cc similarity index 96% rename from common/options_switches.cc rename to atom/common/options_switches.cc index 9e29340276e3..48358c5798ae 100644 --- a/common/options_switches.cc +++ b/atom/common/options_switches.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/options_switches.h" +#include "atom/common/options_switches.h" namespace atom { diff --git a/common/options_switches.h b/atom/common/options_switches.h similarity index 100% rename from common/options_switches.h rename to atom/common/options_switches.h diff --git a/common/platform_util.h b/atom/common/platform_util.h similarity index 100% rename from common/platform_util.h rename to atom/common/platform_util.h diff --git a/common/platform_util_linux.cc b/atom/common/platform_util_linux.cc similarity index 98% rename from common/platform_util_linux.cc rename to atom/common/platform_util_linux.cc index d2ac2f88f93a..4d573a98b84b 100644 --- a/common/platform_util_linux.cc +++ b/atom/common/platform_util_linux.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/platform_util.h" +#include "atom/common/platform_util.h" #include diff --git a/common/platform_util_mac.mm b/atom/common/platform_util_mac.mm similarity index 99% rename from common/platform_util_mac.mm rename to atom/common/platform_util_mac.mm index c01c43fdd047..2a163c4553c6 100644 --- a/common/platform_util_mac.mm +++ b/atom/common/platform_util_mac.mm @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/platform_util.h" +#include "atom/common/platform_util.h" #include #import diff --git a/common/platform_util_win.cc b/atom/common/platform_util_win.cc similarity index 99% rename from common/platform_util_win.cc rename to atom/common/platform_util_win.cc index 076167540c6c..46ea850fc49a 100644 --- a/common/platform_util_win.cc +++ b/atom/common/platform_util_win.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/platform_util.h" +#include "atom/common/platform_util.h" #include #include diff --git a/common/resources/mac/Info.plist b/atom/common/resources/mac/Info.plist similarity index 100% rename from common/resources/mac/Info.plist rename to atom/common/resources/mac/Info.plist diff --git a/common/resources/mac/MainMenu.xib b/atom/common/resources/mac/MainMenu.xib similarity index 100% rename from common/resources/mac/MainMenu.xib rename to atom/common/resources/mac/MainMenu.xib diff --git a/common/swap_or_assign.h b/atom/common/swap_or_assign.h similarity index 100% rename from common/swap_or_assign.h rename to atom/common/swap_or_assign.h diff --git a/common/v8/native_type_conversions.h b/atom/common/v8/native_type_conversions.h similarity index 98% rename from common/v8/native_type_conversions.h rename to atom/common/v8/native_type_conversions.h index 2beed8befc3d..82861d48c44e 100644 --- a/common/v8/native_type_conversions.h +++ b/atom/common/v8/native_type_conversions.h @@ -13,10 +13,10 @@ #include "base/strings/string16.h" #include "base/template_util.h" #include "base/values.h" -#include "browser/api/atom_api_window.h" -#include "common/swap_or_assign.h" -#include "common/v8/scoped_persistent.h" -#include "common/v8/v8_value_converter.h" +#include "atom/browser/api/atom_api_window.h" +#include "atom/common/swap_or_assign.h" +#include "atom/common/v8/scoped_persistent.h" +#include "atom/common/v8/v8_value_converter.h" #include "ui/gfx/point.h" #include "ui/gfx/rect.h" #include "ui/gfx/size.h" diff --git a/common/v8/node_common.h b/atom/common/v8/node_common.h similarity index 100% rename from common/v8/node_common.h rename to atom/common/v8/node_common.h diff --git a/common/v8/scoped_persistent.h b/atom/common/v8/scoped_persistent.h similarity index 100% rename from common/v8/scoped_persistent.h rename to atom/common/v8/scoped_persistent.h diff --git a/common/v8/v8_value_converter.cc b/atom/common/v8/v8_value_converter.cc similarity index 99% rename from common/v8/v8_value_converter.cc rename to atom/common/v8/v8_value_converter.cc index 8f87ffada9d9..6d25ab2f800a 100644 --- a/common/v8/v8_value_converter.cc +++ b/atom/common/v8/v8_value_converter.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "common/v8/v8_value_converter.h" +#include "atom/common/v8/v8_value_converter.h" #include diff --git a/common/v8/v8_value_converter.h b/atom/common/v8/v8_value_converter.h similarity index 100% rename from common/v8/v8_value_converter.h rename to atom/common/v8/v8_value_converter.h diff --git a/renderer/api/atom_api_renderer_ipc.cc b/atom/renderer/api/atom_api_renderer_ipc.cc similarity index 92% rename from renderer/api/atom_api_renderer_ipc.cc rename to atom/renderer/api/atom_api_renderer_ipc.cc index 3bc185900fba..d95acf83f298 100644 --- a/renderer/api/atom_api_renderer_ipc.cc +++ b/atom/renderer/api/atom_api_renderer_ipc.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "renderer/api/atom_api_renderer_ipc.h" +#include "atom/renderer/api/atom_api_renderer_ipc.h" -#include "common/api/api_messages.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/api/api_messages.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/renderer/render_view.h" #include "third_party/WebKit/public/web/WebFrame.h" #include "third_party/WebKit/public/web/WebView.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" using content::RenderView; using WebKit::WebFrame; diff --git a/renderer/api/atom_api_renderer_ipc.h b/atom/renderer/api/atom_api_renderer_ipc.h similarity index 100% rename from renderer/api/atom_api_renderer_ipc.h rename to atom/renderer/api/atom_api_renderer_ipc.h diff --git a/renderer/api/atom_renderer_bindings.cc b/atom/renderer/api/atom_renderer_bindings.cc similarity index 93% rename from renderer/api/atom_renderer_bindings.cc rename to atom/renderer/api/atom_renderer_bindings.cc index 499410bc0710..044a72f729dc 100644 --- a/renderer/api/atom_renderer_bindings.cc +++ b/atom/renderer/api/atom_renderer_bindings.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "renderer/api/atom_renderer_bindings.h" +#include "atom/renderer/api/atom_renderer_bindings.h" -#include "common/v8/native_type_conversions.h" +#include "atom/common/v8/native_type_conversions.h" #include "content/public/renderer/render_view.h" #include "third_party/WebKit/public/web/WebFrame.h" #include "third_party/WebKit/public/web/WebView.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/renderer/api/atom_renderer_bindings.h b/atom/renderer/api/atom_renderer_bindings.h similarity index 95% rename from renderer/api/atom_renderer_bindings.h rename to atom/renderer/api/atom_renderer_bindings.h index 7eb43bf7adfc..fd63c0ec026b 100644 --- a/renderer/api/atom_renderer_bindings.h +++ b/atom/renderer/api/atom_renderer_bindings.h @@ -5,7 +5,7 @@ #ifndef ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_ #define ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_ -#include "common/api/atom_bindings.h" +#include "atom/common/api/atom_bindings.h" #include "base/strings/string16.h" diff --git a/renderer/api/lib/ipc.coffee b/atom/renderer/api/lib/ipc.coffee similarity index 100% rename from renderer/api/lib/ipc.coffee rename to atom/renderer/api/lib/ipc.coffee diff --git a/renderer/api/lib/remote.coffee b/atom/renderer/api/lib/remote.coffee similarity index 100% rename from renderer/api/lib/remote.coffee rename to atom/renderer/api/lib/remote.coffee diff --git a/renderer/atom_render_view_observer.cc b/atom/renderer/atom_render_view_observer.cc similarity index 89% rename from renderer/atom_render_view_observer.cc rename to atom/renderer/atom_render_view_observer.cc index 69d811bf5acf..7345a0f8d013 100644 --- a/renderer/atom_render_view_observer.cc +++ b/atom/renderer/atom_render_view_observer.cc @@ -2,19 +2,19 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "renderer/atom_render_view_observer.h" +#include "atom/renderer/atom_render_view_observer.h" -#include "common/api/api_messages.h" +#include "atom/common/api/api_messages.h" #include "content/public/renderer/render_view.h" #include "ipc/ipc_message_macros.h" -#include "renderer/api/atom_renderer_bindings.h" -#include "renderer/atom_renderer_client.h" +#include "atom/renderer/api/atom_renderer_bindings.h" +#include "atom/renderer/atom_renderer_client.h" #include "third_party/WebKit/public/web/WebDraggableRegion.h" #include "third_party/WebKit/public/web/WebDocument.h" #include "third_party/WebKit/public/web/WebFrame.h" #include "third_party/WebKit/public/web/WebView.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" using WebKit::WebFrame; diff --git a/renderer/atom_render_view_observer.h b/atom/renderer/atom_render_view_observer.h similarity index 100% rename from renderer/atom_render_view_observer.h rename to atom/renderer/atom_render_view_observer.h diff --git a/renderer/atom_renderer_client.cc b/atom/renderer/atom_renderer_client.cc similarity index 95% rename from renderer/atom_renderer_client.cc rename to atom/renderer/atom_renderer_client.cc index d2d095c4fe39..46f73f27303c 100644 --- a/renderer/atom_renderer_client.cc +++ b/atom/renderer/atom_renderer_client.cc @@ -2,19 +2,19 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "renderer/atom_renderer_client.h" +#include "atom/renderer/atom_renderer_client.h" #include #include "base/command_line.h" -#include "common/node_bindings.h" -#include "common/options_switches.h" -#include "renderer/api/atom_renderer_bindings.h" -#include "renderer/atom_render_view_observer.h" +#include "atom/common/node_bindings.h" +#include "atom/common/options_switches.h" +#include "atom/renderer/api/atom_renderer_bindings.h" +#include "atom/renderer/atom_render_view_observer.h" #include "third_party/WebKit/public/web/WebDocument.h" #include "third_party/WebKit/public/web/WebFrame.h" -#include "common/v8/node_common.h" +#include "atom/common/v8/node_common.h" namespace atom { diff --git a/renderer/atom_renderer_client.h b/atom/renderer/atom_renderer_client.h similarity index 100% rename from renderer/atom_renderer_client.h rename to atom/renderer/atom_renderer_client.h diff --git a/renderer/lib/init.coffee b/atom/renderer/lib/init.coffee similarity index 100% rename from renderer/lib/init.coffee rename to atom/renderer/lib/init.coffee diff --git a/renderer/lib/override.coffee b/atom/renderer/lib/override.coffee similarity index 100% rename from renderer/lib/override.coffee rename to atom/renderer/lib/override.coffee diff --git a/renderer/resources/mac/Info.plist b/atom/renderer/resources/mac/Info.plist similarity index 100% rename from renderer/resources/mac/Info.plist rename to atom/renderer/resources/mac/Info.plist From 68cb6ee86163aaa9beb0523ce7dd999ac9df1619 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 08:39:43 +0800 Subject: [PATCH 02/11] Move atom/browser/ui/gtk to chrome/. --- atom.gyp | 24 +++++++++---------- atom/browser/api/atom_api_menu_gtk.h | 2 +- atom/browser/native_window_gtk.cc | 2 +- atom/browser/native_window_gtk.h | 2 +- atom/browser/ui/file_dialog_gtk.cc | 2 +- atom/browser/ui/message_box_gtk.cc | 2 +- .../browser/ui/gtk/event_utils.cc | 2 +- {atom => chrome}/browser/ui/gtk/event_utils.h | 0 .../browser/ui/gtk/gtk_custom_menu.cc | 4 ++-- .../browser/ui/gtk/gtk_custom_menu.h | 0 .../browser/ui/gtk/gtk_custom_menu_item.cc | 4 ++-- .../browser/ui/gtk/gtk_custom_menu_item.h | 0 {atom => chrome}/browser/ui/gtk/gtk_util.cc | 2 +- {atom => chrome}/browser/ui/gtk/gtk_util.h | 6 ++--- .../browser/ui/gtk/gtk_window_util.cc | 2 +- .../browser/ui/gtk/gtk_window_util.h | 6 ++--- {atom => chrome}/browser/ui/gtk/menu_gtk.cc | 10 ++++---- {atom => chrome}/browser/ui/gtk/menu_gtk.h | 6 ++--- 18 files changed, 38 insertions(+), 38 deletions(-) rename {atom => chrome}/browser/ui/gtk/event_utils.cc (96%) rename {atom => chrome}/browser/ui/gtk/event_utils.h (100%) rename {atom => chrome}/browser/ui/gtk/gtk_custom_menu.cc (98%) rename {atom => chrome}/browser/ui/gtk/gtk_custom_menu.h (100%) rename {atom => chrome}/browser/ui/gtk/gtk_custom_menu_item.cc (99%) rename {atom => chrome}/browser/ui/gtk/gtk_custom_menu_item.h (100%) rename {atom => chrome}/browser/ui/gtk/gtk_util.cc (98%) rename {atom => chrome}/browser/ui/gtk/gtk_util.h (90%) rename {atom => chrome}/browser/ui/gtk/gtk_window_util.cc (99%) rename {atom => chrome}/browser/ui/gtk/gtk_window_util.h (95%) rename {atom => chrome}/browser/ui/gtk/menu_gtk.cc (99%) rename {atom => chrome}/browser/ui/gtk/menu_gtk.h (98%) diff --git a/atom.gyp b/atom.gyp index a6ca448d78d5..70a70bcae4e9 100644 --- a/atom.gyp +++ b/atom.gyp @@ -123,18 +123,6 @@ 'atom/browser/ui/file_dialog_gtk.cc', 'atom/browser/ui/file_dialog_mac.mm', 'atom/browser/ui/file_dialog_win.cc', - 'atom/browser/ui/gtk/gtk_custom_menu.cc', - 'atom/browser/ui/gtk/gtk_custom_menu.h', - 'atom/browser/ui/gtk/gtk_custom_menu_item.cc', - 'atom/browser/ui/gtk/gtk_custom_menu_item.h', - 'atom/browser/ui/gtk/gtk_util.cc', - 'atom/browser/ui/gtk/gtk_util.h', - 'atom/browser/ui/gtk/gtk_window_util.cc', - 'atom/browser/ui/gtk/gtk_window_util.h', - 'atom/browser/ui/gtk/event_utils.cc', - 'atom/browser/ui/gtk/event_utils.h', - 'atom/browser/ui/gtk/menu_gtk.cc', - 'atom/browser/ui/gtk/menu_gtk.h', 'atom/browser/ui/message_box.h', 'atom/browser/ui/message_box_gtk.cc', 'atom/browser/ui/message_box_mac.mm', @@ -212,6 +200,18 @@ 'atom/renderer/atom_render_view_observer.h', 'atom/renderer/atom_renderer_client.cc', 'atom/renderer/atom_renderer_client.h', + 'chrome/browser/ui/gtk/event_utils.cc', + 'chrome/browser/ui/gtk/event_utils.h', + 'chrome/browser/ui/gtk/gtk_custom_menu.cc', + 'chrome/browser/ui/gtk/gtk_custom_menu.h', + 'chrome/browser/ui/gtk/gtk_custom_menu_item.cc', + 'chrome/browser/ui/gtk/gtk_custom_menu_item.h', + 'chrome/browser/ui/gtk/gtk_util.cc', + 'chrome/browser/ui/gtk/gtk_util.h', + 'chrome/browser/ui/gtk/gtk_window_util.cc', + 'chrome/browser/ui/gtk/gtk_window_util.h', + 'chrome/browser/ui/gtk/menu_gtk.cc', + 'chrome/browser/ui/gtk/menu_gtk.h', ], 'framework_sources': [ 'atom/app/atom_library_main.cc', diff --git a/atom/browser/api/atom_api_menu_gtk.h b/atom/browser/api/atom_api_menu_gtk.h index 51c82d8daffc..7b890579db3d 100644 --- a/atom/browser/api/atom_api_menu_gtk.h +++ b/atom/browser/api/atom_api_menu_gtk.h @@ -6,7 +6,7 @@ #define ATOM_BROWSER_API_ATOM_API_MENU_GTK_H_ #include "atom/browser/api/atom_api_menu.h" -#include "atom/browser/ui/gtk/menu_gtk.h" +#include "chrome/browser/ui/gtk/menu_gtk.h" namespace atom { diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index 34bdcb25b6ac..3472eff1bbd3 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -5,7 +5,7 @@ #include "atom/browser/native_window_gtk.h" #include "base/values.h" -#include "atom/browser/ui/gtk/gtk_window_util.h" +#include "chrome/browser/ui/gtk/gtk_window_util.h" #include "atom/common/draggable_region.h" #include "atom/common/options_switches.h" #include "content/public/browser/web_contents.h" diff --git a/atom/browser/native_window_gtk.h b/atom/browser/native_window_gtk.h index 76da28567748..6700ee26d5e9 100644 --- a/atom/browser/native_window_gtk.h +++ b/atom/browser/native_window_gtk.h @@ -9,7 +9,7 @@ #include "atom/browser/native_window.h" #include "atom/browser/ui/accelerator_util.h" -#include "atom/browser/ui/gtk/menu_gtk.h" +#include "chrome/browser/ui/gtk/menu_gtk.h" #include "third_party/skia/include/core/SkRegion.h" #include "ui/base/accelerators/accelerator.h" #include "ui/base/gtk/gtk_signal.h" diff --git a/atom/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc index b3ac3b975ef9..d9cef0425efe 100644 --- a/atom/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -7,7 +7,7 @@ #include "base/callback.h" #include "base/file_util.h" #include "atom/browser/native_window.h" -#include "atom/browser/ui/gtk/gtk_util.h" +#include "chrome/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" namespace file_dialog { diff --git a/atom/browser/ui/message_box_gtk.cc b/atom/browser/ui/message_box_gtk.cc index 73447340bc30..7e4ffe4f9576 100644 --- a/atom/browser/ui/message_box_gtk.cc +++ b/atom/browser/ui/message_box_gtk.cc @@ -7,7 +7,7 @@ #include "base/callback.h" #include "base/strings/string_util.h" #include "atom/browser/native_window.h" -#include "atom/browser/ui/gtk/gtk_util.h" +#include "chrome/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" namespace atom { diff --git a/atom/browser/ui/gtk/event_utils.cc b/chrome/browser/ui/gtk/event_utils.cc similarity index 96% rename from atom/browser/ui/gtk/event_utils.cc rename to chrome/browser/ui/gtk/event_utils.cc index 76c998a68f77..f61c12165674 100644 --- a/atom/browser/ui/gtk/event_utils.cc +++ b/chrome/browser/ui/gtk/event_utils.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/event_utils.h" +#include "chrome/browser/ui/gtk/event_utils.h" #include "base/logging.h" #include "ui/base/window_open_disposition.h" diff --git a/atom/browser/ui/gtk/event_utils.h b/chrome/browser/ui/gtk/event_utils.h similarity index 100% rename from atom/browser/ui/gtk/event_utils.h rename to chrome/browser/ui/gtk/event_utils.h diff --git a/atom/browser/ui/gtk/gtk_custom_menu.cc b/chrome/browser/ui/gtk/gtk_custom_menu.cc similarity index 98% rename from atom/browser/ui/gtk/gtk_custom_menu.cc rename to chrome/browser/ui/gtk/gtk_custom_menu.cc index 6dc4c4ed96b6..bfa5a97284da 100644 --- a/atom/browser/ui/gtk/gtk_custom_menu.cc +++ b/chrome/browser/ui/gtk/gtk_custom_menu.cc @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/gtk_custom_menu.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu.h" -#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h" G_DEFINE_TYPE(GtkCustomMenu, gtk_custom_menu, GTK_TYPE_MENU) diff --git a/atom/browser/ui/gtk/gtk_custom_menu.h b/chrome/browser/ui/gtk/gtk_custom_menu.h similarity index 100% rename from atom/browser/ui/gtk/gtk_custom_menu.h rename to chrome/browser/ui/gtk/gtk_custom_menu.h diff --git a/atom/browser/ui/gtk/gtk_custom_menu_item.cc b/chrome/browser/ui/gtk/gtk_custom_menu_item.cc similarity index 99% rename from atom/browser/ui/gtk/gtk_custom_menu_item.cc rename to chrome/browser/ui/gtk/gtk_custom_menu_item.cc index b9c81581afb9..2eda6010cea1 100644 --- a/atom/browser/ui/gtk/gtk_custom_menu_item.cc +++ b/chrome/browser/ui/gtk/gtk_custom_menu_item.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h" #include "base/i18n/rtl.h" -#include "atom/browser/ui/gtk/gtk_custom_menu.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu.h" #include "ui/gfx/gtk_compat.h" // This method was autogenerated by the program glib-genmarshall, which diff --git a/atom/browser/ui/gtk/gtk_custom_menu_item.h b/chrome/browser/ui/gtk/gtk_custom_menu_item.h similarity index 100% rename from atom/browser/ui/gtk/gtk_custom_menu_item.h rename to chrome/browser/ui/gtk/gtk_custom_menu_item.h diff --git a/atom/browser/ui/gtk/gtk_util.cc b/chrome/browser/ui/gtk/gtk_util.cc similarity index 98% rename from atom/browser/ui/gtk/gtk_util.cc rename to chrome/browser/ui/gtk/gtk_util.cc index 7db95dadf152..b24c375e2c11 100644 --- a/atom/browser/ui/gtk/gtk_util.cc +++ b/chrome/browser/ui/gtk/gtk_util.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/gtk_util.h" +#include "chrome/browser/ui/gtk/gtk_util.h" #include diff --git a/atom/browser/ui/gtk/gtk_util.h b/chrome/browser/ui/gtk/gtk_util.h similarity index 90% rename from atom/browser/ui/gtk/gtk_util.h rename to chrome/browser/ui/gtk/gtk_util.h index cc16b6f58b64..2434a386e78a 100644 --- a/atom/browser/ui/gtk/gtk_util.h +++ b/chrome/browser/ui/gtk/gtk_util.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef ATOM_BROWSER_UI_GTK_GTK_UTIL_H_ -#define ATOM_BROWSER_UI_GTK_GTK_UTIL_H_ +#ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ +#define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ #include #include @@ -33,4 +33,4 @@ void SetLabelWidth(GtkWidget* label, int pixel_width); } // namespace gtk_util -#endif // ATOM_BROWSER_UI_GTK_GTK_UTIL_H_ +#endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ diff --git a/atom/browser/ui/gtk/gtk_window_util.cc b/chrome/browser/ui/gtk/gtk_window_util.cc similarity index 99% rename from atom/browser/ui/gtk/gtk_window_util.cc rename to chrome/browser/ui/gtk/gtk_window_util.cc index e68102c9d06e..09d2624b5df2 100644 --- a/atom/browser/ui/gtk/gtk_window_util.cc +++ b/chrome/browser/ui/gtk/gtk_window_util.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/gtk_window_util.h" +#include "chrome/browser/ui/gtk/gtk_window_util.h" #include #include "content/public/browser/render_view_host.h" diff --git a/atom/browser/ui/gtk/gtk_window_util.h b/chrome/browser/ui/gtk/gtk_window_util.h similarity index 95% rename from atom/browser/ui/gtk/gtk_window_util.h rename to chrome/browser/ui/gtk/gtk_window_util.h index 2234f38e2640..d4904ca8e947 100644 --- a/atom/browser/ui/gtk/gtk_window_util.h +++ b/chrome/browser/ui/gtk/gtk_window_util.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ -#define ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ +#ifndef CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ +#define CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ #include #include @@ -71,4 +71,4 @@ bool GetWindowEdge(const gfx::Size& window_size, } // namespace gtk_window_util -#endif // ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ +#endif // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ diff --git a/atom/browser/ui/gtk/menu_gtk.cc b/chrome/browser/ui/gtk/menu_gtk.cc similarity index 99% rename from atom/browser/ui/gtk/menu_gtk.cc rename to chrome/browser/ui/gtk/menu_gtk.cc index c3d32dbccd1a..1fde1ba39b15 100644 --- a/atom/browser/ui/gtk/menu_gtk.cc +++ b/chrome/browser/ui/gtk/menu_gtk.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "atom/browser/ui/gtk/menu_gtk.h" +#include "chrome/browser/ui/gtk/menu_gtk.h" #include @@ -12,10 +12,10 @@ #include "base/message_loop/message_loop.h" #include "base/stl_util.h" #include "base/strings/utf_string_conversions.h" -#include "atom/browser/ui/gtk/event_utils.h" -#include "atom/browser/ui/gtk/gtk_custom_menu.h" -#include "atom/browser/ui/gtk/gtk_custom_menu_item.h" -#include "atom/browser/ui/gtk/gtk_util.h" +#include "chrome/browser/ui/gtk/event_utils.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu.h" +#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h" +#include "chrome/browser/ui/gtk/gtk_util.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/base/accelerators/menu_label_accelerator_util_linux.h" #include "ui/base/accelerators/platform_accelerator_gtk.h" diff --git a/atom/browser/ui/gtk/menu_gtk.h b/chrome/browser/ui/gtk/menu_gtk.h similarity index 98% rename from atom/browser/ui/gtk/menu_gtk.h rename to chrome/browser/ui/gtk/menu_gtk.h index 45d073fd1ae7..50ef2c9c29fb 100644 --- a/atom/browser/ui/gtk/menu_gtk.h +++ b/chrome/browser/ui/gtk/menu_gtk.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef ATOM_BROWSER_UI_GTK_MENU_GTK_H_ -#define ATOM_BROWSER_UI_GTK_MENU_GTK_H_ +#ifndef CHROME_BROWSER_UI_GTK_MENU_GTK_H_ +#define CHROME_BROWSER_UI_GTK_MENU_GTK_H_ #include @@ -221,4 +221,4 @@ class MenuGtk { base::WeakPtrFactory weak_factory_; }; -#endif // ATOM_BROWSER_UI_GTK_MENU_GTK_H_ +#endif // CHROME_BROWSER_UI_GTK_MENU_GTK_H_ From bbef33a33ae263dfa6d15b119f06689e0b3801b9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 08:58:59 +0800 Subject: [PATCH 03/11] Bring back build/header_guard cpplint. --- atom/app/atom_library_main.h | 6 ++-- atom/app/atom_main.h | 5 ++++ atom/app/atom_main_delegate.h | 6 ++-- atom/browser/api/atom_api_event.h | 6 ++-- atom/browser/api/atom_browser_bindings.h | 6 ++-- atom/browser/atom_browser_client.h | 6 ++-- atom/browser/atom_browser_main_parts.h | 6 ++-- atom/browser/atom_javascript_dialog_manager.h | 6 ++-- atom/browser/browser_observer.h | 6 ++-- .../net/atom_url_request_job_factory.h | 6 ++-- atom/browser/ui/accelerator_util.h | 6 ++-- atom/browser/ui/file_dialog.h | 6 ++-- atom/browser/ui/message_box.h | 6 ++-- atom/browser/ui/win/menu_2.h | 6 ++-- atom/browser/ui/win/native_menu_win.h | 6 ++-- atom/browser/window_list_observer.h | 7 ++--- atom/common/api/atom_bindings.h | 6 ++-- .../common/crash_reporter/win/crash_service.h | 6 ++-- .../crash_reporter/win/crash_service_main.h | 6 ++-- atom/common/node_bindings_mac.h | 6 ++-- atom/common/node_bindings_win.h | 6 ++-- atom/common/options_switches.h | 6 ++-- atom/common/v8/scoped_persistent.h | 6 ++-- atom/renderer/api/atom_renderer_bindings.h | 2 +- atom/renderer/atom_render_view_observer.h | 6 ++-- script/cpplint.py | 30 +++++++++---------- 26 files changed, 90 insertions(+), 86 deletions(-) diff --git a/atom/app/atom_library_main.h b/atom/app/atom_library_main.h index d5d7dd9f443c..738de5ef09e4 100644 --- a/atom/app/atom_library_main.h +++ b/atom/app/atom_library_main.h @@ -2,8 +2,8 @@ // 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" @@ -14,4 +14,4 @@ int AtomMain(int argc, const char* argv[]); } #endif // OS_MACOSX -#endif // ATOM_APP_ATOM_LIBRARY_MAIN_ +#endif // ATOM_APP_ATOM_LIBRARY_MAIN_H_ diff --git a/atom/app/atom_main.h b/atom/app/atom_main.h index bd4c268cd5db..f8437d7ba138 100644 --- a/atom/app/atom_main.h +++ b/atom/app/atom_main.h @@ -2,4 +2,9 @@ // 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_ diff --git a/atom/app/atom_main_delegate.h b/atom/app/atom_main_delegate.h index 8a11c086cd9f..531836ea28b7 100644 --- a/atom/app/atom_main_delegate.h +++ b/atom/app/atom_main_delegate.h @@ -2,8 +2,8 @@ // 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" @@ -38,4 +38,4 @@ class AtomMainDelegate : public brightray::MainDelegate { } // namespace atom -#endif // ATOM_APP_ATOM_MAIN_DELEGATE_ +#endif // ATOM_APP_ATOM_MAIN_DELEGATE_H_ diff --git a/atom/browser/api/atom_api_event.h b/atom/browser/api/atom_api_event.h index 298efde22569..315b39539200 100644 --- a/atom/browser/api/atom_api_event.h +++ b/atom/browser/api/atom_api_event.h @@ -2,8 +2,8 @@ // 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" @@ -64,4 +64,4 @@ class Event : public node::ObjectWrap, } // namespace atom -#endif // ATOM_BROWSER_ATOM_API_EVENT_H_ +#endif // ATOM_BROWSER_API_ATOM_API_EVENT_H_ diff --git a/atom/browser/api/atom_browser_bindings.h b/atom/browser/api/atom_browser_bindings.h index 4aedcd5a24f4..026cbaf40f33 100644 --- a/atom/browser/api/atom_browser_bindings.h +++ b/atom/browser/api/atom_browser_bindings.h @@ -2,8 +2,8 @@ // 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" @@ -46,4 +46,4 @@ class AtomBrowserBindings : public AtomBindings { } // namespace atom -#endif // ATOM_BROWSER_API_ATOM_BINDINGS_ +#endif // ATOM_BROWSER_API_ATOM_BROWSER_BINDINGS_H_ diff --git a/atom/browser/atom_browser_client.h b/atom/browser/atom_browser_client.h index 4fe1131dc428..744e4a8c9c6d 100644 --- a/atom/browser/atom_browser_client.h +++ b/atom/browser/atom_browser_client.h @@ -2,8 +2,8 @@ // 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" @@ -40,4 +40,4 @@ class AtomBrowserClient : public brightray::BrowserClient { } // namespace atom -#endif // ATOM_BROWSER_ATOM_BROWSER_CLIENT_ +#endif // ATOM_BROWSER_ATOM_BROWSER_CLIENT_H_ diff --git a/atom/browser/atom_browser_main_parts.h b/atom/browser/atom_browser_main_parts.h index a7fd1809328c..896f36e00e02 100644 --- a/atom/browser/atom_browser_main_parts.h +++ b/atom/browser/atom_browser_main_parts.h @@ -2,8 +2,8 @@ // 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" @@ -48,4 +48,4 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts { } // namespace atom -#endif // ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_ +#endif // ATOM_BROWSER_ATOM_BROWSER_MAIN_PARTS_H_ diff --git a/atom/browser/atom_javascript_dialog_manager.h b/atom/browser/atom_javascript_dialog_manager.h index 65f4e9f927a9..c15f7e99e8a8 100644 --- a/atom/browser/atom_javascript_dialog_manager.h +++ b/atom/browser/atom_javascript_dialog_manager.h @@ -2,8 +2,8 @@ // 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" @@ -34,4 +34,4 @@ class AtomJavaScriptDialogManager : public content::JavaScriptDialogManager { } // namespace atom -#endif // ATOM_BROSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_ +#endif // ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_ diff --git a/atom/browser/browser_observer.h b/atom/browser/browser_observer.h index e7f1cd922165..c560c6dd9e34 100644 --- a/atom/browser/browser_observer.h +++ b/atom/browser/browser_observer.h @@ -2,8 +2,8 @@ // 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 @@ -40,4 +40,4 @@ class BrowserObserver { } // namespace atom -#endif // ATOM_BROSER_BROWSER_OBSERVER_H_ +#endif // ATOM_BROWSER_BROWSER_OBSERVER_H_ diff --git a/atom/browser/net/atom_url_request_job_factory.h b/atom/browser/net/atom_url_request_job_factory.h index e18883610a47..4299d2387caa 100644 --- a/atom/browser/net/atom_url_request_job_factory.h +++ b/atom/browser/net/atom_url_request_job_factory.h @@ -3,8 +3,8 @@ // 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 #include @@ -59,4 +59,4 @@ class AtomURLRequestJobFactory : public net::URLRequestJobFactory { } // namespace atom -#endif // ATOM_BROWSER_NET_ATOM_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ +#endif // ATOM_BROWSER_NET_ATOM_URL_REQUEST_JOB_FACTORY_H_ diff --git a/atom/browser/ui/accelerator_util.h b/atom/browser/ui/accelerator_util.h index fc9b792b2f92..1db760a575ac 100644 --- a/atom/browser/ui/accelerator_util.h +++ b/atom/browser/ui/accelerator_util.h @@ -2,8 +2,8 @@ // 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 #include @@ -35,4 +35,4 @@ bool TriggerAcceleratorTableCommand(AcceleratorTable* table, } // namespace accelerator_util -#endif // BROWSER_UI_ACCELERATOR_UTIL_H_ +#endif // ATOM_BROWSER_UI_ACCELERATOR_UTIL_H_ diff --git a/atom/browser/ui/file_dialog.h b/atom/browser/ui/file_dialog.h index 96c0061cdb9a..58399dca9116 100644 --- a/atom/browser/ui/file_dialog.h +++ b/atom/browser/ui/file_dialog.h @@ -2,8 +2,8 @@ // 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 #include @@ -54,4 +54,4 @@ void ShowSaveDialog(atom::NativeWindow* parent_window, } // namespace file_dialog -#endif // BROWSER_UI_FILE_DIALOG_H_ +#endif // ATOM_BROWSER_UI_FILE_DIALOG_H_ diff --git a/atom/browser/ui/message_box.h b/atom/browser/ui/message_box.h index 529e46595cc7..033ee3f36d2e 100644 --- a/atom/browser/ui/message_box.h +++ b/atom/browser/ui/message_box.h @@ -2,8 +2,8 @@ // 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 #include @@ -39,4 +39,4 @@ void ShowMessageBox(NativeWindow* parent_window, } // namespace atom -#endif // BROWSER_UI_MESSAGE_BOX_H_ +#endif // ATOM_BROWSER_UI_MESSAGE_BOX_H_ diff --git a/atom/browser/ui/win/menu_2.h b/atom/browser/ui/win/menu_2.h index 396d3302272a..a6a822aa652b 100644 --- a/atom/browser/ui/win/menu_2.h +++ b/atom/browser/ui/win/menu_2.h @@ -3,8 +3,8 @@ // 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" @@ -93,4 +93,4 @@ class Menu2 { } // namespace atom -#endif // BROWSER_UI_WIN_MENU_2_H_ +#endif // ATOM_BROWSER_UI_WIN_MENU_2_H_ diff --git a/atom/browser/ui/win/native_menu_win.h b/atom/browser/ui/win/native_menu_win.h index 4b6a67423031..83ce2a063610 100644 --- a/atom/browser/ui/win/native_menu_win.h +++ b/atom/browser/ui/win/native_menu_win.h @@ -3,8 +3,8 @@ // 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 @@ -189,4 +189,4 @@ class NativeMenuWin { } // namespace atom -#endif // BROWSER_UI_WIN_NATIVE_MENU_WIN_H_ +#endif // ATOM_BROWSER_UI_WIN_NATIVE_MENU_WIN_H_ diff --git a/atom/browser/window_list_observer.h b/atom/browser/window_list_observer.h index e68e4925f86d..9b5b00a27199 100644 --- a/atom/browser/window_list_observer.h +++ b/atom/browser/window_list_observer.h @@ -2,8 +2,8 @@ // 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 { @@ -27,7 +27,6 @@ class WindowListObserver { virtual ~WindowListObserver() {} }; - } // namespace atom -#endif // ATOM_BROSER_WINDOW_LIST_OBSERVER_H_ +#endif // ATOM_BROWSER_WINDOW_LIST_OBSERVER_H_ diff --git a/atom/common/api/atom_bindings.h b/atom/common/api/atom_bindings.h index 27b2cee908c0..ef4867003f8e 100644 --- a/atom/common/api/atom_bindings.h +++ b/atom/common/api/atom_bindings.h @@ -2,8 +2,8 @@ // 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" @@ -33,4 +33,4 @@ class AtomBindings { } // namespace atom -#endif // ATOM_COMMON_API_ATOM_BINDINGS_ +#endif // ATOM_COMMON_API_ATOM_BINDINGS_H_ diff --git a/atom/common/crash_reporter/win/crash_service.h b/atom/common/crash_reporter/win/crash_service.h index 195857155665..6b945c6b77c8 100644 --- a/atom/common/crash_reporter/win/crash_service.h +++ b/atom/common/crash_reporter/win/crash_service.h @@ -2,8 +2,8 @@ // 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 @@ -128,4 +128,4 @@ class CrashService { } // namespace breakpad -#endif // COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_ +#endif // ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_H_ diff --git a/atom/common/crash_reporter/win/crash_service_main.h b/atom/common/crash_reporter/win/crash_service_main.h index 3dd06f207f23..0e553c00c437 100644 --- a/atom/common/crash_reporter/win/crash_service_main.h +++ b/atom/common/crash_reporter/win/crash_service_main.h @@ -2,8 +2,8 @@ // 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 { @@ -12,4 +12,4 @@ int Main(const wchar_t* cmd_line); } // namespace crash_service -#endif // COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_ +#endif // ATOM_COMMON_CRASH_REPORTER_WIN_CRASH_SERVICE_MAIN_H_ diff --git a/atom/common/node_bindings_mac.h b/atom/common/node_bindings_mac.h index 1c1d5b57f4a5..b49a4ece5001 100644 --- a/atom/common/node_bindings_mac.h +++ b/atom/common/node_bindings_mac.h @@ -2,8 +2,8 @@ // 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" @@ -31,4 +31,4 @@ class NodeBindingsMac : public NodeBindings { } // namespace atom -#endif // ATOM_COMMON_NODE_BINDINGS_MAC_ +#endif // ATOM_COMMON_NODE_BINDINGS_MAC_H_ diff --git a/atom/common/node_bindings_win.h b/atom/common/node_bindings_win.h index a8cdef880028..2bec6bdab975 100644 --- a/atom/common/node_bindings_win.h +++ b/atom/common/node_bindings_win.h @@ -2,8 +2,8 @@ // 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" @@ -23,4 +23,4 @@ class NodeBindingsWin : public NodeBindings { } // namespace atom -#endif // ATOM_COMMON_NODE_BINDINGS_WIN_ +#endif // ATOM_COMMON_NODE_BINDINGS_WIN_H_ diff --git a/atom/common/options_switches.h b/atom/common/options_switches.h index b46f46821323..af8a8b55884d 100644 --- a/atom/common/options_switches.h +++ b/atom/common/options_switches.h @@ -2,8 +2,8 @@ // 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 { @@ -33,4 +33,4 @@ extern const char kAcceptFirstMouse[]; } // namespace atom -#endif // ATOM_COMMON_OPTIONS_SWITCHES_ +#endif // ATOM_COMMON_OPTIONS_SWITCHES_H_ diff --git a/atom/common/v8/scoped_persistent.h b/atom/common/v8/scoped_persistent.h index ac0abacd13d4..7d2fe47ac162 100644 --- a/atom/common/v8/scoped_persistent.h +++ b/atom/common/v8/scoped_persistent.h @@ -2,8 +2,8 @@ // 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" @@ -112,4 +112,4 @@ typedef scoped_refptr> RefCountedV8Object; } // namespace atom -#endif // ATOM_COMMON_SCOPED_PERSISTENT_H_ +#endif // ATOM_COMMON_V8_SCOPED_PERSISTENT_H_ diff --git a/atom/renderer/api/atom_renderer_bindings.h b/atom/renderer/api/atom_renderer_bindings.h index fd63c0ec026b..ffa3b4d4fd1e 100644 --- a/atom/renderer/api/atom_renderer_bindings.h +++ b/atom/renderer/api/atom_renderer_bindings.h @@ -42,4 +42,4 @@ class AtomRendererBindings : public AtomBindings { } // namespace atom -#endif // ATOM_RENDERER_API_ATOM_BINDINGS_H_ +#endif // ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_ diff --git a/atom/renderer/atom_render_view_observer.h b/atom/renderer/atom_render_view_observer.h index 213bd384cd57..252c6e197c3f 100644 --- a/atom/renderer/atom_render_view_observer.h +++ b/atom/renderer/atom_render_view_observer.h @@ -2,8 +2,8 @@ // 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" @@ -39,4 +39,4 @@ class AtomRenderViewObserver : public content::RenderViewObserver { } // namespace atom -#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_ +#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_ diff --git a/script/cpplint.py b/script/cpplint.py index 5acc1bb81ea6..0bf8025c2a5f 100755 --- a/script/cpplint.py +++ b/script/cpplint.py @@ -7,19 +7,19 @@ import sys 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__)) @@ -35,7 +35,7 @@ def main(): 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)) @@ -44,7 +44,7 @@ def list_files(directories, filters): 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) From 2d808d30a2993ca730f8101ae1aa86d755e91edc Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:13:06 +0800 Subject: [PATCH 04/11] Bring back build/include_order cpplint. --- atom/app/atom_main_delegate.cc | 2 ++ atom/browser/api/atom_api_app.cc | 2 ++ atom/browser/api/atom_api_app.h | 2 ++ atom/browser/api/atom_api_auto_updater.h | 2 ++ atom/browser/api/atom_api_dialog.cc | 3 +++ atom/browser/api/atom_api_menu.cc | 2 ++ atom/browser/api/atom_api_menu_mac.h | 2 ++ atom/browser/api/atom_api_window.cc | 2 ++ atom/browser/api/atom_api_window.h | 1 + atom/browser/atom_javascript_dialog_manager.cc | 2 ++ atom/browser/atom_javascript_dialog_manager.h | 2 ++ atom/browser/browser.cc | 2 ++ atom/browser/browser.h | 2 ++ atom/browser/devtools_delegate.cc | 2 ++ atom/browser/devtools_delegate.h | 2 ++ atom/browser/native_window.cc | 2 ++ atom/browser/native_window.h | 3 +++ atom/browser/native_window_gtk.cc | 3 +++ atom/browser/native_window_gtk.h | 3 +++ atom/browser/native_window_win.cc | 7 +++++-- atom/browser/native_window_win.h | 4 ++++ atom/browser/net/adapter_request_job.h | 2 ++ atom/browser/net/atom_url_request_context_getter.cc | 2 ++ atom/browser/net/atom_url_request_job_factory.h | 1 + atom/browser/net/url_request_string_job.cc | 2 ++ atom/browser/net/url_request_string_job.h | 2 ++ atom/browser/ui/accelerator_util.cc | 1 + atom/common/api/atom_api_clipboard.cc | 1 + atom/common/api/atom_api_crash_reporter.cc | 3 +++ atom/common/api/atom_bindings.cc | 2 ++ atom/common/crash_reporter/crash_reporter_linux.cc | 2 ++ atom/common/crash_reporter/crash_reporter_linux.h | 2 ++ atom/common/crash_reporter/crash_reporter_mac.h | 2 ++ atom/common/crash_reporter/crash_reporter_win.cc | 2 ++ atom/common/crash_reporter/crash_reporter_win.h | 3 +++ atom/common/node_bindings.cc | 3 +++ atom/common/v8/v8_value_converter.cc | 1 + atom/renderer/api/atom_renderer_bindings.cc | 2 ++ atom/renderer/atom_render_view_observer.cc | 2 ++ atom/renderer/atom_renderer_client.cc | 1 + atom/renderer/atom_renderer_client.h | 1 + script/cpplint.py | 4 ++-- 42 files changed, 89 insertions(+), 4 deletions(-) diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index 576f395714e3..5f0c6a229f3b 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -4,6 +4,8 @@ #include "atom/app/atom_main_delegate.h" +#include + #include "base/command_line.h" #include "base/debug/stack_trace.h" #include "base/logging.h" diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index f5b183820f85..d1ec18f8e03d 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -4,6 +4,8 @@ #include "atom/browser/api/atom_api_app.h" +#include + #include "base/values.h" #include "base/command_line.h" #include "atom/browser/browser.h" diff --git a/atom/browser/api/atom_api_app.h b/atom/browser/api/atom_api_app.h index 4fed94365669..a36199634e11 100644 --- a/atom/browser/api/atom_api_app.h +++ b/atom/browser/api/atom_api_app.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_API_ATOM_API_APP_H_ #define ATOM_BROWSER_API_ATOM_API_APP_H_ +#include + #include "base/compiler_specific.h" #include "atom/browser/browser_observer.h" #include "atom/common/api/atom_api_event_emitter.h" diff --git a/atom/browser/api/atom_api_auto_updater.h b/atom/browser/api/atom_api_auto_updater.h index 9007bbd984a6..60586af15c0f 100644 --- a/atom/browser/api/atom_api_auto_updater.h +++ b/atom/browser/api/atom_api_auto_updater.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_API_ATOM_API_AUTO_UPDATER_H_ #define ATOM_BROWSER_API_ATOM_API_AUTO_UPDATER_H_ +#include + #include "base/callback.h" #include "base/memory/scoped_ptr.h" #include "atom/browser/auto_updater_delegate.h" diff --git a/atom/browser/api/atom_api_dialog.cc b/atom/browser/api/atom_api_dialog.cc index b35849367779..8551f4375fba 100644 --- a/atom/browser/api/atom_api_dialog.cc +++ b/atom/browser/api/atom_api_dialog.cc @@ -4,6 +4,9 @@ #include "atom/browser/api/atom_api_dialog.h" +#include +#include + #include "base/bind.h" #include "atom/browser/native_window.h" #include "atom/browser/ui/file_dialog.h" diff --git a/atom/browser/api/atom_api_menu.cc b/atom/browser/api/atom_api_menu.cc index 392b8fa72bfc..ea89ce5b6646 100644 --- a/atom/browser/api/atom_api_menu.cc +++ b/atom/browser/api/atom_api_menu.cc @@ -4,6 +4,8 @@ #include "atom/browser/api/atom_api_menu.h" +#include + #include "atom/browser/ui/accelerator_util.h" #include "atom/common/v8/node_common.h" #include "atom/common/v8/native_type_conversions.h" diff --git a/atom/browser/api/atom_api_menu_mac.h b/atom/browser/api/atom_api_menu_mac.h index 3abd34e1e189..d0bece4b977d 100644 --- a/atom/browser/api/atom_api_menu_mac.h +++ b/atom/browser/api/atom_api_menu_mac.h @@ -7,6 +7,8 @@ #include "atom/browser/api/atom_api_menu.h" +#include + #import "atom/browser/ui/cocoa/atom_menu_controller.h" namespace atom { diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index e44f26a6bed8..e8a845ff6abf 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -4,6 +4,8 @@ #include "atom/browser/api/atom_api_window.h" +#include + #include "base/bind.h" #include "base/process/kill.h" #include "atom/browser/native_window.h" diff --git a/atom/browser/api/atom_api_window.h b/atom/browser/api/atom_api_window.h index 75149ea00496..bca32f2b3cfb 100644 --- a/atom/browser/api/atom_api_window.h +++ b/atom/browser/api/atom_api_window.h @@ -5,6 +5,7 @@ #ifndef ATOM_BROWSER_API_ATOM_API_WINDOW_H_ #define ATOM_BROWSER_API_ATOM_API_WINDOW_H_ +#include #include #include "base/memory/scoped_ptr.h" diff --git a/atom/browser/atom_javascript_dialog_manager.cc b/atom/browser/atom_javascript_dialog_manager.cc index dda3f5fd4461..98ac84e3c8e9 100644 --- a/atom/browser/atom_javascript_dialog_manager.cc +++ b/atom/browser/atom_javascript_dialog_manager.cc @@ -4,6 +4,8 @@ #include "atom/browser/atom_javascript_dialog_manager.h" +#include + #include "base/strings/utf_string_conversions.h" namespace atom { diff --git a/atom/browser/atom_javascript_dialog_manager.h b/atom/browser/atom_javascript_dialog_manager.h index c15f7e99e8a8..4477150e5d7b 100644 --- a/atom/browser/atom_javascript_dialog_manager.h +++ b/atom/browser/atom_javascript_dialog_manager.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_ #define ATOM_BROWSER_ATOM_JAVASCRIPT_DIALOG_MANAGER_H_ +#include + #include "content/public/browser/javascript_dialog_manager.h" namespace atom { diff --git a/atom/browser/browser.cc b/atom/browser/browser.cc index 954eae24b408..f071005e6365 100644 --- a/atom/browser/browser.cc +++ b/atom/browser/browser.cc @@ -4,6 +4,8 @@ #include "atom/browser/browser.h" +#include + #include "atom/browser/atom_browser_main_parts.h" #include "atom/browser/window_list.h" diff --git a/atom/browser/browser.h b/atom/browser/browser.h index 80dc5927a997..89481b2ec642 100644 --- a/atom/browser/browser.h +++ b/atom/browser/browser.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_BROWSER_H_ #define ATOM_BROWSER_BROWSER_H_ +#include + #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/observer_list.h" diff --git a/atom/browser/devtools_delegate.cc b/atom/browser/devtools_delegate.cc index b66abdd6398e..2bd09c4f6262 100644 --- a/atom/browser/devtools_delegate.cc +++ b/atom/browser/devtools_delegate.cc @@ -4,6 +4,8 @@ #include "atom/browser/devtools_delegate.h" +#include + #include "base/message_loop/message_loop.h" #include "base/values.h" #include "atom/browser/native_window.h" diff --git a/atom/browser/devtools_delegate.h b/atom/browser/devtools_delegate.h index f6a7b8492347..e5117c406ad8 100644 --- a/atom/browser/devtools_delegate.h +++ b/atom/browser/devtools_delegate.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_DEVTOOLS_DELEGATE_H_ #define ATOM_BROWSER_DEVTOOLS_DELEGATE_H_ +#include + #include "base/memory/scoped_ptr.h" #include "atom/browser/native_window_observer.h" #include "content/public/browser/devtools_frontend_host_delegate.h" diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 9cc38bf96cf6..4c4d969620b3 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -5,6 +5,8 @@ #include "atom/browser/native_window.h" #include +#include +#include #include "base/command_line.h" #include "base/file_util.h" diff --git a/atom/browser/native_window.h b/atom/browser/native_window.h index 8717192034eb..51301dc5af5c 100644 --- a/atom/browser/native_window.h +++ b/atom/browser/native_window.h @@ -5,6 +5,9 @@ #ifndef ATOM_BROWSER_NATIVE_WINDOW_H_ #define ATOM_BROWSER_NATIVE_WINDOW_H_ +#include +#include + #include "base/basictypes.h" #include "base/cancelable_callback.h" #include "base/compiler_specific.h" diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index 3472eff1bbd3..05c8e86edc4b 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -4,6 +4,9 @@ #include "atom/browser/native_window_gtk.h" +#include +#include + #include "base/values.h" #include "chrome/browser/ui/gtk/gtk_window_util.h" #include "atom/common/draggable_region.h" diff --git a/atom/browser/native_window_gtk.h b/atom/browser/native_window_gtk.h index 6700ee26d5e9..6add4f4c4dd1 100644 --- a/atom/browser/native_window_gtk.h +++ b/atom/browser/native_window_gtk.h @@ -7,6 +7,9 @@ #include +#include +#include + #include "atom/browser/native_window.h" #include "atom/browser/ui/accelerator_util.h" #include "chrome/browser/ui/gtk/menu_gtk.h" diff --git a/atom/browser/native_window_win.cc b/atom/browser/native_window_win.cc index 245e1af3ea9f..886ba8d12817 100644 --- a/atom/browser/native_window_win.cc +++ b/atom/browser/native_window_win.cc @@ -4,13 +4,16 @@ #include "atom/browser/native_window_win.h" -#include "base/strings/utf_string_conversions.h" -#include "base/values.h" +#include +#include + #include "atom/browser/api/atom_api_menu.h" #include "atom/browser/ui/win/menu_2.h" #include "atom/browser/ui/win/native_menu_win.h" #include "atom/common/draggable_region.h" #include "atom/common/options_switches.h" +#include "base/strings/utf_string_conversions.h" +#include "base/values.h" #include "content/public/browser/native_web_keyboard_event.h" #include "content/public/browser/render_view_host.h" #include "content/public/browser/render_widget_host_view.h" diff --git a/atom/browser/native_window_win.h b/atom/browser/native_window_win.h index 769ef5d97b7b..de311c59861b 100644 --- a/atom/browser/native_window_win.h +++ b/atom/browser/native_window_win.h @@ -5,6 +5,10 @@ #ifndef ATOM_BROWSER_NATIVE_WINDOW_WIN_H_ #define ATOM_BROWSER_NATIVE_WINDOW_WIN_H_ +#include +#include +#include + #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "atom/browser/native_window.h" diff --git a/atom/browser/net/adapter_request_job.h b/atom/browser/net/adapter_request_job.h index 7b7ed909cb77..755026267bdf 100644 --- a/atom/browser/net/adapter_request_job.h +++ b/atom/browser/net/adapter_request_job.h @@ -5,6 +5,8 @@ #ifndef ATOM_BROWSER_NET_ADAPTER_REQUEST_JOB_H_ #define ATOM_BROWSER_NET_ADAPTER_REQUEST_JOB_H_ +#include + #include "base/memory/weak_ptr.h" #include "net/url_request/url_request_job.h" #include "net/url_request/url_request_job_factory.h" diff --git a/atom/browser/net/atom_url_request_context_getter.cc b/atom/browser/net/atom_url_request_context_getter.cc index 811bd584d68e..9a4dbf89f81d 100644 --- a/atom/browser/net/atom_url_request_context_getter.cc +++ b/atom/browser/net/atom_url_request_context_getter.cc @@ -4,6 +4,8 @@ #include "atom/browser/net/atom_url_request_context_getter.h" +#include + #include "base/strings/string_util.h" #include "base/threading/sequenced_worker_pool.h" #include "base/threading/worker_pool.h" diff --git a/atom/browser/net/atom_url_request_job_factory.h b/atom/browser/net/atom_url_request_job_factory.h index 4299d2387caa..c34b28392ae6 100644 --- a/atom/browser/net/atom_url_request_job_factory.h +++ b/atom/browser/net/atom_url_request_job_factory.h @@ -7,6 +7,7 @@ #define ATOM_BROWSER_NET_ATOM_URL_REQUEST_JOB_FACTORY_H_ #include +#include #include #include "base/basictypes.h" diff --git a/atom/browser/net/url_request_string_job.cc b/atom/browser/net/url_request_string_job.cc index 76ecb7de25c8..93f66910431c 100644 --- a/atom/browser/net/url_request_string_job.cc +++ b/atom/browser/net/url_request_string_job.cc @@ -4,6 +4,8 @@ #include "atom/browser/net/url_request_string_job.h" +#include + #include "net/base/net_errors.h" namespace atom { diff --git a/atom/browser/net/url_request_string_job.h b/atom/browser/net/url_request_string_job.h index b2fb61024e73..a0143e557791 100644 --- a/atom/browser/net/url_request_string_job.h +++ b/atom/browser/net/url_request_string_job.h @@ -7,6 +7,8 @@ #include "net/url_request/url_request_simple_job.h" +#include + namespace atom { class URLRequestStringJob : public net::URLRequestSimpleJob { diff --git a/atom/browser/ui/accelerator_util.cc b/atom/browser/ui/accelerator_util.cc index 424d4810965c..664922bdb6ce 100644 --- a/atom/browser/ui/accelerator_util.cc +++ b/atom/browser/ui/accelerator_util.cc @@ -7,6 +7,7 @@ #include #include +#include #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" diff --git a/atom/common/api/atom_api_clipboard.cc b/atom/common/api/atom_api_clipboard.cc index e7d4c7e96c49..a48ec9687ae5 100644 --- a/atom/common/api/atom_api_clipboard.cc +++ b/atom/common/api/atom_api_clipboard.cc @@ -5,6 +5,7 @@ #include "atom/common/api/atom_api_clipboard.h" #include +#include #include "atom/common/v8/native_type_conversions.h" #include "ui/base/clipboard/clipboard.h" diff --git a/atom/common/api/atom_api_crash_reporter.cc b/atom/common/api/atom_api_crash_reporter.cc index 325cb69c747f..5682447d003d 100644 --- a/atom/common/api/atom_api_crash_reporter.cc +++ b/atom/common/api/atom_api_crash_reporter.cc @@ -4,6 +4,9 @@ #include "atom/common/api/atom_api_crash_reporter.h" +#include +#include + #include "atom/common/crash_reporter/crash_reporter.h" #include "atom/common/v8/native_type_conversions.h" diff --git a/atom/common/api/atom_bindings.cc b/atom/common/api/atom_bindings.cc index 91c5b2523d16..4f1723db586a 100644 --- a/atom/common/api/atom_bindings.cc +++ b/atom/common/api/atom_bindings.cc @@ -4,6 +4,8 @@ #include "atom/common/api/atom_bindings.h" +#include + #include "base/logging.h" #include "atom/common/atom_version.h" #include "atom/common/v8/native_type_conversions.h" diff --git a/atom/common/crash_reporter/crash_reporter_linux.cc b/atom/common/crash_reporter/crash_reporter_linux.cc index 173bd6618035..4d3085279282 100644 --- a/atom/common/crash_reporter/crash_reporter_linux.cc +++ b/atom/common/crash_reporter/crash_reporter_linux.cc @@ -8,6 +8,8 @@ #include #include +#include + #include "base/debug/crash_logging.h" #include "base/files/file_path.h" #include "base/linux_util.h" diff --git a/atom/common/crash_reporter/crash_reporter_linux.h b/atom/common/crash_reporter/crash_reporter_linux.h index 749d4a30b886..9713ef243ba1 100644 --- a/atom/common/crash_reporter/crash_reporter_linux.h +++ b/atom/common/crash_reporter/crash_reporter_linux.h @@ -5,6 +5,8 @@ #ifndef ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_LINUX_H_ #define ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_LINUX_H_ +#include + #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" #include "atom/common/crash_reporter/crash_reporter.h" diff --git a/atom/common/crash_reporter/crash_reporter_mac.h b/atom/common/crash_reporter/crash_reporter_mac.h index b9a1cc129933..7791b7270bc5 100644 --- a/atom/common/crash_reporter/crash_reporter_mac.h +++ b/atom/common/crash_reporter/crash_reporter_mac.h @@ -5,6 +5,8 @@ #ifndef ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_MAC_H_ #define ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_MAC_H_ +#include + #include "base/compiler_specific.h" #include "atom/common/crash_reporter/crash_reporter.h" #import "vendor/breakpad/src/client/mac/Framework/Breakpad.h" diff --git a/atom/common/crash_reporter/crash_reporter_win.cc b/atom/common/crash_reporter/crash_reporter_win.cc index f8d1411c2cf5..70075e30c9da 100644 --- a/atom/common/crash_reporter/crash_reporter_win.cc +++ b/atom/common/crash_reporter/crash_reporter_win.cc @@ -4,6 +4,8 @@ #include "atom/common/crash_reporter/crash_reporter_win.h" +#include + #include "base/file_util.h" #include "base/logging.h" #include "base/memory/singleton.h" diff --git a/atom/common/crash_reporter/crash_reporter_win.h b/atom/common/crash_reporter/crash_reporter_win.h index bf1ef752eb7f..f57e6aad876c 100644 --- a/atom/common/crash_reporter/crash_reporter_win.h +++ b/atom/common/crash_reporter/crash_reporter_win.h @@ -5,6 +5,9 @@ #ifndef ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_WIN_H_ #define ATOM_COMMON_CRASH_REPORTER_CRASH_REPORTER_WIN_H_ +#include +#include + #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" #include "atom/common/crash_reporter/crash_reporter.h" diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index ef5e6ef73e0a..b8ed993ceddf 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -4,6 +4,9 @@ #include "atom/common/node_bindings.h" +#include +#include + #include "base/command_line.h" #include "base/message_loop/message_loop.h" #include "base/base_paths.h" diff --git a/atom/common/v8/v8_value_converter.cc b/atom/common/v8/v8_value_converter.cc index 6d25ab2f800a..7aaef694dadc 100644 --- a/atom/common/v8/v8_value_converter.cc +++ b/atom/common/v8/v8_value_converter.cc @@ -5,6 +5,7 @@ #include "atom/common/v8/v8_value_converter.h" #include +#include #include "base/logging.h" #include "base/memory/scoped_ptr.h" diff --git a/atom/renderer/api/atom_renderer_bindings.cc b/atom/renderer/api/atom_renderer_bindings.cc index 044a72f729dc..c35b64f6d5f8 100644 --- a/atom/renderer/api/atom_renderer_bindings.cc +++ b/atom/renderer/api/atom_renderer_bindings.cc @@ -4,6 +4,8 @@ #include "atom/renderer/api/atom_renderer_bindings.h" +#include + #include "atom/common/v8/native_type_conversions.h" #include "content/public/renderer/render_view.h" #include "third_party/WebKit/public/web/WebFrame.h" diff --git a/atom/renderer/atom_render_view_observer.cc b/atom/renderer/atom_render_view_observer.cc index 7345a0f8d013..7f7a81b7cf26 100644 --- a/atom/renderer/atom_render_view_observer.cc +++ b/atom/renderer/atom_render_view_observer.cc @@ -4,6 +4,8 @@ #include "atom/renderer/atom_render_view_observer.h" +#include + #include "atom/common/api/api_messages.h" #include "content/public/renderer/render_view.h" #include "ipc/ipc_message_macros.h" diff --git a/atom/renderer/atom_renderer_client.cc b/atom/renderer/atom_renderer_client.cc index 46f73f27303c..9851f462bd58 100644 --- a/atom/renderer/atom_renderer_client.cc +++ b/atom/renderer/atom_renderer_client.cc @@ -5,6 +5,7 @@ #include "atom/renderer/atom_renderer_client.h" #include +#include #include "base/command_line.h" #include "atom/common/node_bindings.h" diff --git a/atom/renderer/atom_renderer_client.h b/atom/renderer/atom_renderer_client.h index bc7aab740a5e..d7b6f857a316 100644 --- a/atom/renderer/atom_renderer_client.h +++ b/atom/renderer/atom_renderer_client.h @@ -5,6 +5,7 @@ #ifndef ATOM_RENDERER_ATOM_RENDERER_CLIENT_H_ #define ATOM_RENDERER_ATOM_RENDERER_CLIENT_H_ +#include #include #include "content/public/renderer/content_renderer_client.h" diff --git a/script/cpplint.py b/script/cpplint.py index 0bf8025c2a5f..3d07181685bc 100755 --- a/script/cpplint.py +++ b/script/cpplint.py @@ -7,6 +7,7 @@ import sys from lib.util import execute IGNORE_FILES = [ + os.path.join('atom', 'app', 'atom_main.cc'), 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'), @@ -44,8 +45,7 @@ def list_files(directories, filters): def call_cpplint(files): cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py') - rules = '--filter=-build/include_what_you_use' - execute([sys.executable, cpplint, rules] + files) + execute([sys.executable, cpplint] + files) if __name__ == '__main__': From b1f4a47b5b9dbacba42cfb98d4f3be6989d74972 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:15:41 +0800 Subject: [PATCH 05/11] Add LICENSE in chrome/. --- chrome/LICENSE.chromium | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 chrome/LICENSE.chromium diff --git a/chrome/LICENSE.chromium b/chrome/LICENSE.chromium new file mode 100644 index 000000000000..6f2d1444dd98 --- /dev/null +++ b/chrome/LICENSE.chromium @@ -0,0 +1,27 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file From eaab9b295bb7e63f4e21f5c5ef519e1ed82c56f2 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:17:45 +0800 Subject: [PATCH 06/11] :memo: Update docs for new source code structure. --- .../source-code-directory-structure.md | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/docs/development/source-code-directory-structure.md b/docs/development/source-code-directory-structure.md index a583322b7a66..d5477d78246e 100644 --- a/docs/development/source-code-directory-structure.md +++ b/docs/development/source-code-directory-structure.md @@ -11,33 +11,35 @@ to understand the source code better. ## Structure of source code -* **app** - Contains system entry code, this is the most basic level of the - program. -* **browser** - The frontend including the main window, UI, and all browser - side things. This talks to the renderer to manage web pages. - * **lib** - Javascript part of browser initialization code. - * **ui** - Implementation of UI stuff for different platforms. - * **cocoa** - Cocoa specific source code. - * **gtk** - GTK+ specific source code. - * **win** - Windows GUI specific source code. - * **default_app** - The default page to show when atom-shell is started - without providing an app. - * **api** - The implementation of browser side APIs. - * **lib** - Javascript part of the API implementation. - * **net** - Network related code. -* **renderer** - Code that runs in renderer. - * **lib** - Javascript part of renderer initialization code. - * **api** - The implementation of renderer side APIs. - * **lib** - Javascript part of the API implementation. -* **common** - Code that used by both browser and renderer, including some - utility functions and code to integrate node's message loop into Chromium's message loop. - * **lib** - Common Javascript initialization code. - * **v8** - Utility functions for using V8 and node APIs. - * **api** - The implementation of common APIs, and foundations of - atom-shell's built-in modules. - * **lib** - Javascript part of the API implementation. -* **spec** - Automatic tests. -* **script** - Scripts for building atom-shell. +* **atom** - Source code of atom-shell. + * **app** - Contains system entry code, this is the most basic level of the + program. + * **browser** - The frontend including the main window, UI, and all browser + side things. This talks to the renderer to manage web pages. + * **lib** - Javascript part of browser initialization code. + * **ui** - Implementation of UI stuff for different platforms. + * **cocoa** - Cocoa specific source code. + * **gtk** - GTK+ specific source code. + * **win** - Windows GUI specific source code. + * **default_app** - The default page to show when atom-shell is started + without providing an app. + * **api** - The implementation of browser side APIs. + * **lib** - Javascript part of the API implementation. + * **net** - Network related code. + * **renderer** - Code that runs in renderer. + * **lib** - Javascript part of renderer initialization code. + * **api** - The implementation of renderer side APIs. + * **lib** - Javascript part of the API implementation. + * **common** - Code that used by both browser and renderer, including some + utility functions and code to integrate node's message loop into Chromium's message loop. + * **lib** - Common Javascript initialization code. + * **v8** - Utility functions for using V8 and node APIs. + * **api** - The implementation of common APIs, and foundations of + atom-shell's built-in modules. + * **lib** - Javascript part of the API implementation. + * **spec** - Automatic tests. + * **script** - Scripts for building atom-shell. +* **chrome** - Source code modified from Chromium's chrome component. ## Structure of other directories From 375228f266b51bc304dc9be7e84500aae3814a79 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:27:15 +0800 Subject: [PATCH 07/11] :lipstick: Update bootstrap script. --- script/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index d583c0cae104..c5693fab942e 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -63,7 +63,7 @@ def update_apm(): def update_node_modules(): - for dirname in ['browser/default_app', '.']: + for dirname in ['atom/browser/default_app', '.']: update_node_modules_for_dir(dirname) From b6ac06c022492dd6e694fcec0ee8757ae975718b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:37:04 +0800 Subject: [PATCH 08/11] Order header files. --- atom/browser/net/atom_url_request_context_getter.cc | 2 +- atom/browser/resources/mac/Info.plist | 2 ++ atom/browser/ui/file_dialog_gtk.cc | 2 +- atom/browser/ui/file_dialog_mac.mm | 4 ++-- atom/browser/ui/file_dialog_win.cc | 2 +- atom/browser/ui/message_box_gtk.cc | 2 +- atom/browser/ui/message_box_mac.mm | 2 +- atom/browser/ui/message_box_win.cc | 2 +- atom/browser/ui/win/menu_2.h | 2 +- atom/browser/ui/win/native_menu_win.cc | 2 +- atom/browser/window_list.cc | 2 +- atom/common/api/api_messages.h | 2 +- atom/common/api/atom_api_event_emitter.cc | 2 +- atom/common/api/atom_api_id_weak_map.cc | 2 +- atom/common/api/atom_api_id_weak_map.h | 3 ++- atom/common/api/atom_api_shell.cc | 2 +- atom/common/api/atom_bindings.cc | 2 +- atom/common/api/object_life_monitor.h | 2 +- atom/common/crash_reporter/crash_reporter.cc | 2 +- atom/common/crash_reporter/crash_reporter_linux.h | 4 ++-- atom/common/crash_reporter/crash_reporter_mac.h | 2 +- atom/common/crash_reporter/crash_reporter_win.h | 2 +- atom/common/crash_reporter/win/crash_service_main.cc | 2 +- atom/common/node_bindings.cc | 2 +- atom/common/node_bindings_mac.h | 2 +- atom/common/node_bindings_win.h | 2 +- atom/common/v8/native_type_conversions.h | 8 ++++---- atom/renderer/atom_render_view_observer.cc | 4 ++-- atom/renderer/atom_renderer_client.cc | 2 +- 29 files changed, 37 insertions(+), 34 deletions(-) diff --git a/atom/browser/net/atom_url_request_context_getter.cc b/atom/browser/net/atom_url_request_context_getter.cc index 9a4dbf89f81d..21eb11d38ce6 100644 --- a/atom/browser/net/atom_url_request_context_getter.cc +++ b/atom/browser/net/atom_url_request_context_getter.cc @@ -6,10 +6,10 @@ #include +#include "atom/browser/net/atom_url_request_job_factory.h" #include "base/strings/string_util.h" #include "base/threading/sequenced_worker_pool.h" #include "base/threading/worker_pool.h" -#include "atom/browser/net/atom_url_request_job_factory.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/cookie_store_factory.h" #include "content/public/common/url_constants.h" diff --git a/atom/browser/resources/mac/Info.plist b/atom/browser/resources/mac/Info.plist index 519349c0cb70..bc76eda423a7 100644 --- a/atom/browser/resources/mac/Info.plist +++ b/atom/browser/resources/mac/Info.plist @@ -16,5 +16,7 @@ MainMenu NSPrincipalClass AtomApplication + NSSupportsAutomaticGraphicsSwitching + diff --git a/atom/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc index d9cef0425efe..6c76c2991b26 100644 --- a/atom/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -4,9 +4,9 @@ #include "atom/browser/ui/file_dialog.h" +#include "atom/browser/native_window.h" #include "base/callback.h" #include "base/file_util.h" -#include "atom/browser/native_window.h" #include "chrome/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" diff --git a/atom/browser/ui/file_dialog_mac.mm b/atom/browser/ui/file_dialog_mac.mm index 495db6849824..15b39c25acdc 100644 --- a/atom/browser/ui/file_dialog_mac.mm +++ b/atom/browser/ui/file_dialog_mac.mm @@ -5,11 +5,11 @@ #include "atom/browser/ui/file_dialog.h" #import -#include +#import +#include "atom/browser/native_window.h" #include "base/file_util.h" #include "base/strings/sys_string_conversions.h" -#include "atom/browser/native_window.h" namespace file_dialog { diff --git a/atom/browser/ui/file_dialog_win.cc b/atom/browser/ui/file_dialog_win.cc index d813dfe9ada0..94c7a962ab2b 100644 --- a/atom/browser/ui/file_dialog_win.cc +++ b/atom/browser/ui/file_dialog_win.cc @@ -9,13 +9,13 @@ #include #include +#include "atom/browser/native_window.h" #include "base/file_util.h" #include "base/i18n/case_conversion.h" #include "base/strings/string_util.h" #include "base/strings/string_split.h" #include "base/strings/utf_string_conversions.h" #include "base/win/registry.h" -#include "atom/browser/native_window.h" #include "third_party/wtl/include/atlapp.h" #include "third_party/wtl/include/atldlgs.h" diff --git a/atom/browser/ui/message_box_gtk.cc b/atom/browser/ui/message_box_gtk.cc index 7e4ffe4f9576..16afd6562049 100644 --- a/atom/browser/ui/message_box_gtk.cc +++ b/atom/browser/ui/message_box_gtk.cc @@ -4,9 +4,9 @@ #include "atom/browser/ui/message_box.h" +#include "atom/browser/native_window.h" #include "base/callback.h" #include "base/strings/string_util.h" -#include "atom/browser/native_window.h" #include "chrome/browser/ui/gtk/gtk_util.h" #include "ui/base/gtk/gtk_signal.h" diff --git a/atom/browser/ui/message_box_mac.mm b/atom/browser/ui/message_box_mac.mm index 8e9acf9605d3..248befc0dd34 100644 --- a/atom/browser/ui/message_box_mac.mm +++ b/atom/browser/ui/message_box_mac.mm @@ -6,9 +6,9 @@ #import +#include "atom/browser/native_window.h" #include "base/callback.h" #include "base/strings/sys_string_conversions.h" -#include "atom/browser/native_window.h" @interface ModalDelegate : NSObject { @private diff --git a/atom/browser/ui/message_box_win.cc b/atom/browser/ui/message_box_win.cc index 3227c8b2a594..02c4997c26fc 100644 --- a/atom/browser/ui/message_box_win.cc +++ b/atom/browser/ui/message_box_win.cc @@ -4,12 +4,12 @@ #include "atom/browser/ui/message_box.h" +#include "atom/browser/native_window.h" #include "base/callback.h" #include "base/message_loop/message_loop.h" #include "base/run_loop.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" -#include "atom/browser/native_window.h" #include "skia/ext/skia_utils_win.h" #include "ui/views/controls/button/label_button.h" #include "ui/views/controls/message_box_view.h" diff --git a/atom/browser/ui/win/menu_2.h b/atom/browser/ui/win/menu_2.h index a6a822aa652b..7c7e7874d947 100644 --- a/atom/browser/ui/win/menu_2.h +++ b/atom/browser/ui/win/menu_2.h @@ -6,9 +6,9 @@ #ifndef ATOM_BROWSER_UI_WIN_MENU_2_H_ #define ATOM_BROWSER_UI_WIN_MENU_2_H_ +#include "atom/browser/ui/win/native_menu_win.h" #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" -#include "atom/browser/ui/win/native_menu_win.h" #include "ui/gfx/native_widget_types.h" namespace gfx { diff --git a/atom/browser/ui/win/native_menu_win.cc b/atom/browser/ui/win/native_menu_win.cc index 47555f8f30ac..797802b94525 100644 --- a/atom/browser/ui/win/native_menu_win.cc +++ b/atom/browser/ui/win/native_menu_win.cc @@ -6,13 +6,13 @@ #include +#include "atom/browser/ui/win/menu_2.h" #include "base/bind.h" #include "base/logging.h" #include "base/message_loop/message_loop.h" #include "base/stl_util.h" #include "base/strings/string_util.h" #include "base/win/wrapped_window_proc.h" -#include "atom/browser/ui/win/menu_2.h" #include "ui/base/accelerators/accelerator.h" #include "ui/events/keycodes/keyboard_codes.h" #include "ui/base/l10n/l10n_util.h" diff --git a/atom/browser/window_list.cc b/atom/browser/window_list.cc index 9343d89aca70..89682aeb2e1b 100644 --- a/atom/browser/window_list.cc +++ b/atom/browser/window_list.cc @@ -6,9 +6,9 @@ #include -#include "base/logging.h" #include "atom/browser/native_window.h" #include "atom/browser/window_list_observer.h" +#include "base/logging.h" namespace atom { diff --git a/atom/common/api/api_messages.h b/atom/common/api/api_messages.h index 003ac790fc84..719ed79002ff 100644 --- a/atom/common/api/api_messages.h +++ b/atom/common/api/api_messages.h @@ -4,9 +4,9 @@ // Multiply-included file, no traditional include guard. +#include "atom/common/draggable_region.h" #include "base/strings/string16.h" #include "base/values.h" -#include "atom/common/draggable_region.h" #include "content/public/common/common_param_traits.h" #include "ipc/ipc_message_macros.h" diff --git a/atom/common/api/atom_api_event_emitter.cc b/atom/common/api/atom_api_event_emitter.cc index c6640492418c..9588a3b5c9e1 100644 --- a/atom/common/api/atom_api_event_emitter.cc +++ b/atom/common/api/atom_api_event_emitter.cc @@ -6,9 +6,9 @@ #include -#include "base/logging.h" #include "atom/browser/api/atom_api_event.h" #include "atom/common/v8/native_type_conversions.h" +#include "base/logging.h" #include "atom/common/v8/node_common.h" diff --git a/atom/common/api/atom_api_id_weak_map.cc b/atom/common/api/atom_api_id_weak_map.cc index 3a2fb2ce5dbf..08fe741bc23f 100644 --- a/atom/common/api/atom_api_id_weak_map.cc +++ b/atom/common/api/atom_api_id_weak_map.cc @@ -7,9 +7,9 @@ #include -#include "base/logging.h" #include "atom/common/v8/native_type_conversions.h" #include "atom/common/v8/node_common.h" +#include "base/logging.h" namespace atom { diff --git a/atom/common/api/atom_api_id_weak_map.h b/atom/common/api/atom_api_id_weak_map.h index c4e02c2c8766..3f0646f7842f 100644 --- a/atom/common/api/atom_api_id_weak_map.h +++ b/atom/common/api/atom_api_id_weak_map.h @@ -8,14 +8,15 @@ #include -#include "base/basictypes.h" #include "atom/common/v8/scoped_persistent.h" +#include "base/basictypes.h" #include "vendor/node/src/node_object_wrap.h" namespace atom { namespace api { +// Like ES6's WeakMap, but the key is Integer and the value is Weak Pointer. class IDWeakMap : public node::ObjectWrap { public: static void Initialize(v8::Handle target); diff --git a/atom/common/api/atom_api_shell.cc b/atom/common/api/atom_api_shell.cc index 6864e25f2eae..bae608982c87 100644 --- a/atom/common/api/atom_api_shell.cc +++ b/atom/common/api/atom_api_shell.cc @@ -6,9 +6,9 @@ #include -#include "base/files/file_path.h" #include "atom/common/platform_util.h" #include "atom/common/v8/native_type_conversions.h" +#include "base/files/file_path.h" #include "url/gurl.h" #include "atom/common/v8/node_common.h" diff --git a/atom/common/api/atom_bindings.cc b/atom/common/api/atom_bindings.cc index 4f1723db586a..26c5daf301e4 100644 --- a/atom/common/api/atom_bindings.cc +++ b/atom/common/api/atom_bindings.cc @@ -6,9 +6,9 @@ #include -#include "base/logging.h" #include "atom/common/atom_version.h" #include "atom/common/v8/native_type_conversions.h" +#include "base/logging.h" #include "atom/common/v8/node_common.h" diff --git a/atom/common/api/object_life_monitor.h b/atom/common/api/object_life_monitor.h index 101560f161e4..1fc285294428 100644 --- a/atom/common/api/object_life_monitor.h +++ b/atom/common/api/object_life_monitor.h @@ -6,8 +6,8 @@ #ifndef ATOM_COMMON_API_OBJECT_LIFE_MONITOR_H_ #define ATOM_COMMON_API_OBJECT_LIFE_MONITOR_H_ -#include "base/basictypes.h" #include "atom/common/v8/scoped_persistent.h" +#include "base/basictypes.h" namespace atom { diff --git a/atom/common/crash_reporter/crash_reporter.cc b/atom/common/crash_reporter/crash_reporter.cc index 02d82a4cc454..23d25f37f0ce 100644 --- a/atom/common/crash_reporter/crash_reporter.cc +++ b/atom/common/crash_reporter/crash_reporter.cc @@ -4,9 +4,9 @@ #include "atom/common/crash_reporter/crash_reporter.h" -#include "base/command_line.h" #include "atom/browser/browser.h" #include "atom/common/atom_version.h" +#include "base/command_line.h" #include "content/public/common/content_switches.h" namespace crash_reporter { diff --git a/atom/common/crash_reporter/crash_reporter_linux.h b/atom/common/crash_reporter/crash_reporter_linux.h index 9713ef243ba1..8876ebad7ca4 100644 --- a/atom/common/crash_reporter/crash_reporter_linux.h +++ b/atom/common/crash_reporter/crash_reporter_linux.h @@ -7,10 +7,10 @@ #include -#include "base/compiler_specific.h" -#include "base/memory/scoped_ptr.h" #include "atom/common/crash_reporter/crash_reporter.h" #include "atom/common/crash_reporter/linux/crash_dump_handler.h" +#include "base/compiler_specific.h" +#include "base/memory/scoped_ptr.h" template struct DefaultSingletonTraits; diff --git a/atom/common/crash_reporter/crash_reporter_mac.h b/atom/common/crash_reporter/crash_reporter_mac.h index 7791b7270bc5..a24bca9b5de3 100644 --- a/atom/common/crash_reporter/crash_reporter_mac.h +++ b/atom/common/crash_reporter/crash_reporter_mac.h @@ -7,8 +7,8 @@ #include -#include "base/compiler_specific.h" #include "atom/common/crash_reporter/crash_reporter.h" +#include "base/compiler_specific.h" #import "vendor/breakpad/src/client/mac/Framework/Breakpad.h" template struct DefaultSingletonTraits; diff --git a/atom/common/crash_reporter/crash_reporter_win.h b/atom/common/crash_reporter/crash_reporter_win.h index f57e6aad876c..8e138b0702e3 100644 --- a/atom/common/crash_reporter/crash_reporter_win.h +++ b/atom/common/crash_reporter/crash_reporter_win.h @@ -8,9 +8,9 @@ #include #include +#include "atom/common/crash_reporter/crash_reporter.h" #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" -#include "atom/common/crash_reporter/crash_reporter.h" #include "vendor/breakpad/src/client/windows/handler/exception_handler.h" template struct DefaultSingletonTraits; diff --git a/atom/common/crash_reporter/win/crash_service_main.cc b/atom/common/crash_reporter/win/crash_service_main.cc index 7cd35445df4c..8a587ae87243 100644 --- a/atom/common/crash_reporter/win/crash_service_main.cc +++ b/atom/common/crash_reporter/win/crash_service_main.cc @@ -4,12 +4,12 @@ #include "atom/common/crash_reporter/win/crash_service_main.h" +#include "atom/common/crash_reporter/win/crash_service.h" #include "base/at_exit.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #include "base/strings/string_util.h" -#include "atom/common/crash_reporter/win/crash_service.h" namespace crash_service { diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index b8ed993ceddf..8545f1faecf7 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -7,11 +7,11 @@ #include #include +#include "atom/common/v8/native_type_conversions.h" #include "base/command_line.h" #include "base/message_loop/message_loop.h" #include "base/base_paths.h" #include "base/path_service.h" -#include "atom/common/v8/native_type_conversions.h" #include "content/public/browser/browser_thread.h" #if defined(OS_WIN) diff --git a/atom/common/node_bindings_mac.h b/atom/common/node_bindings_mac.h index b49a4ece5001..fb5e1d54e963 100644 --- a/atom/common/node_bindings_mac.h +++ b/atom/common/node_bindings_mac.h @@ -5,8 +5,8 @@ #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" +#include "base/compiler_specific.h" namespace atom { diff --git a/atom/common/node_bindings_win.h b/atom/common/node_bindings_win.h index 2bec6bdab975..a063a37d6af7 100644 --- a/atom/common/node_bindings_win.h +++ b/atom/common/node_bindings_win.h @@ -5,8 +5,8 @@ #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" +#include "base/compiler_specific.h" namespace atom { diff --git a/atom/common/v8/native_type_conversions.h b/atom/common/v8/native_type_conversions.h index 82861d48c44e..fbe615b3f901 100644 --- a/atom/common/v8/native_type_conversions.h +++ b/atom/common/v8/native_type_conversions.h @@ -9,14 +9,14 @@ #include #include -#include "base/files/file_path.h" -#include "base/strings/string16.h" -#include "base/template_util.h" -#include "base/values.h" #include "atom/browser/api/atom_api_window.h" #include "atom/common/swap_or_assign.h" #include "atom/common/v8/scoped_persistent.h" #include "atom/common/v8/v8_value_converter.h" +#include "base/files/file_path.h" +#include "base/strings/string16.h" +#include "base/template_util.h" +#include "base/values.h" #include "ui/gfx/point.h" #include "ui/gfx/rect.h" #include "ui/gfx/size.h" diff --git a/atom/renderer/atom_render_view_observer.cc b/atom/renderer/atom_render_view_observer.cc index 7f7a81b7cf26..734a6033605c 100644 --- a/atom/renderer/atom_render_view_observer.cc +++ b/atom/renderer/atom_render_view_observer.cc @@ -7,10 +7,10 @@ #include #include "atom/common/api/api_messages.h" -#include "content/public/renderer/render_view.h" -#include "ipc/ipc_message_macros.h" #include "atom/renderer/api/atom_renderer_bindings.h" #include "atom/renderer/atom_renderer_client.h" +#include "content/public/renderer/render_view.h" +#include "ipc/ipc_message_macros.h" #include "third_party/WebKit/public/web/WebDraggableRegion.h" #include "third_party/WebKit/public/web/WebDocument.h" #include "third_party/WebKit/public/web/WebFrame.h" diff --git a/atom/renderer/atom_renderer_client.cc b/atom/renderer/atom_renderer_client.cc index 9851f462bd58..2ac028f27902 100644 --- a/atom/renderer/atom_renderer_client.cc +++ b/atom/renderer/atom_renderer_client.cc @@ -7,11 +7,11 @@ #include #include -#include "base/command_line.h" #include "atom/common/node_bindings.h" #include "atom/common/options_switches.h" #include "atom/renderer/api/atom_renderer_bindings.h" #include "atom/renderer/atom_render_view_observer.h" +#include "base/command_line.h" #include "third_party/WebKit/public/web/WebDocument.h" #include "third_party/WebKit/public/web/WebFrame.h" From 6285e26972939780a34cc5dacb8d3b217d984e5e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 09:43:19 +0800 Subject: [PATCH 09/11] Fix coffeelint. --- script/coffeelint.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/coffeelint.py b/script/coffeelint.py index 4397e1a26304..76a53b42325f 100755 --- a/script/coffeelint.py +++ b/script/coffeelint.py @@ -16,10 +16,10 @@ def main(): coffeelint = os.path.join(SOURCE_ROOT, 'node_modules', 'coffeelint', 'bin', 'coffeelint') settings = ['--quiet', '-f', os.path.join('script', 'coffeelint.json')] - files = glob.glob('browser/api/lib/*.coffee') + \ - glob.glob('renderer/api/lib/*.coffee') + \ - glob.glob('common/api/lib/*.coffee') + \ - glob.glob('browser/atom/*.coffee') + files = glob.glob('atom/browser/api/lib/*.coffee') + \ + glob.glob('atom/renderer/api/lib/*.coffee') + \ + glob.glob('atom/common/api/lib/*.coffee') + \ + glob.glob('atom/browser/atom/*.coffee') try: subprocess.check_call(['node', coffeelint] + settings + files) From 5dd5f18edff7f0e4a52a2c679c3cc3961ecb8af8 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 13:24:25 +0800 Subject: [PATCH 10/11] Fix process.resourcesPath. --- atom.gyp | 6 +++--- atom/browser/lib/init.coffee | 4 ++-- atom/common/lib/init.coffee | 2 +- atom/common/node_bindings.cc | 3 ++- atom/renderer/lib/init.coffee | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/atom.gyp b/atom.gyp index 70a70bcae4e9..ed4b5bac566d 100644 --- a/atom.gyp +++ b/atom.gyp @@ -290,7 +290,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser', + 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/atom/browser', 'files': [ 'atom/browser/default_app', ], @@ -328,7 +328,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/resources/browser', + 'destination': '<(PRODUCT_DIR)/resources/atom/browser', 'files': [ 'atom/browser/default_app', ] @@ -346,7 +346,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/resources/browser', + 'destination': '<(PRODUCT_DIR)/resources/atom/browser', 'files': [ 'atom/browser/default_app', ] diff --git a/atom/browser/lib/init.coffee b/atom/browser/lib/init.coffee index 42e8df0d2017..fa69de100d08 100644 --- a/atom/browser/lib/init.coffee +++ b/atom/browser/lib/init.coffee @@ -4,7 +4,7 @@ util = require 'util' # Expose information of current process. process.__atom_type = 'browser' -process.resourcesPath = path.resolve process.argv[1], '..', '..', '..' +process.resourcesPath = path.resolve process.argv[1], '..', '..', '..', '..' # We modified the original process.argv to let node.js load the atom.js, # we need to restore it here. @@ -18,7 +18,7 @@ process.execArgv = process.argv.splice startMark, endMark - startMark + 1 # Add browser/api/lib to require's search paths, # which contains javascript part of Atom's built-in libraries. globalPaths = require('module').globalPaths -globalPaths.push path.join process.resourcesPath, 'browser', 'api', 'lib' +globalPaths.push path.join process.resourcesPath, 'atom', 'browser', 'api', 'lib' # Do loading in next tick since we still need some initialize work before # native bindings can work. diff --git a/atom/common/lib/init.coffee b/atom/common/lib/init.coffee index 20d468ee62f7..5e2602ac1805 100644 --- a/atom/common/lib/init.coffee +++ b/atom/common/lib/init.coffee @@ -4,7 +4,7 @@ Module = require 'module' # Add common/api/lib to module search paths. globalPaths = Module.globalPaths -globalPaths.push path.join(process.resourcesPath, 'common', 'api', 'lib') +globalPaths.push path.join(process.resourcesPath, 'atom', 'common', 'api', 'lib') # setImmediate and process.nextTick makes use of uv_check and uv_prepare to # run the callbacks, however since we only run uv loop on requests, the diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index 8545f1faecf7..a138273c7105 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -125,7 +125,8 @@ node::Environment* NodeBindings::CreateEnvironment( exec_path.DirName().AppendASCII("resources"); #endif base::FilePath script_path = - resources_path.AppendASCII(is_browser_ ? "browser" : "renderer") + resources_path.AppendASCII("atom") + .AppendASCII(is_browser_ ? "browser" : "renderer") .AppendASCII("lib") .AppendASCII("init.js"); std::string script_path_str = script_path.AsUTF8Unsafe(); diff --git a/atom/renderer/lib/init.coffee b/atom/renderer/lib/init.coffee index cf275f1bb286..33d7d200242a 100644 --- a/atom/renderer/lib/init.coffee +++ b/atom/renderer/lib/init.coffee @@ -3,7 +3,7 @@ Module = require 'module' # Expose information of current process. process.__atom_type = 'renderer' -process.resourcesPath = path.resolve process.argv[1], '..', '..', '..' +process.resourcesPath = path.resolve process.argv[1], '..', '..', '..', '..' # We modified the original process.argv to let node.js load the # atom-renderer.js, we need to restore it here. @@ -12,7 +12,7 @@ process.argv.splice 1, 1 # Add renderer/api/lib to require's search paths, which contains javascript part # of Atom's built-in libraries. globalPaths = Module.globalPaths -globalPaths.push path.join(process.resourcesPath, 'renderer', 'api', 'lib') +globalPaths.push path.join(process.resourcesPath, 'atom', 'renderer', 'api', 'lib') # And also app. globalPaths.push path.join(process.resourcesPath, 'app') From e3434b5cde54c74c10ba0ce7be7ac694a0a9e40c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 15:19:09 +0800 Subject: [PATCH 11/11] Fix the location default_app is copied to. --- atom.gyp | 6 +++--- atom/browser/lib/init.coffee | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atom.gyp b/atom.gyp index ed4b5bac566d..cb5256c63179 100644 --- a/atom.gyp +++ b/atom.gyp @@ -290,7 +290,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/atom/browser', + 'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources', 'files': [ 'atom/browser/default_app', ], @@ -328,7 +328,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/resources/atom/browser', + 'destination': '<(PRODUCT_DIR)/resources', 'files': [ 'atom/browser/default_app', ] @@ -346,7 +346,7 @@ ], }, { - 'destination': '<(PRODUCT_DIR)/resources/atom/browser', + 'destination': '<(PRODUCT_DIR)/resources', 'files': [ 'atom/browser/default_app', ] diff --git a/atom/browser/lib/init.coffee b/atom/browser/lib/init.coffee index fa69de100d08..c9ce616e99da 100644 --- a/atom/browser/lib/init.coffee +++ b/atom/browser/lib/init.coffee @@ -63,7 +63,7 @@ setImmediate -> packageJson = JSON.parse(fs.readFileSync(path.join(packagePath, 'package.json'))) catch error # If not found then we load browser/default_app - packagePath = path.join process.resourcesPath, 'browser', 'default_app' + packagePath = path.join process.resourcesPath, 'default_app' packageJson = JSON.parse(fs.readFileSync(path.join(packagePath, 'package.json'))) # Set application's version.