diff --git a/aa b/aa new file mode 100755 index 000000000..f7cc80e6a --- /dev/null +++ b/aa @@ -0,0 +1,2 @@ +coffee -c -o /Applications/Atom.app/Contents/Resources/app/src/ src/main.coffee && +/Applications/Atom.app/Contents/MacOS/Atom --resource-path=$(pwd) --executed-from=$(pwd) $@ diff --git a/native/atom_application.h b/native/atom_application.h deleted file mode 100644 index 85c932441..000000000 --- a/native/atom_application.h +++ /dev/null @@ -1,32 +0,0 @@ -#include "include/cef_app.h" -#include "include/cef_application_mac.h" - -class AtomCefClient; - -@interface AtomApplication : NSApplication { - IBOutlet NSMenuItem *_versionMenuItem; - NSWindowController *_backgroundWindowController; - NSDictionary *_arguments; - NSInvocation *_updateInvocation; - NSString *_updateStatus; - BOOL _filesOpened; - BOOL _handlingSendEvent; -} - -+ (AtomApplication *)sharedApplication; -+ (id)applicationWithArguments:(char **)argv count:(int)argc; -+ (CefSettings)createCefSettings; -+ (NSDictionary *)parseArguments:(char **)argv count:(int)argc; -- (void)open:(NSString *)path; -- (void)openDev:(NSString *)path; -- (void)open:(NSString *)path pidToKillWhenWindowCloses:(NSNumber *)pid; -- (void)openConfig; -- (IBAction)runSpecs:(id)sender; -- (IBAction)runBenchmarks:(id)sender; -- (void)runSpecsThenExit:(BOOL)exitWhenDone; -- (NSDictionary *)arguments; -- (void)runBenchmarksThenExit:(BOOL)exitWhenDone; - -@property (nonatomic, retain) NSDictionary *arguments; - -@end diff --git a/native/atom_application.mm b/native/atom_application.mm deleted file mode 100644 index 659c4adaf..000000000 --- a/native/atom_application.mm +++ /dev/null @@ -1,347 +0,0 @@ -#import "include/cef_application_mac.h" -#import "native/atom_cef_client.h" -#import "native/atom_application.h" -#import "native/atom_window_controller.h" -#import "native/atom_cef_app.h" -#import -#import -#import - -@implementation AtomApplication - -@synthesize arguments=_arguments; - -+ (AtomApplication *)sharedApplication { - return (AtomApplication *)[super sharedApplication]; -} - -+ (id)applicationWithArguments:(char **)argv count:(int)argc { - AtomApplication *application = [self sharedApplication]; - CefInitialize(CefMainArgs(argc, argv), [self createCefSettings], new AtomCefApp); - application.arguments = [self parseArguments:argv count:argc]; - - return application; -} - -+ (NSDictionary *)parseArguments:(char **)argv count:(int)argc { - NSMutableDictionary *arguments = [[NSMutableDictionary alloc] init]; - - // Remove non-posix (i.e. -long_argument_with_one_leading_hyphen) added by OS X from the command line - int cleanArgc = argc; - size_t argvSize = argc * sizeof(char *); - char **cleanArgv = (char **)alloca(argvSize); - for (int i=0; i < argc; i++) { - if (strcmp(argv[i], "-NSDocumentRevisionsDebugMode") == 0) { // Xcode inserts useless command-line args by default: http://trac.wxwidgets.org/ticket/13732 - cleanArgc -= 2; - i++; - } - else if (strncmp(argv[i], "-psn_", 5) == 0) { // OS X inserts a -psn_[PID] argument. - cleanArgc -= 1; - } - else { - cleanArgv[i] = argv[i]; - } - } - - int opt; - int longindex; - - static struct option longopts[] = { - { "executed-from", required_argument, NULL, 'K' }, - { "resource-path", required_argument, NULL, 'R' }, - { "benchmark", no_argument, NULL, 'B' }, - { "test", no_argument, NULL, 'T' }, - { "dev", no_argument, NULL, 'D' }, - { "pid", required_argument, NULL, 'P' }, - { "wait", no_argument, NULL, 'W' }, - { NULL, 0, NULL, 0 } - }; - - while ((opt = getopt_long(cleanArgc, cleanArgv, "K:R:BYDP:Wh?", longopts, &longindex)) != -1) { - NSString *key, *value; - switch (opt) { - case 'K': - case 'R': - case 'B': - case 'T': - case 'D': - case 'W': - case 'P': - key = [NSString stringWithUTF8String:longopts[longindex].name]; - value = optarg ? [NSString stringWithUTF8String:optarg] : @"YES"; - [arguments setObject:value forKey:key]; - break; - case 0: - break; - default: - NSLog(@"usage: atom [--resource-path=] []"); - } - } - - cleanArgc -= optind; - cleanArgv += optind; - - if (cleanArgc > 0) { - NSString *path = [NSString stringWithUTF8String:cleanArgv[0]]; - path = [self standardizePathToOpen:path withArguments:arguments]; - [arguments setObject:path forKey:@"path"]; - } else { - NSString *executedFromPath = [arguments objectForKey:@"executed-from"]; - if (executedFromPath) { - [arguments setObject:executedFromPath forKey:@"path"]; - } - } - - return arguments; -} - -+ (NSString *)standardizePathToOpen:(NSString *)path withArguments:(NSDictionary *)arguments { - NSString *standardizedPath = path; - NSString *executedFromPath = [arguments objectForKey:@"executed-from"]; - if (![standardizedPath isAbsolutePath] && executedFromPath) { - standardizedPath = [executedFromPath stringByAppendingPathComponent:standardizedPath]; - } - standardizedPath = [standardizedPath stringByStandardizingPath]; - return standardizedPath; -} - -+ (NSString *)supportDirectory { - NSString *cachePath = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex:0]; - NSString *executableName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleExecutable"]; - NSString *supportDirectory = [cachePath stringByAppendingPathComponent:executableName]; - - NSFileManager *fs = [NSFileManager defaultManager]; - NSError *error; - BOOL success = [fs createDirectoryAtPath:supportDirectory withIntermediateDirectories:YES attributes:nil error:&error]; - if (!success) { - NSLog(@"Warning: Can't create support directory '%@' because %@", supportDirectory, [error localizedDescription]); - supportDirectory = @""; - } - - return supportDirectory; -} - -+ (CefSettings)createCefSettings { - CefSettings settings; - - NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; - NSString *userAgent = [NSString stringWithFormat:@"GitHubAtom/%@", version]; - CefString(&settings.cache_path) = [[self supportDirectory] UTF8String]; - CefString(&settings.user_agent) = [userAgent UTF8String]; - CefString(&settings.log_file) = ""; - CefString(&settings.javascript_flags) = "--harmony_collections"; - settings.remote_debugging_port = 9090; - settings.log_severity = LOGSEVERITY_ERROR; - return settings; -} - -- (void)dealloc { - [_backgroundWindowController release]; - [_arguments release]; - [_updateInvocation release]; - [super dealloc]; -} - -- (void)open:(NSString *)path pidToKillWhenWindowCloses:(NSNumber *)pid { - BOOL openingDirectory = false; - [[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&openingDirectory]; - - if (!pid) { - for (NSWindow *window in [self windows]) { - if (![window isExcludedFromWindowsMenu]) { - AtomWindowController *controller = [window windowController]; - if (!controller.pathToOpen) { - continue; - } - if (!openingDirectory) { - BOOL openedPathIsDirectory = false; - [[NSFileManager defaultManager] fileExistsAtPath:controller.pathToOpen isDirectory:&openedPathIsDirectory]; - NSString *projectPath = NULL; - if (openedPathIsDirectory) { - projectPath = [NSString stringWithFormat:@"%@/", controller.pathToOpen]; - } - else { - projectPath = [controller.pathToOpen stringByDeletingLastPathComponent]; - } - if ([path hasPrefix:projectPath]) { - [window makeKeyAndOrderFront:nil]; - [controller openPath:path]; - return; - } - } - - if ([path isEqualToString:controller.pathToOpen]) { - [window makeKeyAndOrderFront:nil]; - return; - } - } - } - } - - AtomWindowController *windowController = [[AtomWindowController alloc] initWithPath:path]; - [windowController setPidToKillOnClose:pid]; - return windowController; -} - -- (void)open:(NSString *)path { - [self open:path pidToKillWhenWindowCloses:nil]; -} - -- (void)openDev:(NSString *)path { - [[AtomWindowController alloc] initDevWithPath:path]; -} - -- (void)openConfig { - for (NSWindow *window in [self windows]) { - if ([[window windowController] isConfig]) { - [window makeKeyAndOrderFront:nil]; - return; - } - } - [[AtomWindowController alloc] initConfig]; -} - -- (IBAction)runSpecs:(id)sender { - [self runSpecsThenExit:NO]; -} - -- (void)runSpecsThenExit:(BOOL)exitWhenDone { - [[AtomWindowController alloc] initSpecsThenExit:exitWhenDone]; -} - -- (IBAction)runBenchmarks:(id)sender { - [self runBenchmarksThenExit:NO]; -} - -- (void)runBenchmarksThenExit:(BOOL)exitWhenDone { - [[AtomWindowController alloc] initBenchmarksThenExit:exitWhenDone]; -} - -# pragma mark NSApplicationDelegate - -- (BOOL)shouldOpenFiles { - if ([self.arguments objectForKey:@"benchmark"]) { - return NO; - } - if ([self.arguments objectForKey:@"test"]) { - return NO; - } - return YES; -} - -- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames { - if ([self shouldOpenFiles]) { - for (NSString *path in filenames) { - path = [[self class] standardizePathToOpen:path withArguments:self.arguments]; - NSNumber *pid = [self.arguments objectForKey:@"wait"] ? [self.arguments objectForKey:@"pid"] : nil; - [self open:path pidToKillWhenWindowCloses:pid]; - } - if ([filenames count] > 0) { - _filesOpened = YES; - } - } -} - -- (void)applicationDidFinishLaunching:(NSNotification *)notification { - BWQuincyManager *manager = [BWQuincyManager sharedQuincyManager]; - [manager setCompanyName:@"GitHub"]; - [manager setSubmissionURL:@"https://speakeasy.githubapp.com/submit_crash_log"]; - [manager setAutoSubmitCrashReport:YES]; - - if (!_filesOpened && [self shouldOpenFiles]) { - NSString *path = [self.arguments objectForKey:@"path"]; - NSNumber *pid = [self.arguments objectForKey:@"wait"] ? [self.arguments objectForKey:@"pid"] : nil; - [self open:path pidToKillWhenWindowCloses:pid]; - } -} - -- (void)applicationWillFinishLaunching:(NSNotification *)notification { - NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; - _versionMenuItem.title = [NSString stringWithFormat:@"Version %@", version]; - - if ([self.arguments objectForKey:@"benchmark"]) { - [self runBenchmarksThenExit:true]; - } - else if ([self.arguments objectForKey:@"test"]) { - [self runSpecsThenExit:true]; - } - else { - _backgroundWindowController = [[AtomWindowController alloc] initInBackground]; - -#if defined(CODE_SIGNING_ENABLED) - SUUpdater.sharedUpdater.delegate = self; - SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES; - SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES; - [SUUpdater.sharedUpdater checkForUpdatesInBackground]; -#endif - - } -} - -// The first call to terminate is canceled so that every window can be closed. -// On AtomCefClient the OnBeforeClose method is called when a browser is -// finished closing. Once all browsers have finished closing, AtomCefClient -// calls terminate again, which will complete since no windows will be open. -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { - bool atomWindowsAreOpen = NO; - for (NSWindow *window in self.windows) { - if ([window.windowController isKindOfClass:[AtomWindowController class]]) { - atomWindowsAreOpen = YES; - [window performClose:self]; - } - } - - if (atomWindowsAreOpen) { - return NSTerminateCancel; - } - else { - CefQuitMessageLoop(); - return NSTerminateNow; - } -} - -# pragma mark CefAppProtocol - -- (BOOL)isHandlingSendEvent { - return _handlingSendEvent; -} - -- (void)setHandlingSendEvent:(BOOL)handlingSendEvent { - _handlingSendEvent = handlingSendEvent; -} - -- (void)sendEvent:(NSEvent*)event { - CefScopedSendingEvent sendingEventScoper; - if ([[self mainMenu] performKeyEquivalent:event]) return; - - if (_backgroundWindowController && ![self keyWindow] && [event type] == NSKeyDown) { - [_backgroundWindowController.window makeKeyWindow]; - [_backgroundWindowController.window sendEvent:event]; - } - else { - [super sendEvent:event]; - } -} - -#pragma mark SUUpdaterDelegate - -- (void)updaterDidNotFindUpdate:(SUUpdater *)update { -} - -- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update { -} - -- (void)updater:(SUUpdater *)updater willExtractUpdate:(SUAppcastItem *)update { -} - -- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)update immediateInstallationInvocation:(NSInvocation *)invocation { - _updateInvocation = [invocation retain]; - _versionMenuItem.title = [NSString stringWithFormat:@"Update to %@", update.versionString]; - _versionMenuItem.target = _updateInvocation; - _versionMenuItem.action = @selector(invoke); -} - -- (void)updater:(SUUpdater *)updater didCancelInstallUpdateOnQuit:(SUAppcastItem *)update { -} - -@end diff --git a/native/atom_cef_app.h b/native/atom_cef_app.h deleted file mode 100644 index 5cd8ce3ac..000000000 --- a/native/atom_cef_app.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef ATOM_CEF_APP_H_ -#define ATOM_CEF_APP_H_ -#pragma once - -#include "include/cef_app.h" - -#include "atom_cef_render_process_handler.h" - -class AtomCefApp : public CefApp { - - virtual CefRefPtr GetRenderProcessHandler() OVERRIDE { - return CefRefPtr(new AtomCefRenderProcessHandler); - } - - IMPLEMENT_REFCOUNTING(AtomCefApp); -}; - -#endif diff --git a/native/atom_cef_client.cpp b/native/atom_cef_client.cpp deleted file mode 100644 index b25cee48e..000000000 --- a/native/atom_cef_client.cpp +++ /dev/null @@ -1,275 +0,0 @@ -#include -#include -#include -#include "include/cef_app.h" -#include "include/cef_path_util.h" -#include "include/cef_process_util.h" -#include "include/cef_task.h" -#include "include/cef_runnable.h" -#include "include/cef_trace.h" -#include "cef_types.h" -#include "native/atom_cef_client.h" -#include "cef_v8.h" - -#define REQUIRE_UI_THREAD() assert(CefCurrentlyOn(TID_UI)); -#define REQUIRE_IO_THREAD() assert(CefCurrentlyOn(TID_IO)); -#define REQUIRE_FILE_THREAD() assert(CefCurrentlyOn(TID_FILE)); - -static int numberOfOpenBrowsers = 0; - -AtomCefClient::AtomCefClient() { -} - -AtomCefClient::AtomCefClient(bool handlePasteboardCommands, bool ignoreTitleChanges) { - m_HandlePasteboardCommands = handlePasteboardCommands; - m_IgnoreTitleChanges = ignoreTitleChanges; -} - -AtomCefClient::~AtomCefClient() { -} - -bool AtomCefClient::OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, - CefRefPtr message) { - std::string name = message->GetName().ToString(); - CefRefPtr argumentList = message->GetArgumentList(); - int messageId = argumentList->GetInt(0); - - if (name == "open") { - bool hasArguments = argumentList->GetSize() > 1; - hasArguments ? Open(argumentList->GetString(1)) : Open(); - } - if (name == "openDev") { - bool hasArguments = argumentList->GetSize() > 1; - hasArguments ? OpenDev(argumentList->GetString(1)) : OpenDev(); - } - else if (name == "newWindow") { - NewWindow(); - } - else if (name == "openConfig") { - OpenConfig(); - } - else if (name == "toggleDevTools") { - ToggleDevTools(browser); - } - else if (name == "showDevTools") { - ShowDevTools(browser); - } - else if (name == "confirm") { - std::string message = argumentList->GetString(1).ToString(); - std::string detailedMessage = argumentList->GetString(2).ToString(); - std::vector buttonLabels(argumentList->GetSize() - 3); - for (int i = 3; i < argumentList->GetSize(); i++) { - buttonLabels[i - 3] = argumentList->GetString(i).ToString(); - } - - Confirm(messageId, message, detailedMessage, buttonLabels, browser); - } - else if (name == "showSaveDialog") { - ShowSaveDialog(messageId, browser); - } - else if (name == "focus") { - GetBrowser()->GetHost()->SetFocus(true); - } - else if (name == "exit") { - Exit(argumentList->GetInt(1)); - } - else if (name == "log") { - std::string message = argumentList->GetString(1).ToString(); - Log(message.c_str()); - } - else if (name == "beginTracing") { - BeginTracing(); - } - else if (name == "endTracing") { - EndTracing(); - } - else if (name == "show") { - Show(browser); - } - else if (name == "toggleFullScreen") { - ToggleFullScreen(browser); - } - else if (name == "getVersion") { - GetVersion(messageId, browser); - } - else if (name == "crash") { - __builtin_trap(); - } - else if (name == "restartRendererProcess") { - RestartRendererProcess(browser); - } - else { - return false; - } - - return true; -} - -void AtomCefClient::OnBeforeContextMenu( - CefRefPtr browser, - CefRefPtr frame, - CefRefPtr params, - CefRefPtr model) { - - model->Clear(); - model->AddItem(MENU_ID_USER_FIRST, "&Toggle DevTools"); -} - -bool AtomCefClient::OnContextMenuCommand( - CefRefPtr browser, - CefRefPtr frame, - CefRefPtr params, - int command_id, - EventFlags event_flags) { - - if (command_id == MENU_ID_USER_FIRST) { - ToggleDevTools(browser); - return true; - } - else { - return false; - } -} - -bool AtomCefClient::OnConsoleMessage(CefRefPtr browser, - const CefString& message, - const CefString& source, - int line) { - REQUIRE_UI_THREAD(); - Log(message.ToString().c_str()); - return true; -} - -bool AtomCefClient::OnKeyEvent(CefRefPtr browser, - const CefKeyEvent& event, - CefEventHandle os_event) { - if (event.modifiers == EVENTFLAG_COMMAND_DOWN && event.unmodified_character == 'r') { - browser->SendProcessMessage(PID_RENDERER, CefProcessMessage::Create("reload")); - } - if (m_HandlePasteboardCommands && event.modifiers == EVENTFLAG_COMMAND_DOWN && event.unmodified_character == 'x') { - browser->GetFocusedFrame()->Cut(); - } - if (m_HandlePasteboardCommands && event.modifiers == EVENTFLAG_COMMAND_DOWN && event.unmodified_character == 'c') { - browser->GetFocusedFrame()->Copy(); - } - if (m_HandlePasteboardCommands && event.modifiers == EVENTFLAG_COMMAND_DOWN && event.unmodified_character == 'v') { - browser->GetFocusedFrame()->Paste(); - } - else if (event.modifiers == (EVENTFLAG_COMMAND_DOWN | EVENTFLAG_ALT_DOWN) && event.unmodified_character == 'i') { - ToggleDevTools(browser); - } else if (event.modifiers == EVENTFLAG_COMMAND_DOWN && event.unmodified_character == '`') { - FocusNextWindow(); - } else if (event.modifiers == (EVENTFLAG_COMMAND_DOWN | EVENTFLAG_SHIFT_DOWN) && event.unmodified_character == '~') { - FocusPreviousWindow(); - } - else { - return false; - } - - return true; -} - -void AtomCefClient::OnBeforeClose(CefRefPtr browser) { - m_Browser = NULL; - numberOfOpenBrowsers--; - if (numberOfOpenBrowsers == 0) { - Terminate(); - } -} - -void AtomCefClient::OnAfterCreated(CefRefPtr browser) { - REQUIRE_UI_THREAD(); - - AutoLock lock_scope(this); - if (!m_Browser.get()) { - m_Browser = browser; - } - - GetBrowser()->GetHost()->SetFocus(true); - numberOfOpenBrowsers++; -} - -void AtomCefClient::OnLoadError(CefRefPtr browser, - CefRefPtr frame, - ErrorCode errorCode, - const CefString& errorText, - const CefString& failedUrl) { - REQUIRE_UI_THREAD(); - frame->LoadString(std::string(errorText) + "
" + std::string(failedUrl), failedUrl); -} - -void AtomCefClient::BeginTracing() { - if (CefCurrentlyOn(TID_UI)) { - class Client : public CefTraceClient, - public CefRunFileDialogCallback { - public: - explicit Client(CefRefPtr handler) - : handler_(handler), - trace_data_("{\"traceEvents\":["), - first_(true) { - } - - virtual void OnTraceDataCollected(const char* fragment, - size_t fragment_size) OVERRIDE { - if (first_) - first_ = false; - else - trace_data_.append(","); - trace_data_.append(fragment, fragment_size); - } - - virtual void OnEndTracingComplete() OVERRIDE { - REQUIRE_UI_THREAD(); - trace_data_.append("]}"); - - handler_->GetBrowser()->GetHost()->RunFileDialog( - FILE_DIALOG_SAVE, CefString(), "/tmp/atom-trace.txt", std::vector(), - this); - } - - virtual void OnFileDialogDismissed( - CefRefPtr browser_host, - const std::vector& file_paths) OVERRIDE { - if (!file_paths.empty()) - handler_->Save(file_paths.front(), trace_data_); - } - - private: - CefRefPtr handler_; - std::string trace_data_; - bool first_; - - IMPLEMENT_REFCOUNTING(Callback); - }; - - CefBeginTracing(new Client(this), CefString()); - } else { - CefPostTask(TID_UI, NewCefRunnableMethod(this, &AtomCefClient::BeginTracing)); - } -} - -void AtomCefClient::EndTracing() { - if (CefCurrentlyOn(TID_UI)) { - CefEndTracingAsync(); - } else { - CefPostTask(TID_UI, NewCefRunnableMethod(this, &AtomCefClient::BeginTracing)); - } -} - -bool AtomCefClient::Save(const std::string& path, const std::string& data) { - FILE* f = fopen(path.c_str(), "w"); - if (!f) - return false; - fwrite(data.c_str(), data.size(), 1, f); - fclose(f); - return true; -} - -void AtomCefClient::RestartRendererProcess(CefRefPtr browser) { - // Navigating to the same URL has the effect of restarting the renderer - // process, because cefode has overridden ContentBrowserClient's - // ShouldSwapProcessesForNavigation method. - CefRefPtr frame = browser->GetFocusedFrame(); - frame->LoadURL(frame->GetURL()); -} diff --git a/native/atom_cef_client.h b/native/atom_cef_client.h deleted file mode 100644 index 8f93c384c..000000000 --- a/native/atom_cef_client.h +++ /dev/null @@ -1,140 +0,0 @@ -#ifndef ATOM_CEF_CLIENT_H_ -#define ATOM_CEF_CLIENT_H_ -#pragma once - -#include -#include -#include "include/cef_client.h" - -class AtomCefClient : public CefClient, - public CefContextMenuHandler, - public CefDisplayHandler, - public CefJSDialogHandler, - public CefKeyboardHandler, - public CefLifeSpanHandler, - public CefLoadHandler, - public CefRequestHandler { - public: - AtomCefClient(); - AtomCefClient(bool handlePasteboardCommands, bool ignoreTitleChanges); - virtual ~AtomCefClient(); - - CefRefPtr GetBrowser() { return m_Browser; } - - virtual CefRefPtr GetContextMenuHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetDisplayHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetJSDialogHandler() { - return this; - } - virtual CefRefPtr GetKeyboardHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetLifeSpanHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetLoadHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetRequestHandler() OVERRIDE { - return this; - } - - virtual bool OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, - CefRefPtr message) OVERRIDE; - - - // CefContextMenuHandler methods - virtual void OnBeforeContextMenu(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr params, - CefRefPtr model) OVERRIDE; - - virtual bool OnContextMenuCommand(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr params, - int command_id, - EventFlags event_flags) OVERRIDE; - - // CefDisplayHandler methods - virtual bool OnConsoleMessage(CefRefPtr browser, - const CefString& message, - const CefString& source, - int line) OVERRIDE; - - virtual void OnTitleChange(CefRefPtr browser, - const CefString& title) OVERRIDE; - - // CefJsDialogHandlerMethods - virtual bool OnBeforeUnloadDialog(CefRefPtr browser, - const CefString& message_text, - bool is_reload, - CefRefPtr callback) { - callback->Continue(true, ""); - return true; - } - - // CefKeyboardHandler methods - virtual bool OnKeyEvent(CefRefPtr browser, - const CefKeyEvent& event, - CefEventHandle os_event) OVERRIDE; - - // CefLifeSpanHandler methods - virtual void OnAfterCreated(CefRefPtr browser) OVERRIDE; - virtual void OnBeforeClose(CefRefPtr browser) OVERRIDE; - virtual bool DoClose(CefRefPtr browser) OVERRIDE; - - - // CefLoadHandler methods - virtual void OnLoadError(CefRefPtr browser, - CefRefPtr frame, - ErrorCode errorCode, - const CefString& errorText, - const CefString& failedUrl) OVERRIDE; - - void BeginTracing(); - void EndTracing(); - - bool Save(const std::string& path, const std::string& data); - void RestartRendererProcess(CefRefPtr browser); - bool IsClosed() { return m_IsClosed; }; - - protected: - CefRefPtr m_Browser; - bool m_HandlePasteboardCommands = false; - bool m_IgnoreTitleChanges = false; - bool m_IsClosed = false; - - void FocusNextWindow(); - void FocusPreviousWindow(); - void Open(std::string path); - void Open(); - void OpenDev(std::string path); - void OpenDev(); - void NewWindow(); - void OpenConfig(); - void ToggleDevTools(CefRefPtr browser); - void ShowDevTools(CefRefPtr browser); - void Confirm(int replyId, - std::string message, - std::string detailedMessage, - std::vector buttonLabels, - CefRefPtr browser); - void ShowSaveDialog(int replyId, CefRefPtr browser); - CefRefPtr CreateReplyDescriptor(int replyId, int callbackIndex); - void Exit(int status); - void Terminate(); - void Log(const char *message); - void Show(CefRefPtr browser); - void ToggleFullScreen(CefRefPtr browser); - void GetVersion(int replyId, CefRefPtr browser); - - IMPLEMENT_REFCOUNTING(AtomCefClient); - IMPLEMENT_LOCKING(AtomCefClient); -}; - -#endif diff --git a/native/atom_cef_client_gtk.cpp b/native/atom_cef_client_gtk.cpp deleted file mode 100644 index a35b04e61..000000000 --- a/native/atom_cef_client_gtk.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#include -#include -#include "cefclient/client_handler.h" -#include "include/cef_browser.h" -#include "include/cef_frame.h" - -void ClientHandler::OnAddressChange(CefRefPtr browser, - CefRefPtr frame, - const CefString& url) { - REQUIRE_UI_THREAD(); - - if (m_BrowserId == browser->GetIdentifier() && frame->IsMain()) { - // Set the edit window text - std::string urlStr(url); - gtk_entry_set_text(GTK_ENTRY(m_EditHwnd), urlStr.c_str()); - } -} - -void ClientHandler::OnTitleChange(CefRefPtr browser, - const CefString& title) { - REQUIRE_UI_THREAD(); - - GtkWidget* window = gtk_widget_get_ancestor( - GTK_WIDGET(browser->GetHost()->GetWindowHandle()), - GTK_TYPE_WINDOW); - std::string titleStr(title); - gtk_window_set_title(GTK_WINDOW(window), titleStr.c_str()); -} - -void ClientHandler::SendNotification(NotificationType type) { - // TODO(port): Implement this method. -} - -void ClientHandler::SetLoading(bool isLoading) { - if (isLoading) - gtk_widget_set_sensitive(GTK_WIDGET(m_StopHwnd), true); - else - gtk_widget_set_sensitive(GTK_WIDGET(m_StopHwnd), false); -} - -void ClientHandler::SetNavState(bool canGoBack, bool canGoForward) { - if (canGoBack) - gtk_widget_set_sensitive(GTK_WIDGET(m_BackHwnd), true); - else - gtk_widget_set_sensitive(GTK_WIDGET(m_BackHwnd), false); - - if (canGoForward) - gtk_widget_set_sensitive(GTK_WIDGET(m_ForwardHwnd), true); - else - gtk_widget_set_sensitive(GTK_WIDGET(m_ForwardHwnd), false); -} - -void ClientHandler::CloseMainWindow() { - // TODO(port): Close main window. -} - -std::string ClientHandler::GetDownloadPath(const std::string& file_name) { - return std::string(); -} diff --git a/native/atom_cef_client_mac.mm b/native/atom_cef_client_mac.mm deleted file mode 100644 index bb7acb242..000000000 --- a/native/atom_cef_client_mac.mm +++ /dev/null @@ -1,186 +0,0 @@ -#import -#import -#import "include/cef_browser.h" -#import "include/cef_frame.h" -#import "native/atom_cef_client.h" -#import "atom_application.h" -#import "atom_window_controller.h" -#import "atom_application.h" - -void AtomCefClient::FocusNextWindow() { - NSArray *windows = [NSApp windows]; - int count = [windows count]; - int start = [windows indexOfObject:[NSApp keyWindow]]; - - int i = start; - while (true) { - i = (i + 1) % count; - if (i == start) break; - NSWindow *window = [windows objectAtIndex:i]; - if ([window isVisible] && ![window isExcludedFromWindowsMenu]) { - [window makeKeyAndOrderFront:nil]; - break; - } - } -} - -void AtomCefClient::FocusPreviousWindow() { - NSArray *windows = [NSApp windows]; - int count = [windows count]; - int start = [windows indexOfObject:[NSApp keyWindow]]; - - int i = start; - while (true) { - i = i - 1; - if (i == 0) i = count -1; - if (i == start) break; - NSWindow *window = [windows objectAtIndex:i]; - if ([window isVisible] && ![window isExcludedFromWindowsMenu]) { - [window makeKeyAndOrderFront:nil]; - break; - } - } -} - -void AtomCefClient::Open(std::string path) { - NSString *pathString = [NSString stringWithCString:path.c_str() encoding:NSUTF8StringEncoding]; - [(AtomApplication *)[AtomApplication sharedApplication] open:pathString]; -} - -void AtomCefClient::Open() { - NSOpenPanel *panel = [NSOpenPanel openPanel]; - [panel setCanChooseDirectories:YES]; - if ([panel runModal] == NSFileHandlingPanelOKButton) { - NSURL *url = [[panel URLs] lastObject]; - Open([[url path] UTF8String]); - } -} - -void AtomCefClient::OpenDev(std::string path) { - NSString *pathString = [NSString stringWithCString:path.c_str() encoding:NSUTF8StringEncoding]; - [(AtomApplication *)[AtomApplication sharedApplication] openDev:pathString]; -} - -void AtomCefClient::OpenDev() { - NSOpenPanel *panel = [NSOpenPanel openPanel]; - [panel setCanChooseDirectories:YES]; - if ([panel runModal] == NSFileHandlingPanelOKButton) { - NSURL *url = [[panel URLs] lastObject]; - OpenDev([[url path] UTF8String]); - } -} - -void AtomCefClient::NewWindow() { - [(AtomApplication *)[AtomApplication sharedApplication] open:nil]; -} - -void AtomCefClient::OpenConfig() { - [(AtomApplication *)[AtomApplication sharedApplication] openConfig]; -} - -void AtomCefClient::Confirm(int replyId, - std::string message, - std::string detailedMessage, - std::vector buttonLabels, - CefRefPtr browser) { - NSAlert *alert = [[[NSAlert alloc] init] autorelease]; - [alert setMessageText:[NSString stringWithCString:message.c_str() encoding:NSUTF8StringEncoding]]; - [alert setInformativeText:[NSString stringWithCString:detailedMessage.c_str() encoding:NSUTF8StringEncoding]]; - - for (int i = 0; i < buttonLabels.size(); i++) { - NSString *title = [NSString stringWithCString:buttonLabels[i].c_str() encoding:NSUTF8StringEncoding]; - NSButton *button = [alert addButtonWithTitle:title]; - [button setTag:i]; - } - - NSUInteger clickedButtonTag = [alert runModal]; - - CefRefPtr replyMessage = CefProcessMessage::Create("reply"); - CefRefPtr replyArguments = replyMessage->GetArgumentList(); - replyArguments->SetSize(1); - replyArguments->SetList(0, CreateReplyDescriptor(replyId, clickedButtonTag)); - browser->SendProcessMessage(PID_RENDERER, replyMessage); -} - - -void AtomCefClient::OnTitleChange(CefRefPtr browser, const CefString& title) { - if (m_IgnoreTitleChanges) return; - - NSWindow *window = [browser->GetHost()->GetWindowHandle() window]; - [window setTitle:[NSString stringWithUTF8String:title.ToString().c_str()]]; -} - -void AtomCefClient::ToggleDevTools(CefRefPtr browser) { - AtomWindowController *windowController = [[browser->GetHost()->GetWindowHandle() window] windowController]; - [windowController toggleDevTools]; -} - -void AtomCefClient::ShowDevTools(CefRefPtr browser) { - AtomWindowController *windowController = [[browser->GetHost()->GetWindowHandle() window] windowController]; - [windowController showDevTools]; -} - -void AtomCefClient::Show(CefRefPtr browser) { - AtomWindowController *windowController = [[browser->GetHost()->GetWindowHandle() window] windowController]; - [windowController.webView setHidden:NO]; -} - -void AtomCefClient::ToggleFullScreen(CefRefPtr browser) { - [[browser->GetHost()->GetWindowHandle() window] toggleFullScreen:nil]; -} - -void AtomCefClient::ShowSaveDialog(int replyId, CefRefPtr browser) { - CefRefPtr replyMessage = CefProcessMessage::Create("reply"); - CefRefPtr replyArguments = replyMessage->GetArgumentList(); - - NSSavePanel *panel = [NSSavePanel savePanel]; - if ([panel runModal] == NSFileHandlingPanelOKButton) { - CefString path = CefString([[[panel URL] path] UTF8String]); - replyArguments->SetSize(2); - replyArguments->SetString(1, path); - } - else { - replyArguments->SetSize(1); - } - replyArguments->SetList(0, CreateReplyDescriptor(replyId, 0)); - - browser->SendProcessMessage(PID_RENDERER, replyMessage); -} - -CefRefPtr AtomCefClient::CreateReplyDescriptor(int replyId, int callbackIndex) { - CefRefPtr descriptor = CefListValue::Create(); - descriptor->SetSize(2); - descriptor->SetInt(0, replyId); - descriptor->SetInt(1, callbackIndex); - return descriptor; -} - -void AtomCefClient::Exit(int status) { - exit(status); -} - -void AtomCefClient::Terminate() { - [NSApp terminate:NSApp]; -} - -void AtomCefClient::Log(const char *message) { - NSLog(@"%s", message); -} - -void AtomCefClient::GetVersion(int replyId, CefRefPtr browser) { - CefRefPtr replyMessage = CefProcessMessage::Create("reply"); - CefRefPtr replyArguments = replyMessage->GetArgumentList(); - NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; - - replyArguments->SetSize(2); - replyArguments->SetString(1, [version UTF8String]); - replyArguments->SetList(0, CreateReplyDescriptor(replyId, 0)); - browser->SendProcessMessage(PID_RENDERER, replyMessage); -} - -bool AtomCefClient::DoClose(CefRefPtr browser) { - m_IsClosed = true; - NSWindow *window = [browser->GetHost()->GetWindowHandle() window]; - [window performClose:window]; - return false; -} diff --git a/native/atom_cef_client_win.mm b/native/atom_cef_client_win.mm deleted file mode 100644 index 00bdefe97..000000000 --- a/native/atom_cef_client_win.mm +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#include "cefclient/client_handler.h" - -#include -#include -#include - -#include "include/cef_browser.h" -#include "include/cef_frame.h" -#include "cefclient/resource.h" - -void ClientHandler::OnAddressChange(CefRefPtr browser, - CefRefPtr frame, - const CefString& url) { - REQUIRE_UI_THREAD(); - - if (m_BrowserId == browser->GetIdentifier() && frame->IsMain()) { - // Set the edit window text - SetWindowText(m_EditHwnd, std::wstring(url).c_str()); - } -} - -void ClientHandler::OnTitleChange(CefRefPtr browser, - const CefString& title) { - REQUIRE_UI_THREAD(); - - // Set the frame window title bar - CefWindowHandle hwnd = browser->GetHost()->GetWindowHandle(); - if (m_BrowserId == browser->GetIdentifier()) { - // The frame window will be the parent of the browser window - hwnd = GetParent(hwnd); - } - SetWindowText(hwnd, std::wstring(title).c_str()); -} - -void ClientHandler::SendNotification(NotificationType type) { - UINT id; - switch (type) { - case NOTIFY_CONSOLE_MESSAGE: - id = ID_WARN_CONSOLEMESSAGE; - break; - case NOTIFY_DOWNLOAD_COMPLETE: - id = ID_WARN_DOWNLOADCOMPLETE; - break; - case NOTIFY_DOWNLOAD_ERROR: - id = ID_WARN_DOWNLOADERROR; - break; - default: - return; - } - PostMessage(m_MainHwnd, WM_COMMAND, id, 0); -} - -void ClientHandler::SetLoading(bool isLoading) { - ASSERT(m_EditHwnd != NULL && m_ReloadHwnd != NULL && m_StopHwnd != NULL); - EnableWindow(m_EditHwnd, TRUE); - EnableWindow(m_ReloadHwnd, !isLoading); - EnableWindow(m_StopHwnd, isLoading); -} - -void ClientHandler::SetNavState(bool canGoBack, bool canGoForward) { - ASSERT(m_BackHwnd != NULL && m_ForwardHwnd != NULL); - EnableWindow(m_BackHwnd, canGoBack); - EnableWindow(m_ForwardHwnd, canGoForward); -} - -void ClientHandler::CloseMainWindow() { - ::PostMessage(m_MainHwnd, WM_CLOSE, 0, 0); -} - -std::string ClientHandler::GetDownloadPath(const std::string& file_name) { - TCHAR szFolderPath[MAX_PATH]; - std::string path; - - // Save the file in the user's "My Documents" folder. - if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL | CSIDL_FLAG_CREATE, - NULL, 0, szFolderPath))) { - path = CefString(szFolderPath); - path += "\\" + file_name; - } - - return path; -} diff --git a/native/atom_cef_render_process_handler.h b/native/atom_cef_render_process_handler.h deleted file mode 100644 index 9bcb2da60..000000000 --- a/native/atom_cef_render_process_handler.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef ATOM_CEF_RENDER_PROCESS_HANDLER_H_ -#define ATOM_CEF_RENDER_PROCESS_HANDLER_H_ -#pragma once - -#include "include/cef_app.h" - -class AtomCefRenderProcessHandler : public CefRenderProcessHandler { - - virtual void OnWebKitInitialized() OVERRIDE; - virtual void OnContextCreated(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr context) OVERRIDE; - virtual void OnContextReleased(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr context) OVERRIDE; - virtual bool OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, - CefRefPtr message) OVERRIDE; - - void Reload(CefRefPtr browser); - bool CallMessageReceivedHandler(CefRefPtr context, CefRefPtr message); - void InjectExtensionsIntoV8Context(CefRefPtr context); - - IMPLEMENT_REFCOUNTING(AtomCefRenderProcessHandler); -}; - -#endif // ATOM_CEF_RENDER_PROCESS_HANDLER_H_ diff --git a/native/atom_cef_render_process_handler.mm b/native/atom_cef_render_process_handler.mm deleted file mode 100644 index 4f9a02d82..000000000 --- a/native/atom_cef_render_process_handler.mm +++ /dev/null @@ -1,83 +0,0 @@ -#import -#import "native/v8_extensions/atom.h" -#import "native/v8_extensions/native.h" -#import "native/message_translation.h" -#import "atom_cef_render_process_handler.h" - - -void AtomCefRenderProcessHandler::OnWebKitInitialized() { -} - -void AtomCefRenderProcessHandler::OnContextCreated(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr context) { - InjectExtensionsIntoV8Context(context); -} - -void AtomCefRenderProcessHandler::OnContextReleased(CefRefPtr browser, - CefRefPtr frame, - CefRefPtr context) { -} - -bool AtomCefRenderProcessHandler::OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, - CefRefPtr message) { - std::string name = message->GetName().ToString(); - - if (name == "reload") { - Reload(browser); - return true; - } - else { - return CallMessageReceivedHandler(browser->GetMainFrame()->GetV8Context(), message); - } -} - -void AtomCefRenderProcessHandler::Reload(CefRefPtr browser) { - CefRefPtr context = browser->GetMainFrame()->GetV8Context(); - CefRefPtr global = context->GetGlobal(); - - context->Enter(); - CefV8ValueList arguments; - - CefRefPtr reloadFunction = global->GetValue("reload"); - reloadFunction->ExecuteFunction(global, arguments); - if (!reloadFunction->IsFunction() || reloadFunction->HasException()) { - browser->ReloadIgnoreCache(); - } - context->Exit(); -} - -bool AtomCefRenderProcessHandler::CallMessageReceivedHandler(CefRefPtr context, CefRefPtr message) { - context->Enter(); - - CefRefPtr atom = context->GetGlobal()->GetValue("atom"); - CefRefPtr receiveFn = atom->GetValue("receiveMessageFromBrowserProcess"); - - CefV8ValueList arguments; - arguments.push_back(CefV8Value::CreateString(message->GetName().ToString())); - - CefRefPtr messageArguments = message->GetArgumentList(); - if (messageArguments->GetSize() > 0) { - CefRefPtr data = CefV8Value::CreateArray(messageArguments->GetSize()); - TranslateList(messageArguments, data); - arguments.push_back(data); - } - - receiveFn->ExecuteFunction(atom, arguments); - context->Exit(); - - if (receiveFn->HasException()) { - std::cout << "ERROR: Exception in JS receiving message " << message->GetName().ToString() << "\n"; - return false; - } - else { - return true; - } -} - -void AtomCefRenderProcessHandler::InjectExtensionsIntoV8Context(CefRefPtr context) { - // these objects are deleted when the context removes all references to them - (new v8_extensions::Atom())->CreateContextBinding(context); - (new v8_extensions::Native())->CreateContextBinding(context); -} diff --git a/native/atom_gtk.cpp b/native/atom_gtk.cpp deleted file mode 100644 index 118862711..000000000 --- a/native/atom_gtk.cpp +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#include -#include -#include -#include -#include "cefclient/cefclient.h" -#include "include/cef_app.h" -#include "include/cef_browser.h" -#include "include/cef_frame.h" -#include "include/cef_runnable.h" -#include "cefclient/binding_test.h" -#include "cefclient/client_handler.h" -#include "cefclient/dom_test.h" -#include "cefclient/scheme_test.h" -#include "cefclient/string_util.h" - -char szWorkingDir[512]; // The current working directory - -// The global ClientHandler reference. -extern CefRefPtr g_handler; - -void destroy(void) { - CefQuitMessageLoop(); -} - -void TerminationSignalHandler(int signatl) { - destroy(); -} - -// Callback for Debug > Get Source... menu item. -gboolean GetSourceActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunGetSourceTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Get Source... menu item. -gboolean GetTextActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunGetTextTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Request... menu item. -gboolean RequestActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunRequestTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Local Storage... menu item. -gboolean LocalStorageActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunLocalStorageTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > XMLHttpRequest... menu item. -gboolean XMLHttpRequestActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunXMLHTTPRequestTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Scheme Handler... menu item. -gboolean SchemeHandlerActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - scheme_test::RunTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > JavaScript Binding... menu item. -gboolean BindingActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - binding_test::RunTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Plugin Info... menu item. -gboolean PluginInfoActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunPluginInfoTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > DOM Access... menu item. -gboolean DOMAccessActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - dom_test::RunTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Popup Window... menu item. -gboolean PopupWindowActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunPopupTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Accelerated 2D Canvas... menu item. -gboolean Accelerated2DCanvasActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunAccelerated2DCanvasTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Accelerated Layers... menu item. -gboolean AcceleratedLayersActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunAcceleratedLayersTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > WebGL... menu item. -gboolean WebGLActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunWebGLTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > HTML5 Video... menu item. -gboolean HTML5VideoActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunHTML5VideoTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > HTML5 Drag & Drop... menu item. -gboolean HTML5DragDropActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) - RunDragDropTest(g_handler->GetBrowser()); - - return FALSE; // Don't stop this message. -} - - -// Callback for Debug > Zoom In... menu item. -gboolean ZoomInActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) { - CefRefPtr browser = g_handler->GetBrowser(); - browser->GetHost()->SetZoomLevel(browser->GetHost()->GetZoomLevel() + 0.5); - } - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Zoom Out... menu item. -gboolean ZoomOutActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) { - CefRefPtr browser = g_handler->GetBrowser(); - browser->GetHost()->SetZoomLevel(browser->GetHost()->GetZoomLevel() - 0.5); - } - - return FALSE; // Don't stop this message. -} - -// Callback for Debug > Zoom Reset... menu item. -gboolean ZoomResetActivated(GtkWidget* widget) { - if (g_handler.get() && g_handler->GetBrowserId()) { - CefRefPtr browser = g_handler->GetBrowser(); - browser->GetHost()->SetZoomLevel(0.0); - } - - return FALSE; // Don't stop this message. -} - -// Callback for when you click the back button. -void BackButtonClicked(GtkButton* button) { - if (g_handler.get() && g_handler->GetBrowserId()) - g_handler->GetBrowser()->GoBack(); -} - -// Callback for when you click the forward button. -void ForwardButtonClicked(GtkButton* button) { - if (g_handler.get() && g_handler->GetBrowserId()) - g_handler->GetBrowser()->GoForward(); -} - -// Callback for when you click the stop button. -void StopButtonClicked(GtkButton* button) { - if (g_handler.get() && g_handler->GetBrowserId()) - g_handler->GetBrowser()->StopLoad(); -} - -// Callback for when you click the reload button. -void ReloadButtonClicked(GtkButton* button) { - if (g_handler.get() && g_handler->GetBrowserId()) - g_handler->GetBrowser()->Reload(); -} - -// Callback for when you press enter in the URL box. -void URLEntryActivate(GtkEntry* entry) { - if (!g_handler.get() || !g_handler->GetBrowserId()) - return; - - const gchar* url = gtk_entry_get_text(entry); - g_handler->GetBrowser()->GetMainFrame()->LoadURL(std::string(url).c_str()); -} - -// GTK utility functions ---------------------------------------------- - -GtkWidget* AddMenuEntry(GtkWidget* menu_widget, const char* text, - GCallback callback) { - GtkWidget* entry = gtk_menu_item_new_with_label(text); - g_signal_connect(entry, "activate", callback, NULL); - gtk_menu_shell_append(GTK_MENU_SHELL(menu_widget), entry); - return entry; -} - -GtkWidget* CreateMenu(GtkWidget* menu_bar, const char* text) { - GtkWidget* menu_widget = gtk_menu_new(); - GtkWidget* menu_header = gtk_menu_item_new_with_label(text); - gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_header), menu_widget); - gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), menu_header); - return menu_widget; -} - -GtkWidget* CreateMenuBar() { - GtkWidget* menu_bar = gtk_menu_bar_new(); - GtkWidget* debug_menu = CreateMenu(menu_bar, "Tests"); - - AddMenuEntry(debug_menu, "Get Source", - G_CALLBACK(GetSourceActivated)); - AddMenuEntry(debug_menu, "Get Text", - G_CALLBACK(GetTextActivated)); - AddMenuEntry(debug_menu, "Request", - G_CALLBACK(RequestActivated)); - AddMenuEntry(debug_menu, "Local Storage", - G_CALLBACK(LocalStorageActivated)); - AddMenuEntry(debug_menu, "XMLHttpRequest", - G_CALLBACK(XMLHttpRequestActivated)); - AddMenuEntry(debug_menu, "Scheme Handler", - G_CALLBACK(SchemeHandlerActivated)); - AddMenuEntry(debug_menu, "JavaScript Binding", - G_CALLBACK(BindingActivated)); - AddMenuEntry(debug_menu, "Plugin Info", - G_CALLBACK(PluginInfoActivated)); - AddMenuEntry(debug_menu, "DOM Access", - G_CALLBACK(DOMAccessActivated)); - AddMenuEntry(debug_menu, "Popup Window", - G_CALLBACK(PopupWindowActivated)); - AddMenuEntry(debug_menu, "Accelerated 2D Canvas", - G_CALLBACK(Accelerated2DCanvasActivated)); - AddMenuEntry(debug_menu, "Accelerated Layers", - G_CALLBACK(AcceleratedLayersActivated)); - AddMenuEntry(debug_menu, "WebGL", - G_CALLBACK(WebGLActivated)); - AddMenuEntry(debug_menu, "HTML5 Video", - G_CALLBACK(HTML5VideoActivated)); - AddMenuEntry(debug_menu, "HTML5 Drag & Drop", - G_CALLBACK(HTML5DragDropActivated)); - AddMenuEntry(debug_menu, "Zoom In", - G_CALLBACK(ZoomInActivated)); - AddMenuEntry(debug_menu, "Zoom Out", - G_CALLBACK(ZoomOutActivated)); - AddMenuEntry(debug_menu, "Zoom Reset", - G_CALLBACK(ZoomResetActivated)); - return menu_bar; -} - -// WebViewDelegate::TakeFocus in the test webview delegate. -static gboolean HandleFocus(GtkWidget* widget, - GdkEventFocus* focus) { - if (g_handler.get() && g_handler->GetBrowserId()) { - // Give focus to the browser window. - g_handler->GetBrowser()->GetHost()->SetFocus(true); - } - - return TRUE; -} - -int main(int argc, char* argv[]) { - CefMainArgs main_args(argc, argv); - CefRefPtr app(new ClientApp); - - // Execute the secondary process, if any. - int exit_code = CefExecuteProcess(main_args, app.get()); - if (exit_code >= 0) - return exit_code; - - if (!getcwd(szWorkingDir, sizeof (szWorkingDir))) - return -1; - - GtkWidget* window; - - gtk_init(&argc, &argv); - - // Parse command line arguments. - AppInitCommandLine(argc, argv); - - CefSettings settings; - - // Populate the settings based on command line arguments. - AppGetSettings(settings, app); - - // Initialize CEF. - CefInitialize(main_args, settings, app.get()); - - // Register the scheme handler. - scheme_test::InitTest(); - - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size(GTK_WINDOW(window), 800, 600); - - g_signal_connect(window, "focus", G_CALLBACK(&HandleFocus), NULL); - - GtkWidget* vbox = gtk_vbox_new(FALSE, 0); - - GtkWidget* menu_bar = CreateMenuBar(); - - gtk_box_pack_start(GTK_BOX(vbox), menu_bar, FALSE, FALSE, 0); - - GtkWidget* toolbar = gtk_toolbar_new(); - // Turn off the labels on the toolbar buttons. - gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS); - - GtkToolItem* back = gtk_tool_button_new_from_stock(GTK_STOCK_GO_BACK); - g_signal_connect(back, "clicked", - G_CALLBACK(BackButtonClicked), NULL); - gtk_toolbar_insert(GTK_TOOLBAR(toolbar), back, -1 /* append */); - - GtkToolItem* forward = gtk_tool_button_new_from_stock(GTK_STOCK_GO_FORWARD); - g_signal_connect(forward, "clicked", - G_CALLBACK(ForwardButtonClicked), NULL); - gtk_toolbar_insert(GTK_TOOLBAR(toolbar), forward, -1 /* append */); - - GtkToolItem* reload = gtk_tool_button_new_from_stock(GTK_STOCK_REFRESH); - g_signal_connect(reload, "clicked", - G_CALLBACK(ReloadButtonClicked), NULL); - gtk_toolbar_insert(GTK_TOOLBAR(toolbar), reload, -1 /* append */); - - GtkToolItem* stop = gtk_tool_button_new_from_stock(GTK_STOCK_STOP); - g_signal_connect(stop, "clicked", - G_CALLBACK(StopButtonClicked), NULL); - gtk_toolbar_insert(GTK_TOOLBAR(toolbar), stop, -1 /* append */); - - GtkWidget* m_editWnd = gtk_entry_new(); - g_signal_connect(G_OBJECT(m_editWnd), "activate", - G_CALLBACK(URLEntryActivate), NULL); - - GtkToolItem* tool_item = gtk_tool_item_new(); - gtk_container_add(GTK_CONTAINER(tool_item), m_editWnd); - gtk_tool_item_set_expand(tool_item, TRUE); - gtk_toolbar_insert(GTK_TOOLBAR(toolbar), tool_item, -1); // append - - gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 0); - - g_signal_connect(G_OBJECT(window), "destroy", - G_CALLBACK(gtk_widget_destroyed), &window); - g_signal_connect(G_OBJECT(window), "destroy", - G_CALLBACK(destroy), NULL); - - // Create the handler. - g_handler = new ClientHandler(); - g_handler->SetMainHwnd(vbox); - g_handler->SetEditHwnd(m_editWnd); - g_handler->SetButtonHwnds(GTK_WIDGET(back), GTK_WIDGET(forward), - GTK_WIDGET(reload), GTK_WIDGET(stop)); - - // Create the browser view. - CefWindowInfo window_info; - CefBrowserSettings browserSettings; - - // Populate the settings based on command line arguments. - AppGetBrowserSettings(browserSettings); - - window_info.SetAsChild(vbox); - - CefBrowserHost::CreateBrowserSync( - window_info, g_handler.get(), - g_handler->GetStartupURL(), browserSettings); - - gtk_container_add(GTK_CONTAINER(window), vbox); - gtk_widget_show_all(GTK_WIDGET(window)); - - // Install an signal handler so we clean up after ourselves. - signal(SIGINT, TerminationSignalHandler); - signal(SIGTERM, TerminationSignalHandler); - - CefRunMessageLoop(); - - CefShutdown(); - - return 0; -} - -// Global functions - -std::string AppGetWorkingDirectory() { - return szWorkingDir; -} diff --git a/native/atom_main.h b/native/atom_main.h deleted file mode 100644 index a90926e32..000000000 --- a/native/atom_main.h +++ /dev/null @@ -1 +0,0 @@ -__attribute__((visibility("default"))) int AtomMain(int argc, char* argv[]); diff --git a/native/atom_main_mac.mm b/native/atom_main_mac.mm deleted file mode 100644 index 4de9cb605..000000000 --- a/native/atom_main_mac.mm +++ /dev/null @@ -1,139 +0,0 @@ -#import "atom_main.h" -#import "atom_cef_app.h" -#import "include/cef_application_mac.h" -#import "native/atom_application.h" -#include -#include -#include - -void sendPathToMainProcessAndExit(int fd, NSString *socketPath, NSDictionary *arguments); -void handleBeingOpenedAgain(int argc, char* argv[]); -void listenForPathToOpen(int fd, NSString *socketPath); -void activateOpenApp(); -BOOL isAppAlreadyOpen(); - -int AtomMain(int argc, char* argv[]) { - // Check if we're being run as a secondary process. - CefMainArgs main_args(argc, argv); - CefRefPtr app(new AtomCefApp); - int exitCode = CefExecuteProcess(main_args, app); - if (exitCode >= 0) - return exitCode; - - // We're the main process. - @autoreleasepool { - handleBeingOpenedAgain(argc, argv); - - NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; - AtomApplication *application = [AtomApplication applicationWithArguments:argv count:argc]; - - NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"]; - NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle bundleWithIdentifier:@"com.github.atom.framework"]]; - [mainNib instantiateWithOwner:application topLevelObjects:nil]; - - CefRunMessageLoop(); - CefShutdown(); - } - - return 0; -} - -void handleBeingOpenedAgain(int argc, char* argv[]) { - NSString *socketPath = [NSString stringWithFormat:@"/tmp/atom-%d.sock", getuid()]; - - int fd = socket(AF_UNIX, SOCK_DGRAM, 0); - fcntl(fd, F_SETFD, FD_CLOEXEC); - - if (isAppAlreadyOpen()) { - NSDictionary *arguments = [AtomApplication parseArguments:argv count:argc]; - sendPathToMainProcessAndExit(fd, socketPath, arguments); - } - else { - listenForPathToOpen(fd, socketPath); - } -} - -void sendPathToMainProcessAndExit(int fd, NSString *socketPath, NSDictionary *arguments) { - struct sockaddr_un send_addr; - send_addr.sun_family = AF_UNIX; - strcpy(send_addr.sun_path, [socketPath UTF8String]); - - NSString *path = [arguments objectForKey:@"path"]; - if (path) { - NSMutableString *packedString = [NSMutableString stringWithString:path]; - if ([arguments objectForKey:@"wait"]) { - [packedString appendFormat:@"\n%@", [arguments objectForKey:@"pid"]]; - } - - const char *buf = [packedString UTF8String]; - if (sendto(fd, buf, [packedString lengthOfBytesUsingEncoding:NSUTF8StringEncoding], 0, (sockaddr *)&send_addr, sizeof(send_addr)) < 0) { - perror("Error: Failed to sending path to main Atom process"); - exit(1); - } - } else { - activateOpenApp(); - } - exit(0); -} - -void listenForPathToOpen(int fd, NSString *socketPath) { - struct sockaddr_un addr; - addr.sun_family = AF_UNIX; - strcpy(addr.sun_path, [socketPath UTF8String]); - - unlink([socketPath UTF8String]); - if (bind(fd, (sockaddr*)&addr, sizeof(addr)) < 0) { - perror("ERROR: Binding to socket"); - } - else { - dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); - dispatch_async(queue, ^{ - char buf[MAXPATHLEN + 16]; // Add 16 to hold the pid string - struct sockaddr_un listen_addr; - listen_addr.sun_family = AF_UNIX; - strcpy(listen_addr.sun_path, [socketPath UTF8String]); - socklen_t listen_addr_length; - - while(true) { - memset(buf, 0, sizeof(buf)); - if (recvfrom(fd, &buf, sizeof(buf), 0, (sockaddr *)&listen_addr, &listen_addr_length) < 0) { - perror("ERROR: Receiving from socket"); - } - else { - NSArray *components = [[NSString stringWithUTF8String:buf] componentsSeparatedByString:@"\n"]; - NSString *path = [components objectAtIndex:0]; - NSNumber *pid = nil; - if (components.count > 1) pid = [NSNumber numberWithInt:[[components objectAtIndex:1] intValue]]; - dispatch_queue_t mainQueue = dispatch_get_main_queue(); - dispatch_async(mainQueue, ^{ - [[AtomApplication sharedApplication] open:path pidToKillWhenWindowCloses:pid]; - [NSApp activateIgnoringOtherApps:YES]; - }); - } - } - }); - } -} - -void activateOpenApp() { - for (NSRunningApplication *app in [[NSWorkspace sharedWorkspace] runningApplications]) { - BOOL hasSameBundleId = [app.bundleIdentifier isEqualToString:[[NSBundle mainBundle] bundleIdentifier]]; - BOOL hasSameProcessesId = app.processIdentifier == [[NSProcessInfo processInfo] processIdentifier]; - if (hasSameBundleId && !hasSameProcessesId) { - [app activateWithOptions:NSApplicationActivateIgnoringOtherApps]; - return; - } - } -} - -BOOL isAppAlreadyOpen() { - for (NSRunningApplication *app in [[NSWorkspace sharedWorkspace] runningApplications]) { - BOOL hasSameBundleId = [app.bundleIdentifier isEqualToString:[[NSBundle mainBundle] bundleIdentifier]]; - BOOL hasSameProcessesId = app.processIdentifier == [[NSProcessInfo processInfo] processIdentifier]; - if (hasSameBundleId && !hasSameProcessesId) { - return true; - } - } - - return false; -} diff --git a/native/atom_win.cpp b/native/atom_win.cpp deleted file mode 100644 index a380d9ce2..000000000 --- a/native/atom_win.cpp +++ /dev/null @@ -1,546 +0,0 @@ -// Copyright (c) 2010 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#include "cefclient/cefclient.h" -#include -#include -#include -#include -#include -#include -#include "include/cef_app.h" -#include "include/cef_browser.h" -#include "include/cef_frame.h" -#include "include/cef_runnable.h" -#include "cefclient/binding_test.h" -#include "cefclient/client_handler.h" -#include "cefclient/dom_test.h" -#include "cefclient/resource.h" -#include "cefclient/scheme_test.h" -#include "cefclient/string_util.h" - -#define MAX_LOADSTRING 100 -#define MAX_URL_LENGTH 255 -#define BUTTON_WIDTH 72 -#define URLBAR_HEIGHT 24 - -// Global Variables: -HINSTANCE hInst; // current instance -TCHAR szTitle[MAX_LOADSTRING]; // The title bar text -TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name -char szWorkingDir[MAX_PATH]; // The current working directory - -// Forward declarations of functions included in this code module: -ATOM MyRegisterClass(HINSTANCE hInstance); -BOOL InitInstance(HINSTANCE, int); -LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); -INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); - -// The global ClientHandler reference. -extern CefRefPtr g_handler; - -#if defined(OS_WIN) -// Add Common Controls to the application manifest because it's required to -// support the default tooltip implementation. -#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") // NOLINT(whitespace/line_length) -#endif - -// Program entry point function. -int APIENTRY wWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) { - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - - CefMainArgs main_args(hInstance); - CefRefPtr app(new ClientApp); - - // Execute the secondary process, if any. - int exit_code = CefExecuteProcess(main_args, app.get()); - if (exit_code >= 0) - return exit_code; - - // Retrieve the current working directory. - if (_getcwd(szWorkingDir, MAX_PATH) == NULL) - szWorkingDir[0] = 0; - - // Parse command line arguments. The passed in values are ignored on Windows. - AppInitCommandLine(0, NULL); - - CefSettings settings; - - // Populate the settings based on command line arguments. - AppGetSettings(settings, app); - - // Initialize CEF. - CefInitialize(main_args, settings, app.get()); - - // Register the scheme handler. - scheme_test::InitTest(); - - HACCEL hAccelTable; - - // Initialize global strings - LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); - LoadString(hInstance, IDC_CEFCLIENT, szWindowClass, MAX_LOADSTRING); - MyRegisterClass(hInstance); - - // Perform application initialization - if (!InitInstance (hInstance, nCmdShow)) - return FALSE; - - hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_CEFCLIENT)); - - int result = 0; - - if (!settings.multi_threaded_message_loop) { - // Run the CEF message loop. This function will block until the application - // recieves a WM_QUIT message. - CefRunMessageLoop(); - } else { - MSG msg; - - // Run the application message loop. - while (GetMessage(&msg, NULL, 0, 0)) { - if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { - TranslateMessage(&msg); - DispatchMessage(&msg); - } - } - - result = static_cast(msg.wParam); - } - - // Shut down CEF. - CefShutdown(); - - return result; -} - -// -// FUNCTION: MyRegisterClass() -// -// PURPOSE: Registers the window class. -// -// COMMENTS: -// -// This function and its usage are only necessary if you want this code -// to be compatible with Win32 systems prior to the 'RegisterClassEx' -// function that was added to Windows 95. It is important to call this -// function so that the application will get 'well formed' small icons -// associated with it. -// -ATOM MyRegisterClass(HINSTANCE hInstance) { - WNDCLASSEX wcex; - - wcex.cbSize = sizeof(WNDCLASSEX); - - wcex.style = CS_HREDRAW | CS_VREDRAW; - wcex.lpfnWndProc = WndProc; - wcex.cbClsExtra = 0; - wcex.cbWndExtra = 0; - wcex.hInstance = hInstance; - wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_CEFCLIENT)); - wcex.hCursor = LoadCursor(NULL, IDC_ARROW); - wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); - wcex.lpszMenuName = MAKEINTRESOURCE(IDC_CEFCLIENT); - wcex.lpszClassName = szWindowClass; - wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); - - return RegisterClassEx(&wcex); -} - -// -// FUNCTION: InitInstance(HINSTANCE, int) -// -// PURPOSE: Saves instance handle and creates main window -// -// COMMENTS: -// -// In this function, we save the instance handle in a global variable and -// create and display the main program window. -// -BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { - HWND hWnd; - - hInst = hInstance; // Store instance handle in our global variable - - hWnd = CreateWindow(szWindowClass, szTitle, - WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN, CW_USEDEFAULT, 0, - CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); - - if (!hWnd) - return FALSE; - - ShowWindow(hWnd, nCmdShow); - UpdateWindow(hWnd); - - return TRUE; -} - -// Change the zoom factor on the UI thread. -static void ModifyZoom(CefRefPtr browser, double delta) { - if (CefCurrentlyOn(TID_UI)) { - browser->GetHost()->SetZoomLevel( - browser->GetHost()->GetZoomLevel() + delta); - } else { - CefPostTask(TID_UI, NewCefRunnableFunction(ModifyZoom, browser, delta)); - } -} - -// -// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM) -// -// PURPOSE: Processes messages for the main window. -// -LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, - LPARAM lParam) { - static HWND backWnd = NULL, forwardWnd = NULL, reloadWnd = NULL, - stopWnd = NULL, editWnd = NULL; - static WNDPROC editWndOldProc = NULL; - - // Static members used for the find dialog. - static FINDREPLACE fr; - static WCHAR szFindWhat[80] = {0}; - static WCHAR szLastFindWhat[80] = {0}; - static bool findNext = false; - static bool lastMatchCase = false; - - int wmId, wmEvent; - PAINTSTRUCT ps; - HDC hdc; - - if (hWnd == editWnd) { - // Callback for the edit window - switch (message) { - case WM_CHAR: - if (wParam == VK_RETURN && g_handler.get()) { - // When the user hits the enter key load the URL - CefRefPtr browser = g_handler->GetBrowser(); - wchar_t strPtr[MAX_URL_LENGTH+1] = {0}; - *((LPWORD)strPtr) = MAX_URL_LENGTH; - LRESULT strLen = SendMessage(hWnd, EM_GETLINE, 0, (LPARAM)strPtr); - if (strLen > 0) { - strPtr[strLen] = 0; - browser->GetMainFrame()->LoadURL(strPtr); - } - - return 0; - } - } - - return (LRESULT)CallWindowProc(editWndOldProc, hWnd, message, wParam, - lParam); - } else { - // Callback for the main window - switch (message) { - case WM_CREATE: { - // Create the single static handler class instance - g_handler = new ClientHandler(); - g_handler->SetMainHwnd(hWnd); - - // Create the child windows used for navigation - RECT rect; - int x = 0; - - GetClientRect(hWnd, &rect); - - backWnd = CreateWindow(L"BUTTON", L"Back", - WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON - | WS_DISABLED, x, 0, BUTTON_WIDTH, URLBAR_HEIGHT, - hWnd, (HMENU) IDC_NAV_BACK, hInst, 0); - x += BUTTON_WIDTH; - - forwardWnd = CreateWindow(L"BUTTON", L"Forward", - WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON - | WS_DISABLED, x, 0, BUTTON_WIDTH, - URLBAR_HEIGHT, hWnd, (HMENU) IDC_NAV_FORWARD, - hInst, 0); - x += BUTTON_WIDTH; - - reloadWnd = CreateWindow(L"BUTTON", L"Reload", - WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON - | WS_DISABLED, x, 0, BUTTON_WIDTH, - URLBAR_HEIGHT, hWnd, (HMENU) IDC_NAV_RELOAD, - hInst, 0); - x += BUTTON_WIDTH; - - stopWnd = CreateWindow(L"BUTTON", L"Stop", - WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON - | WS_DISABLED, x, 0, BUTTON_WIDTH, URLBAR_HEIGHT, - hWnd, (HMENU) IDC_NAV_STOP, hInst, 0); - x += BUTTON_WIDTH; - - editWnd = CreateWindow(L"EDIT", 0, - WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | - ES_AUTOVSCROLL | ES_AUTOHSCROLL| WS_DISABLED, - x, 0, rect.right - BUTTON_WIDTH * 4, - URLBAR_HEIGHT, hWnd, 0, hInst, 0); - - // Assign the edit window's WNDPROC to this function so that we can - // capture the enter key - editWndOldProc = - reinterpret_cast(GetWindowLongPtr(editWnd, GWLP_WNDPROC)); - SetWindowLongPtr(editWnd, GWLP_WNDPROC, - reinterpret_cast(WndProc)); - g_handler->SetEditHwnd(editWnd); - g_handler->SetButtonHwnds(backWnd, forwardWnd, reloadWnd, stopWnd); - - rect.top += URLBAR_HEIGHT; - - CefWindowInfo info; - CefBrowserSettings settings; - - // Populate the settings based on command line arguments. - AppGetBrowserSettings(settings); - - // Initialize window info to the defaults for a child window - info.SetAsChild(hWnd, rect); - - // Creat the new child browser window - CefBrowserHost::CreateBrowser(info, g_handler.get(), - g_handler->GetStartupURL(), settings); - - return 0; - } - - case WM_COMMAND: { - CefRefPtr browser; - if (g_handler.get()) - browser = g_handler->GetBrowser(); - - wmId = LOWORD(wParam); - wmEvent = HIWORD(wParam); - // Parse the menu selections: - switch (wmId) { - case IDM_ABOUT: - DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); - return 0; - case IDM_EXIT: - DestroyWindow(hWnd); - return 0; - case ID_WARN_CONSOLEMESSAGE: - if (g_handler.get()) { - std::wstringstream ss; - ss << L"Console messages will be written to " - << std::wstring(CefString(g_handler->GetLogFile())); - MessageBox(hWnd, ss.str().c_str(), L"Console Messages", - MB_OK | MB_ICONINFORMATION); - } - return 0; - case ID_WARN_DOWNLOADCOMPLETE: - case ID_WARN_DOWNLOADERROR: - if (g_handler.get()) { - std::wstringstream ss; - ss << L"File \"" << - std::wstring(CefString(g_handler->GetLastDownloadFile())) << - L"\" "; - - if (wmId == ID_WARN_DOWNLOADCOMPLETE) - ss << L"downloaded successfully."; - else - ss << L"failed to download."; - - MessageBox(hWnd, ss.str().c_str(), L"File Download", - MB_OK | MB_ICONINFORMATION); - } - return 0; - case IDC_NAV_BACK: // Back button - if (browser.get()) - browser->GoBack(); - return 0; - case IDC_NAV_FORWARD: // Forward button - if (browser.get()) - browser->GoForward(); - return 0; - case IDC_NAV_RELOAD: // Reload button - if (browser.get()) - browser->Reload(); - return 0; - case IDC_NAV_STOP: // Stop button - if (browser.get()) - browser->StopLoad(); - return 0; - case ID_TESTS_GETSOURCE: // Test the GetSource function - if (browser.get()) - RunGetSourceTest(browser); - return 0; - case ID_TESTS_GETTEXT: // Test the GetText function - if (browser.get()) - RunGetTextTest(browser); - return 0; - case ID_TESTS_POPUP: // Test a popup window - if (browser.get()) - RunPopupTest(browser); - return 0; - case ID_TESTS_REQUEST: // Test a request - if (browser.get()) - RunRequestTest(browser); - return 0; - case ID_TESTS_SCHEME_HANDLER: // Test the scheme handler - if (browser.get()) - scheme_test::RunTest(browser); - return 0; - case ID_TESTS_BINDING: // Test JavaScript binding - if (browser.get()) - binding_test::RunTest(browser); - return 0; - case ID_TESTS_DIALOGS: // Test JavaScript dialogs - if (browser.get()) - RunDialogTest(browser); - return 0; - case ID_TESTS_PLUGIN_INFO: // Test plugin info - if (browser.get()) - RunPluginInfoTest(browser); - return 0; - case ID_TESTS_DOM_ACCESS: // Test DOM access - if (browser.get()) - dom_test::RunTest(browser); - return 0; - case ID_TESTS_LOCALSTORAGE: // Test localStorage - if (browser.get()) - RunLocalStorageTest(browser); - return 0; - case ID_TESTS_ACCELERATED2DCANVAS: // Test accelerated 2d canvas - if (browser.get()) - RunAccelerated2DCanvasTest(browser); - return 0; - case ID_TESTS_ACCELERATEDLAYERS: // Test accelerated layers - if (browser.get()) - RunAcceleratedLayersTest(browser); - return 0; - case ID_TESTS_WEBGL: // Test WebGL - if (browser.get()) - RunWebGLTest(browser); - return 0; - case ID_TESTS_HTML5VIDEO: // Test HTML5 video - if (browser.get()) - RunHTML5VideoTest(browser); - return 0; - case ID_TESTS_XMLHTTPREQUEST: // Test XMLHttpRequest - if (browser.get()) - RunXMLHTTPRequestTest(browser); - return 0; - case ID_TESTS_DRAGDROP: // Test drag & drop - if (browser.get()) - RunDragDropTest(browser); - return 0; - case ID_TESTS_GEOLOCATION: // Test geolocation - if (browser.get()) - RunGeolocationTest(browser); - return 0; - case ID_TESTS_ZOOM_IN: - if (browser.get()) - ModifyZoom(browser, 0.5); - return 0; - case ID_TESTS_ZOOM_OUT: - if (browser.get()) - ModifyZoom(browser, -0.5); - return 0; - case ID_TESTS_ZOOM_RESET: - if (browser.get()) - browser->GetHost()->SetZoomLevel(0.0); - return 0; - } - break; - } - - case WM_PAINT: - hdc = BeginPaint(hWnd, &ps); - EndPaint(hWnd, &ps); - return 0; - - case WM_SETFOCUS: - if (g_handler.get() && g_handler->GetBrowser()) { - // Pass focus to the browser window - CefWindowHandle hwnd = - g_handler->GetBrowser()->GetHost()->GetWindowHandle(); - if (hwnd) - PostMessage(hwnd, WM_SETFOCUS, wParam, NULL); - } - return 0; - - case WM_SIZE: - // Minimizing resizes the window to 0x0 which causes our layout to go all - // screwy, so we just ignore it. - if (wParam != SIZE_MINIMIZED && g_handler.get() && - g_handler->GetBrowser()) { - CefWindowHandle hwnd = - g_handler->GetBrowser()->GetHost()->GetWindowHandle(); - if (hwnd) { - // Resize the browser window and address bar to match the new frame - // window size - RECT rect; - GetClientRect(hWnd, &rect); - rect.top += URLBAR_HEIGHT; - - int urloffset = rect.left + BUTTON_WIDTH * 4; - - HDWP hdwp = BeginDeferWindowPos(1); - hdwp = DeferWindowPos(hdwp, editWnd, NULL, urloffset, - 0, rect.right - urloffset, URLBAR_HEIGHT, SWP_NOZORDER); - hdwp = DeferWindowPos(hdwp, hwnd, NULL, - rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, - SWP_NOZORDER); - EndDeferWindowPos(hdwp); - } - } - break; - - case WM_ERASEBKGND: - if (g_handler.get() && g_handler->GetBrowser()) { - CefWindowHandle hwnd = - g_handler->GetBrowser()->GetHost()->GetWindowHandle(); - if (hwnd) { - // Dont erase the background if the browser window has been loaded - // (this avoids flashing) - return 0; - } - } - break; - - case WM_CLOSE: - if (g_handler.get()) { - CefRefPtr browser = g_handler->GetBrowser(); - if (browser.get()) { - // Let the browser window know we are about to destroy it. - browser->GetHost()->ParentWindowWillClose(); - } - } - break; - - case WM_DESTROY: - // The frame window has exited - PostQuitMessage(0); - return 0; - } - - return DefWindowProc(hWnd, message, wParam, lParam); - } -} - -// Message handler for about box. -INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { - UNREFERENCED_PARAMETER(lParam); - switch (message) { - case WM_INITDIALOG: - return (INT_PTR)TRUE; - - case WM_COMMAND: - if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { - EndDialog(hDlg, LOWORD(wParam)); - return (INT_PTR)TRUE; - } - break; - } - return (INT_PTR)FALSE; -} - - -// Global functions - -std::string AppGetWorkingDirectory() { - return szWorkingDir; -} diff --git a/native/atom_window_controller.h b/native/atom_window_controller.h deleted file mode 100644 index 4f72a4682..000000000 --- a/native/atom_window_controller.h +++ /dev/null @@ -1,44 +0,0 @@ -#include "include/cef_app.h" - -class AtomCefClient; - -@interface AtomWindowController : NSWindowController { - NSSplitView *_splitView; - NSView *_devToolsView; - NSView *_webView; - NSButton *_devButton; - NSString *_bootstrapScript; - NSString *_resourcePath; - NSString *_pathToOpen; - NSNumber *_pidToKillOnClose; - - CefRefPtr _cefClient; - CefRefPtr _cefDevToolsClient; - CefRefPtr _atomContext; - - BOOL _runningSpecs; - BOOL _exitWhenDone; - BOOL _isConfig; -} - -@property (nonatomic, retain) IBOutlet NSSplitView *splitView; -@property (nonatomic, retain) IBOutlet NSView *webView; -@property (nonatomic, retain) IBOutlet NSView *devToolsView; -@property (nonatomic, retain) NSString *pathToOpen; -@property (nonatomic) BOOL isConfig; - -- (id)initWithPath:(NSString *)path; -- (id)initDevWithPath:(NSString *)path; -- (id)initInBackground; -- (id)initConfig; -- (id)initSpecsThenExit:(BOOL)exitWhenDone; -- (id)initBenchmarksThenExit:(BOOL)exitWhenDone; -- (void)setPidToKillOnClose:(NSNumber *)pid; -- (BOOL)isDevMode; -- (BOOL)isDevFlagSpecified; - -- (void)toggleDevTools; -- (void)showDevTools; -- (void)openPath:(NSString*)path; - -@end diff --git a/native/atom_window_controller.mm b/native/atom_window_controller.mm deleted file mode 100644 index 3c0b7918f..000000000 --- a/native/atom_window_controller.mm +++ /dev/null @@ -1,351 +0,0 @@ -#import "include/cef_application_mac.h" -#import "include/cef_client.h" -#import "native/atom_cef_client.h" -#import "native/atom_window_controller.h" -#import "native/atom_application.h" -#import - -@implementation AtomWindowController - -@synthesize splitView=_splitView; -@synthesize webView=_webView; -@synthesize devToolsView=_devToolsView; -@synthesize pathToOpen=_pathToOpen; -@synthesize isConfig=_isConfig; - -- (void)dealloc { - [_splitView release]; - [_devToolsView release]; - [_webView release]; - [_devButton release]; - [_bootstrapScript release]; - [_resourcePath release]; - [_pathToOpen release]; - - _cefClient = NULL; - _cefDevToolsClient = NULL; - - [super dealloc]; -} - -- (id)initWithBootstrapScript:(NSString *)bootstrapScript background:(BOOL)background useBundleResourcePath:(BOOL)useBundleResourcePath { - self = [super initWithWindowNibName:@"AtomWindow"]; - _bootstrapScript = [bootstrapScript retain]; - - AtomApplication *atomApplication = (AtomApplication *)[AtomApplication sharedApplication]; - - if (!useBundleResourcePath) { - _resourcePath = [[atomApplication.arguments objectForKey:@"resource-path"] stringByStandardizingPath]; - if (!_resourcePath) { - NSString *defaultRepositoryPath = [@"~/github/atom" stringByStandardizingPath]; - if ([defaultRepositoryPath characterAtIndex:0] == '/') { - BOOL isDir = false; - BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:defaultRepositoryPath isDirectory:&isDir]; - if (isDir && exists) { - _resourcePath = defaultRepositoryPath; - } - else { - NSLog(@"Warning: No resource path specified and no directory exists at ~/github/atom"); - } - } - } - } - if (!_resourcePath) { - _resourcePath = [[NSBundle bundleForClass:self.class] resourcePath]; - } - - if ([self isDevMode]) { - [self displayDevIcon]; - } - - _resourcePath = [_resourcePath stringByStandardizingPath]; - [_resourcePath retain]; - - NSMutableArray *paths = [NSMutableArray arrayWithObjects: - @"src/stdlib", - @"src/app", - @"src/packages", - @"src", - @"vendor", - @"static", - @"node_modules", - nil]; - NSMutableArray *resourcePaths = [[NSMutableArray alloc] init]; - - if (_runningSpecs) { - [paths insertObject:@"benchmark" atIndex:0]; - [paths insertObject:@"spec" atIndex:0]; - NSString *fixturePackagesDirectory = [NSString stringWithFormat:@"%@/spec/fixtures/packages", _resourcePath]; - [resourcePaths addObject:fixturePackagesDirectory]; - } - - NSString *userPackagesDirectory = [@"~/.atom/packages" stringByStandardizingPath]; - [resourcePaths addObject:userPackagesDirectory]; - - for (int i = 0; i < paths.count; i++) { - NSString *fullPath = [NSString stringWithFormat:@"%@/%@", _resourcePath, [paths objectAtIndex:i]]; - [resourcePaths addObject:fullPath]; - } - [resourcePaths addObject:_resourcePath]; - - NSString *nodePath = [resourcePaths componentsJoinedByString:@":"]; - setenv("NODE_PATH", [nodePath UTF8String], TRUE); - - if (!background) { - [self setShouldCascadeWindows:NO]; - [self setWindowFrameAutosaveName:@"AtomWindow"]; - NSColor *background = [NSColor colorWithDeviceRed:(51.0/255.0) green:(51.0/255.0f) blue:(51.0/255.0f) alpha:1.0]; - [self.window setBackgroundColor:background]; - if (self.isConfig) { - NSRect frame = self.window.frame; - frame.size.width = 800; - frame.size.height = 600; - [self.window setFrame:frame display: YES]; - } - [self showWindow:self]; - } - - return self; -} - -- (id)initWithPath:(NSString *)path { - _pathToOpen = [path retain]; - return [self initWithBootstrapScript:@"window-bootstrap" background:NO useBundleResourcePath:![self isDevFlagSpecified]]; -} - -- (id)initDevWithPath:(NSString *)path { - _pathToOpen = [path retain]; - return [self initWithBootstrapScript:@"window-bootstrap" background:NO useBundleResourcePath:false]; -} - -- (id)initInBackground { - [self initWithBootstrapScript:@"window-bootstrap" background:YES useBundleResourcePath:![self isDevFlagSpecified]]; - [self.window setFrame:NSMakeRect(0, 0, 0, 0) display:NO]; - [self.window setExcludedFromWindowsMenu:YES]; - [self.window setCollectionBehavior:NSWindowCollectionBehaviorStationary]; - return self; -} - -- (id)initSpecsThenExit:(BOOL)exitWhenDone { - _runningSpecs = true; - _exitWhenDone = exitWhenDone; - return [self initWithBootstrapScript:@"spec-bootstrap" background:NO useBundleResourcePath:NO]; -} - -- (id)initBenchmarksThenExit:(BOOL)exitWhenDone { - _runningSpecs = true; - _exitWhenDone = exitWhenDone; - return [self initWithBootstrapScript:@"benchmark-bootstrap" background:NO useBundleResourcePath:NO]; -} - -- (id)initConfig { - _isConfig = true; - return [self initWithBootstrapScript:@"config-bootstrap" background:NO useBundleResourcePath:![self isDevFlagSpecified]]; -} - -- (void)addBrowserToView:(NSView *)view url:(const char *)url cefHandler:(CefRefPtr)cefClient { - CefBrowserSettings settings; - [self populateBrowserSettings:settings]; - CefWindowInfo window_info; - window_info.SetAsChild(view, 0, 0, view.bounds.size.width, view.bounds.size.height); - CefBrowserHost::CreateBrowser(window_info, cefClient.get(), url, settings); -} - -- (NSString *)encodeUrlParam:(NSString *)param { - param = [param stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; - param = [param stringByReplacingOccurrencesOfString:@"&" withString:@"%26"]; - return param; -} - -- (void)windowDidLoad { - [self.window setDelegate:self]; - [self performSelector:@selector(attachWebView) withObject:nil afterDelay:0]; -} - -// If this is run directly in windowDidLoad, the web view doesn't -// have the correct initial size based on the frame's last stored size. -// HACK: I hate this and want to place this code directly in windowDidLoad -- (void)attachWebView { - NSMutableString *urlString = [NSMutableString string]; - - NSURL *indexUrl = [[NSURL alloc] initFileURLWithPath:[_resourcePath stringByAppendingPathComponent:@"static/index.html"]]; - [urlString appendString:[indexUrl absoluteString]]; - [urlString appendFormat:@"?bootstrapScript=%@", [self encodeUrlParam:_bootstrapScript]]; - [urlString appendFormat:@"&resourcePath=%@", [self encodeUrlParam:_resourcePath]]; - if ([self isDevMode]) - [urlString appendFormat:@"&devMode=1"]; - if (_exitWhenDone) - [urlString appendString:@"&exitWhenDone=1"]; - if (_pathToOpen) - [urlString appendFormat:@"&pathToOpen=%@", [self encodeUrlParam:_pathToOpen]]; - - _cefClient = new AtomCefClient(); - [self.webView setHidden:YES]; - [self addBrowserToView:self.webView url:[urlString UTF8String] cefHandler:_cefClient]; -} - -- (BOOL)isBrowserUsable { - return _cefClient && !_cefClient->IsClosed() && _cefClient->GetBrowser(); -} - -- (void)toggleDevTools { - if (_devToolsView) { - [self hideDevTools]; - } - else { - [self showDevTools]; - } -} - -- (void)showDevTools { - if (_devToolsView) return; - if (![self isBrowserUsable]) return; - - NSRect webViewFrame = _webView.frame; - NSRect devToolsViewFrame = _webView.frame; - devToolsViewFrame.size.height = NSHeight(webViewFrame) / 3; - webViewFrame.size.height = NSHeight(webViewFrame) - NSHeight(devToolsViewFrame); - [_webView setFrame:webViewFrame]; - _devToolsView = [[NSView alloc] initWithFrame:devToolsViewFrame]; - - [_splitView addSubview:_devToolsView]; - [_splitView adjustSubviews]; - - _cefDevToolsClient = new AtomCefClient(true, true); - std::string devtools_url = _cefClient->GetBrowser()->GetHost()->GetDevToolsURL(true); - [self addBrowserToView:_devToolsView url:devtools_url.c_str() cefHandler:_cefDevToolsClient]; -} - -- (void)hideDevTools { - [_devToolsView removeFromSuperview]; - [_splitView adjustSubviews]; - [_devToolsView release]; - _devToolsView = nil; - _cefDevToolsClient = NULL; - if ([self isBrowserUsable]) { - _cefClient->GetBrowser()->GetHost()->SetFocus(true); - } -} - -- (void)openPath:(NSString*)path { - if (![self isBrowserUsable]) return; - - CefRefPtr openMessage = CefProcessMessage::Create("openPath"); - CefRefPtr openArguments = openMessage->GetArgumentList(); - openArguments->SetSize(1); - openArguments->SetString(0, [path UTF8String]); - _cefClient->GetBrowser()->SendProcessMessage(PID_RENDERER, openMessage); -} - -- (void)setPidToKillOnClose:(NSNumber *)pid { - _pidToKillOnClose = [pid retain]; -} - -# pragma mark NSWindowDelegate - - -- (void)windowDidResignMain:(NSNotification *)notification { - if (!_runningSpecs) { - [self.window makeFirstResponder:nil]; - } -} - -- (void)windowDidBecomeMain:(NSNotification *)notification { - if ([self isBrowserUsable]) { - _cefClient->GetBrowser()->GetHost()->SetFocus(true); - } -} - -- (BOOL)windowShouldClose:(NSNotification *)notification { - if ([self isBrowserUsable]) { - _cefClient->GetBrowser()->GetHost()->CloseBrowser(false); - return NO; - } - - if (_pidToKillOnClose) kill([_pidToKillOnClose intValue], SIGQUIT); - - [self autorelease]; - return YES; -} - -- (void)windowWillEnterFullScreen:(NSNotification *)notification { - if (_devButton) - [_devButton setHidden:YES]; -} - -- (void)windowDidExitFullScreen:(NSNotification *)notification { - if (_devButton) - [_devButton setHidden:NO]; -} - -- (BOOL)isDevMode { - NSString *bundleResourcePath = [[NSBundle bundleForClass:self.class] resourcePath]; - return ![_resourcePath isEqualToString:bundleResourcePath]; -} - -- (BOOL)isDevFlagSpecified { - AtomApplication *atomApplication = (AtomApplication *)[AtomApplication sharedApplication]; - return [atomApplication.arguments objectForKey:@"dev"] != nil; -} - -- (void)displayDevIcon { - NSView *themeFrame = [self.window.contentView superview]; - NSButton *fullScreenButton = nil; - for (NSView *view in themeFrame.subviews) { - if (![view isKindOfClass:NSButton.class]) continue; - NSButton *button = (NSButton *)view; - if (button.action != @selector(toggleFullScreen:)) continue; - fullScreenButton = button; - break; - } - - _devButton = [[NSButton alloc] init]; - [_devButton setTitle:@"\xF0\x9F\x92\x80"]; - _devButton.autoresizingMask = NSViewMinXMargin | NSViewMinYMargin; - _devButton.buttonType = NSMomentaryChangeButton; - _devButton.bordered = NO; - [_devButton sizeToFit]; - _devButton.frame = NSMakeRect(fullScreenButton.frame.origin.x - _devButton.frame.size.width - 5, fullScreenButton.frame.origin.y, _devButton.frame.size.width, _devButton.frame.size.height); - - [[self.window.contentView superview] addSubview:_devButton]; -} - -- (void)populateBrowserSettings:(CefBrowserSettings &)settings { - CefString(&settings.default_encoding) = "UTF-8"; - settings.remote_fonts = STATE_ENABLED; - settings.javascript = STATE_ENABLED; - settings.javascript_open_windows = STATE_ENABLED; - settings.javascript_close_windows = STATE_ENABLED; - settings.javascript_access_clipboard = STATE_ENABLED; - settings.javascript_dom_paste = STATE_DISABLED; - settings.caret_browsing = STATE_DISABLED; - settings.java = STATE_DISABLED; - settings.plugins = STATE_DISABLED; - settings.universal_access_from_file_urls = STATE_DISABLED; - settings.file_access_from_file_urls = STATE_DISABLED; - settings.web_security = STATE_DISABLED; - settings.image_loading = STATE_ENABLED; - settings.image_shrink_standalone_to_fit = STATE_DISABLED; - settings.text_area_resize = STATE_ENABLED; - settings.page_cache = STATE_DISABLED; - settings.tab_to_links = STATE_DISABLED; - settings.author_and_user_styles = STATE_ENABLED; - settings.local_storage = STATE_ENABLED; - settings.databases = STATE_ENABLED; - settings.application_cache = STATE_ENABLED; - settings.webgl = STATE_ENABLED; - settings.accelerated_compositing = STATE_ENABLED; - settings.developer_tools = STATE_ENABLED; -} - -@end - -@interface GraySplitView : NSSplitView -- (NSColor*)dividerColor; -@end - -@implementation GraySplitView -- (NSColor*)dividerColor { - return [NSColor darkGrayColor]; -} -@end diff --git a/native/frameworks/Quincy.framework/Headers b/native/frameworks/Quincy.framework/Headers deleted file mode 120000 index a177d2a6b..000000000 --- a/native/frameworks/Quincy.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/native/frameworks/Quincy.framework/Quincy b/native/frameworks/Quincy.framework/Quincy deleted file mode 120000 index 9bbfc5b61..000000000 --- a/native/frameworks/Quincy.framework/Quincy +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Quincy \ No newline at end of file diff --git a/native/frameworks/Quincy.framework/Resources b/native/frameworks/Quincy.framework/Resources deleted file mode 120000 index 953ee36f3..000000000 --- a/native/frameworks/Quincy.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/native/frameworks/Quincy.framework/Versions/A/Headers/BWQuincyManager.h b/native/frameworks/Quincy.framework/Versions/A/Headers/BWQuincyManager.h deleted file mode 100644 index bb6d91c01..000000000 --- a/native/frameworks/Quincy.framework/Versions/A/Headers/BWQuincyManager.h +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Author: Andreas Linde - * Kent Sutherland - * - * Copyright (c) 2011 Andreas Linde & Kent Sutherland. - * All rights reserved. - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -typedef enum CrashAlertType { - CrashAlertTypeSend = 0, - CrashAlertTypeFeedback = 1, -} CrashAlertType; - -typedef enum CrashReportStatus { - // This app version is set to discontinued, no new crash reports accepted by the server - CrashReportStatusFailureVersionDiscontinued = -30, - - // XML: Sender ersion string contains not allowed characters, only alphanumberical including space and . are allowed - CrashReportStatusFailureXMLSenderVersionNotAllowed = -21, - - // XML: Version string contains not allowed characters, only alphanumberical including space and . are allowed - CrashReportStatusFailureXMLVersionNotAllowed = -20, - - // SQL for adding a symoblicate todo entry in the database failed - CrashReportStatusFailureSQLAddSymbolicateTodo = -18, - - // SQL for adding crash log in the database failed - CrashReportStatusFailureSQLAddCrashlog = -17, - - // SQL for adding a new version in the database failed - CrashReportStatusFailureSQLAddVersion = -16, - - // SQL for checking if the version is already added in the database failed - CrashReportStatusFailureSQLCheckVersionExists = -15, - - // SQL for creating a new pattern for this bug and set amount of occurrances to 1 in the database failed - CrashReportStatusFailureSQLAddPattern = -14, - - // SQL for checking the status of the bugfix version in the database failed - CrashReportStatusFailureSQLCheckBugfixStatus = -13, - - // SQL for updating the occurances of this pattern in the database failed - CrashReportStatusFailureSQLUpdatePatternOccurances = -12, - - // SQL for getting all the known bug patterns for the current app version in the database failed - CrashReportStatusFailureSQLFindKnownPatterns = -11, - - // SQL for finding the bundle identifier in the database failed - CrashReportStatusFailureSQLSearchAppName = -10, - - // the post request didn't contain valid data - CrashReportStatusFailureInvalidPostData = -3, - - // incoming data may not be added, because e.g. bundle identifier wasn't found - CrashReportStatusFailureInvalidIncomingData = -2, - - // database cannot be accessed, check hostname, username, password and database name settings in config.php - CrashReportStatusFailureDatabaseNotAvailable = -1, - - CrashReportStatusUnknown = 0, - - CrashReportStatusAssigned = 1, - - CrashReportStatusSubmitted = 2, - - CrashReportStatusAvailable = 3, -} CrashReportStatus; - - -@class BWQuincyUI; - -@protocol BWQuincyManagerDelegate - -@required - -// Invoked once the modal sheets are gone -- (void) showMainApplicationWindow; - -@optional - -// Return the description the crashreport should contain, empty by default. The string will automatically be wrapped into <[DATA[ ]]>, so make sure you don't do that in your string. --(NSString *) crashReportDescription; - -// Return the userid the crashreport should contain, empty by default --(NSString *) crashReportUserID; - -// Return the contact value (e.g. email) the crashreport should contain, empty by default --(NSString *) crashReportContact; -@end - - -@interface BWQuincyManager : NSObject -#if defined(MAC_OS_X_VERSION_10_6) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6) - -#endif -{ - CrashReportStatus _serverResult; - NSInteger _statusCode; - - NSMutableString *_contentOfProperty; - - id _delegate; - - NSString *_submissionURL; - NSString *_companyName; - NSString *_appIdentifier; - BOOL _autoSubmitCrashReport; - - NSString *_crashFile; - - BWQuincyUI *_quincyUI; -} - -- (NSString*) modelVersion; - -+ (BWQuincyManager *)sharedQuincyManager; - -// submission URL defines where to send the crash reports to (required) -@property (nonatomic, retain) NSString *submissionURL; - -// defines the company name to be shown in the crash reporting dialog -@property (nonatomic, retain) NSString *companyName; - -// delegate is required -@property (nonatomic, assign) id delegate; - -// if YES, the crash report will be submitted without asking the user -// if NO, the user will be asked if the crash report can be submitted (default) -@property (nonatomic, assign, getter=isAutoSubmitCrashReport) BOOL autoSubmitCrashReport; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -// settings - -// If you want to use HockeyApp instead of your own server, this is required -@property (nonatomic, retain) NSString *appIdentifier; - - -- (void) cancelReport; -- (void) sendReportCrash:(NSString*)crashContent - description:(NSString*)description; - -- (NSString *) applicationName; -- (NSString *) applicationVersionString; -- (NSString *) applicationVersion; - -@end diff --git a/native/frameworks/Quincy.framework/Versions/A/Quincy b/native/frameworks/Quincy.framework/Versions/A/Quincy deleted file mode 100755 index 5d8678492..000000000 Binary files a/native/frameworks/Quincy.framework/Versions/A/Quincy and /dev/null differ diff --git a/native/frameworks/Quincy.framework/Versions/A/Resources/BWQuincyMain.nib b/native/frameworks/Quincy.framework/Versions/A/Resources/BWQuincyMain.nib deleted file mode 100644 index c3b6a17e1..000000000 Binary files a/native/frameworks/Quincy.framework/Versions/A/Resources/BWQuincyMain.nib and /dev/null differ diff --git a/native/frameworks/Quincy.framework/Versions/A/Resources/Info.plist b/native/frameworks/Quincy.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0f173aeb2..000000000 --- a/native/frameworks/Quincy.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - BuildMachineOSBuild - 12D78 - CFBundleDevelopmentRegion - English - CFBundleExecutable - Quincy - CFBundleIdentifier - de.buzzworks.Quincy - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - DTCompiler - - DTPlatformBuild - 4H512 - DTPlatformVersion - GM - DTSDKBuild - 12D75 - DTSDKName - macosx10.8 - DTXcode - 0461 - DTXcodeBuild - 4H512 - - diff --git a/native/frameworks/Quincy.framework/Versions/Current b/native/frameworks/Quincy.framework/Versions/Current deleted file mode 120000 index 8c7e5a667..000000000 --- a/native/frameworks/Quincy.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Headers b/native/frameworks/Sparkle.framework/Headers deleted file mode 120000 index a177d2a6b..000000000 --- a/native/frameworks/Sparkle.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Resources b/native/frameworks/Sparkle.framework/Resources deleted file mode 120000 index 953ee36f3..000000000 --- a/native/frameworks/Sparkle.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Sparkle b/native/frameworks/Sparkle.framework/Sparkle deleted file mode 120000 index b2c52731e..000000000 --- a/native/frameworks/Sparkle.framework/Sparkle +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Sparkle \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h deleted file mode 100644 index 5a60d2fda..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// SUAppcast.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCAST_H -#define SUAPPCAST_H - -@class SUAppcastItem; -@interface SUAppcast : NSObject -{ -@private - NSArray *items; - NSString *userAgentString; - id delegate; - NSString *downloadFilename; - NSURLDownload *download; -} - -- (void)fetchAppcastFromURL:(NSURL *)url; -- (void)setDelegate:delegate; -- (void)setUserAgentString:(NSString *)userAgentString; - -- (NSArray *)items; - -@end - -@interface NSObject (SUAppcastDelegate) -- (void)appcastDidFinishLoading:(SUAppcast *)appcast; -- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error; -@end - -#endif diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h deleted file mode 100644 index 9f9539e1c..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h +++ /dev/null @@ -1,61 +0,0 @@ -// -// SUAppcastItem.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCASTITEM_H -#define SUAPPCASTITEM_H - -@interface SUAppcastItem : NSObject -{ -@private - NSString *title; - NSDate *date; - NSString *itemDescription; - - NSURL *releaseNotesURL; - - NSString *DSASignature; - NSString *minimumSystemVersion; - NSString *maximumSystemVersion; - - NSURL *fileURL; - NSString *versionString; - NSString *displayVersionString; - - NSDictionary *deltaUpdates; - - NSDictionary *propertiesDictionary; - - NSURL *infoURL; // UK 2007-08-31 -} - -// Initializes with data from a dictionary provided by the RSS class. -- initWithDictionary:(NSDictionary *)dict; -- initWithDictionary:(NSDictionary *)dict failureReason:(NSString**)error; - -- (NSString *)title; -- (NSString *)versionString; -- (NSString *)displayVersionString; -- (NSDate *)date; -- (NSString *)itemDescription; -- (NSURL *)releaseNotesURL; -- (NSURL *)fileURL; -- (NSString *)DSASignature; -- (NSString *)minimumSystemVersion; -- (NSString *)maximumSystemVersion; -- (NSDictionary *)deltaUpdates; -- (BOOL)isDeltaUpdate; -- (BOOL)isCriticalUpdate; - -// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions. -- (NSDictionary *)propertiesDictionary; - -- (NSURL *)infoURL; // UK 2007-08-31 - -@end - -#endif diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h deleted file mode 100644 index 67b116e83..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h +++ /dev/null @@ -1,169 +0,0 @@ -// -// SUUpdater.h -// Sparkle -// -// Created by Andy Matuschak on 1/4/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATER_H -#define SUUPDATER_H - -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" - -@class SUUpdateDriver, SUAppcastItem, SUHost, SUAppcast; - -@interface SUUpdater : NSObject -{ -@private - NSTimer *checkTimer; - SUUpdateDriver *driver; - - NSString *customUserAgentString; - SUHost *host; - IBOutlet id delegate; -} - -+ (SUUpdater *)sharedUpdater; -+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle; -- initForBundle:(NSBundle *)bundle; - -- (NSBundle *)hostBundle; - -- (void)setDelegate:(id)delegate; -- delegate; - -- (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyChecks; -- (BOOL)automaticallyChecksForUpdates; - -- (void)setUpdateCheckInterval:(NSTimeInterval)interval; -- (NSTimeInterval)updateCheckInterval; - -- (void)setFeedURL:(NSURL *)feedURL; -- (NSURL *)feedURL; // *** MUST BE CALLED ON MAIN THREAD *** - -- (void)setUserAgentString:(NSString *)userAgent; -- (NSString *)userAgentString; - -- (void)setSendsSystemProfile:(BOOL)sendsSystemProfile; -- (BOOL)sendsSystemProfile; - -- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyDownloadsUpdates; -- (BOOL)automaticallyDownloadsUpdates; - -// This IBAction is meant for a main menu item. Hook up any menu item to this action, -// and Sparkle will check for updates and report back its findings verbosely. -- (IBAction)checkForUpdates:(id)sender; - -// This kicks off an update meant to be programmatically initiated. That is, it will display no UI unless it actually finds an update, -// in which case it proceeds as usual. If the fully automated updating is turned on, however, this will invoke that behavior, and if an -// update is found, it will be downloaded and prepped for installation. -- (void)checkForUpdatesInBackground; - -// Date of last update check. Returns nil if no check has been performed. -- (NSDate*)lastUpdateCheckDate; - -// This begins a "probing" check for updates which will not actually offer to update to that version. The delegate methods, though, -// (up to updater:didFindValidUpdate: and updaterDidNotFindUpdate:), are called, so you can use that information in your UI. -- (void)checkForUpdateInformation; - -// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks. This call does not change the date of the next check, but only the internal NSTimer. -- (void)resetUpdateCycle; - -- (BOOL)updateInProgress; - -@end - - -// ----------------------------------------------------------------------------- -// SUUpdater Delegate: -// ----------------------------------------------------------------------------- - -@interface NSObject (SUUpdaterDelegateInformalProtocol) - -// Use this to keep Sparkle from popping up e.g. while your setup assistant is showing: -- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle; - -// This method allows you to add extra parameters to the appcast URL, potentially based on whether or not Sparkle will also be sending along the system profile. This method should return an array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user. -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; - -// Override this to dynamically specify the entire URL. -- (NSString*)feedURLStringForUpdater:(SUUpdater*)updater; - -// Use this to override the default behavior for Sparkle prompting the user about automatic update checks. -- (BOOL)updaterShouldPromptForPermissionToCheckForUpdates:(SUUpdater *)bundle; - -// Implement this if you want to do some special handling with the appcast once it finishes loading. -- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast; - -// If you're using special logic or extensions in your appcast, implement this to use your own logic for finding -// a valid update, if any, in the given appcast. -- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)bundle; - -// Sent when a valid update is found by the update driver. -- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update; - -// Sent when a valid update is not found. -- (void)updaterDidNotFindUpdate:(SUUpdater *)update; - -// Sent immediately before extracting the specified update. -- (void)updater:(SUUpdater *)updater willExtractUpdate:(SUAppcastItem *)update; - -// Sent immediately before installing the specified update. -- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update; - -// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue. -// This is not called if the user didn't relaunch on the previous update, in that case it will immediately -// restart. -- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)update untilInvoking:(NSInvocation *)invocation; - -// Some apps *can not* be relaunched in certain circumstances. They can use this method -// to prevent a relaunch "hard": -- (BOOL)updaterShouldRelaunchApplication:(SUUpdater *)updater; - -// Called immediately before relaunching. -- (void)updaterWillRelaunchApplication:(SUUpdater *)updater; - -// This method allows you to provide a custom version comparator. -// If you don't implement this method or return nil, the standard version comparator will be used. -- (id )versionComparatorForUpdater:(SUUpdater *)updater; - -// This method allows you to provide a custom version comparator. -// If you don't implement this method or return nil, the standard version displayer will be used. -- (id )versionDisplayerForUpdater:(SUUpdater *)updater; - -// Returns the path which is used to relaunch the client after the update is installed. By default, the path of the host bundle. -- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; - -// Called before and after, respectively, an updater shows a modal alert window, to give the host -// the opportunity to hide attached windows etc. that may get in the way: --(void) updaterWillShowModalAlert:(SUUpdater *)updater; --(void) updaterDidShowModalAlert:(SUUpdater *)updater; - -// Called when an update is scheduled to be silently installed on quit. -// The invocation can be used to trigger an immediate silent install and relaunch. -- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)update immediateInstallationInvocation:(NSInvocation *)invocation; -- (void)updater:(SUUpdater *)updater didCancelInstallUpdateOnQuit:(SUAppcastItem *)update; - -@end - - -// ----------------------------------------------------------------------------- -// Constants: -// ----------------------------------------------------------------------------- - -// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds. -#if defined(DEBUG) && DEBUG && 0 -#define SU_MIN_CHECK_INTERVAL 60 -#else -#define SU_MIN_CHECK_INTERVAL 60*60 -#endif - -#if defined(DEBUG) && DEBUG && 0 -#define SU_DEFAULT_CHECK_INTERVAL 60 -#else -#define SU_DEFAULT_CHECK_INTERVAL 60*60*24 -#endif - -#endif diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h deleted file mode 100644 index 6c65ea45a..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// SUVersionComparisonProtocol.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUVERSIONCOMPARISONPROTOCOL_H -#define SUVERSIONCOMPARISONPROTOCOL_H - -#import - -/*! - @protocol - @abstract Implement this protocol to provide version comparison facilities for Sparkle. -*/ -@protocol SUVersionComparison - -/*! - @method - @abstract An abstract method to compare two version strings. - @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent. -*/ -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD! - -@end - -#endif diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionDisplayProtocol.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionDisplayProtocol.h deleted file mode 100644 index 368b9c9f4..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/SUVersionDisplayProtocol.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SUVersionDisplayProtocol.h -// EyeTV -// -// Created by Uli Kusterer on 08.12.09. -// Copyright 2009 Elgato Systems GmbH. All rights reserved. -// - -#import - - -/*! - @protocol - @abstract Implement this protocol to apply special formatting to the two - version numbers. -*/ -@protocol SUVersionDisplay - -/*! - @method - @abstract An abstract method to format two version strings. - @discussion You get both so you can display important distinguishing - information, but leave out unnecessary/confusing parts. -*/ --(void) formatVersion: (NSString**)inOutVersionA andVersion: (NSString**)inOutVersionB; - -@end diff --git a/native/frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h b/native/frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h deleted file mode 100644 index 08dd57775..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// Sparkle.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07) -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SPARKLE_H -#define SPARKLE_H - -// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless -// there are name-space collisions) so we can list all of them to start with: - -#import - -#import -#import -#import - -#endif diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/Info.plist b/native/frameworks/Sparkle.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 26bc4f522..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,40 +0,0 @@ - - - - - BuildMachineOSBuild - 12C60 - CFBundleDevelopmentRegion - en - CFBundleExecutable - Sparkle - CFBundleIdentifier - org.andymatuschak.Sparkle - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Sparkle - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.5 Beta (git) - CFBundleSignature - ???? - CFBundleVersion - 4abc126 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 4G2008a - DTPlatformVersion - GM - DTSDKBuild - 11E52 - DTSDKName - macosx10.7 - DTXcode - 0452 - DTXcodeBuild - 4G2008a - - diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/License.txt b/native/frameworks/Sparkle.framework/Versions/A/Resources/License.txt deleted file mode 100644 index 08364c631..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/License.txt +++ /dev/null @@ -1,38 +0,0 @@ -Copyright (c) 2006 Andy Matuschak - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -================= -EXTERNAL LICENSES -================= - -License for bspatch.c and bsdiff.c, from bsdiff 4.3 (: -/*- - * Copyright 2003-2005 Colin Percival - * All rights reserved - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted providing that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist b/native/frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist deleted file mode 100644 index 63644f088..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist +++ /dev/null @@ -1,182 +0,0 @@ - - - - - ADP2,1 - Developer Transition Kit - iMac1,1 - iMac G3 (Rev A-D) - iMac4,1 - iMac (Core Duo) - iMac4,2 - iMac for Education (17-inch, Core Duo) - iMac5,1 - iMac (Core 2 Duo, 17 or 20 inch, SuperDrive) - iMac5,2 - iMac (Core 2 Duo, 17 inch, Combo Drive) - iMac6,1 - iMac (Core 2 Duo, 24 inch, SuperDrive) - iMac8,1 - iMac (April 2008) - MacBook1,1 - MacBook (Core Duo) - MacBook2,1 - MacBook (Core 2 Duo) - MacBook4,1 - MacBook (Core 2 Duo Feb 2008) - MacBookAir1,1 - MacBook Air (January 2008) - MacBookAir2,1 - MacBook Air (June 2009) - MacBookAir3,1 - MacBook Air (October 2010) - MacBookPro1,1 - MacBook Pro Core Duo (15-inch) - MacBookPro1,2 - MacBook Pro Core Duo (17-inch) - MacBookPro2,1 - MacBook Pro Core 2 Duo (17-inch) - MacBookPro2,2 - MacBook Pro Core 2 Duo (15-inch) - MacBookPro3,1 - MacBook Pro Core 2 Duo (15-inch LED, Core 2 Duo) - MacBookPro3,2 - MacBook Pro Core 2 Duo (17-inch HD, Core 2 Duo) - MacBookPro4,1 - MacBook Pro (Core 2 Duo Feb 2008) - Macmini1,1 - Mac Mini (Core Solo/Duo) - MacPro1,1 - Mac Pro (four-core) - MacPro2,1 - Mac Pro (eight-core) - MacPro3,1 - Mac Pro (January 2008 4- or 8- core "Harpertown") - MacPro4,1 - Mac Pro (March 2009) - MacPro5,1 - Mac Pro (August 2010) - PowerBook1,1 - PowerBook G3 - PowerBook2,1 - iBook G3 - PowerBook2,2 - iBook G3 (FireWire) - PowerBook2,3 - iBook G3 - PowerBook2,4 - iBook G3 - PowerBook3,1 - PowerBook G3 (FireWire) - PowerBook3,2 - PowerBook G4 - PowerBook3,3 - PowerBook G4 (Gigabit Ethernet) - PowerBook3,4 - PowerBook G4 (DVI) - PowerBook3,5 - PowerBook G4 (1GHz / 867MHz) - PowerBook4,1 - iBook G3 (Dual USB, Late 2001) - PowerBook4,2 - iBook G3 (16MB VRAM) - PowerBook4,3 - iBook G3 Opaque 16MB VRAM, 32MB VRAM, Early 2003) - PowerBook5,1 - PowerBook G4 (17 inch) - PowerBook5,2 - PowerBook G4 (15 inch FW 800) - PowerBook5,3 - PowerBook G4 (17-inch 1.33GHz) - PowerBook5,4 - PowerBook G4 (15 inch 1.5/1.33GHz) - PowerBook5,5 - PowerBook G4 (17-inch 1.5GHz) - PowerBook5,6 - PowerBook G4 (15 inch 1.67GHz/1.5GHz) - PowerBook5,7 - PowerBook G4 (17-inch 1.67GHz) - PowerBook5,8 - PowerBook G4 (Double layer SD, 15 inch) - PowerBook5,9 - PowerBook G4 (Double layer SD, 17 inch) - PowerBook6,1 - PowerBook G4 (12 inch) - PowerBook6,2 - PowerBook G4 (12 inch, DVI) - PowerBook6,3 - iBook G4 - PowerBook6,4 - PowerBook G4 (12 inch 1.33GHz) - PowerBook6,5 - iBook G4 (Early-Late 2004) - PowerBook6,7 - iBook G4 (Mid 2005) - PowerBook6,8 - PowerBook G4 (12 inch 1.5GHz) - PowerMac1,1 - Power Macintosh G3 (Blue & White) - PowerMac1,2 - Power Macintosh G4 (PCI Graphics) - PowerMac10,1 - Mac Mini G4 - PowerMac10,2 - Mac Mini (Late 2005) - PowerMac11,2 - Power Macintosh G5 (Late 2005) - PowerMac12,1 - iMac G5 (iSight) - PowerMac2,1 - iMac G3 (Slot-loading CD-ROM) - PowerMac2,2 - iMac G3 (Summer 2000) - PowerMac3,1 - Power Macintosh G4 (AGP Graphics) - PowerMac3,2 - Power Macintosh G4 (AGP Graphics) - PowerMac3,3 - Power Macintosh G4 (Gigabit Ethernet) - PowerMac3,4 - Power Macintosh G4 (Digital Audio) - PowerMac3,5 - Power Macintosh G4 (Quick Silver) - PowerMac3,6 - Power Macintosh G4 (Mirrored Drive Door) - PowerMac4,1 - iMac G3 (Early/Summer 2001) - PowerMac4,2 - iMac G4 (Flat Panel) - PowerMac4,4 - eMac - PowerMac4,5 - iMac G4 (17-inch Flat Panel) - PowerMac5,1 - Power Macintosh G4 Cube - PowerMac6,1 - iMac G4 (USB 2.0) - PowerMac6,3 - iMac G4 (20-inch Flat Panel) - PowerMac6,4 - eMac (USB 2.0, 2005) - PowerMac7,2 - Power Macintosh G5 - PowerMac7,3 - Power Macintosh G5 - PowerMac8,1 - iMac G5 - PowerMac8,2 - iMac G5 (Ambient Light Sensor) - PowerMac9,1 - Power Macintosh G5 (Late 2005) - RackMac1,1 - Xserve G4 - RackMac1,2 - Xserve G4 (slot-loading, cluster node) - RackMac3,1 - Xserve G5 - Xserve1,1 - Xserve (Intel Xeon) - Xserve2,1 - Xserve (January 2008 quad-core) - - diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib deleted file mode 100644 index 5ddc9d216..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 5e5199c7c..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUPasswordPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUPasswordPrompt.nib deleted file mode 100644 index 1c35eef14..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUPasswordPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdateAlert.nib deleted file mode 100644 index f80f6c760..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index e11c18462..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/Sparkle.strings deleted file mode 100644 index 858a71fae..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 6960c92a2..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdateAlert.nib deleted file mode 100644 index ac0456f55..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 2d72e4e50..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/Sparkle.strings deleted file mode 100644 index 9bbb99686..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 278635608..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdateAlert.nib deleted file mode 100644 index 51225f88c..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index d9d19c17a..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/Sparkle.strings deleted file mode 100644 index 2984afdf6..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 9c9c941b7..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib deleted file mode 100644 index 300f99c84..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 829526ee7..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings deleted file mode 100644 index 664946d41..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 4924731bd..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUPasswordPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUPasswordPrompt.nib deleted file mode 100644 index 16cd6171c..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUPasswordPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib deleted file mode 100644 index 504ab4904..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index a8dc39dfe..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings deleted file mode 100644 index a9c7f851d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index e895c2668..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib deleted file mode 100644 index e1412ac95..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index d5f250406..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings deleted file mode 100644 index 8e4ab943b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Info.plist b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Info.plist deleted file mode 100644 index 2c7893dea..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - BuildMachineOSBuild - 12C60 - CFBundleDevelopmentRegion - English - CFBundleExecutable - finish_installation - CFBundleIconFile - Sparkle - CFBundleIdentifier - org.andymatuschak.sparkle.finish-installation - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 4G2008a - DTPlatformVersion - GM - DTSDKBuild - 11E52 - DTSDKName - macosx10.7 - DTXcode - 0452 - DTXcodeBuild - 4G2008a - LSBackgroundOnly - 1 - LSMinimumSystemVersion - 10.4 - LSUIElement - 1 - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/MacOS/finish_installation b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/MacOS/finish_installation deleted file mode 100755 index 67aaa1908..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/MacOS/finish_installation and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/PkgInfo b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/PkgInfo deleted file mode 100644 index bd04210fb..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/PkgInfo +++ /dev/null @@ -1 +0,0 @@ -APPL???? \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/SUStatus.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/SUStatus.nib deleted file mode 100644 index 5ddc9d216..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/SUStatus.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/Sparkle.icns b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/Sparkle.icns deleted file mode 100644 index 8e56d45c0..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/Sparkle.icns and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ar.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ar.lproj/Sparkle.strings deleted file mode 100644 index 858a71fae..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ar.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/cs.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/cs.lproj/Sparkle.strings deleted file mode 100644 index 9bbb99686..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/cs.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/da.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/da.lproj/Sparkle.strings deleted file mode 100644 index 2984afdf6..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/da.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/de.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/de.lproj/Sparkle.strings deleted file mode 100644 index 664946d41..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/de.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/en.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/en.lproj/Sparkle.strings deleted file mode 100644 index a9c7f851d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/en.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/es.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/es.lproj/Sparkle.strings deleted file mode 100644 index 8e4ab943b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/es.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/fr.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/fr.lproj/Sparkle.strings deleted file mode 100644 index 236f807a7..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/fr.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/is.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/is.lproj/Sparkle.strings deleted file mode 100644 index 665e273e4..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/is.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/it.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/it.lproj/Sparkle.strings deleted file mode 100644 index 4ccd7affb..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/it.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ja.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ja.lproj/Sparkle.strings deleted file mode 100644 index b21ea044d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ja.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/nl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/nl.lproj/Sparkle.strings deleted file mode 100644 index 023c473b2..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/nl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pl.lproj/Sparkle.strings deleted file mode 100644 index 9a0bc8b9f..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_BR.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_BR.lproj/Sparkle.strings deleted file mode 100644 index 7a11a9ebd..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_BR.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_PT.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_PT.lproj/Sparkle.strings deleted file mode 100644 index 497cd8303..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/pt_PT.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ro.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ro.lproj/Sparkle.strings deleted file mode 100644 index e90bdf598..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ro.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ru.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ru.lproj/Sparkle.strings deleted file mode 100644 index 7afef95f4..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/ru.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sl.lproj/Sparkle.strings deleted file mode 100644 index 7ec0bc27b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sv.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sv.lproj/Sparkle.strings deleted file mode 100644 index 16c3fb842..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/sv.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/th.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/th.lproj/Sparkle.strings deleted file mode 100644 index 0468c97f1..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/th.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/tr.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/tr.lproj/Sparkle.strings deleted file mode 100644 index 69184c75b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/tr.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/uk.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/uk.lproj/Sparkle.strings deleted file mode 100644 index 6f0e4db95..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/uk.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_CN.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_CN.lproj/Sparkle.strings deleted file mode 100644 index b741758fd..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_CN.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_TW.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_TW.lproj/Sparkle.strings deleted file mode 100644 index c1f7e85ed..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/Contents/Resources/zh_TW.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 6f99d8514..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib deleted file mode 100644 index 347f12a98..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 9d1adfa73..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings deleted file mode 100644 index 236f807a7..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj b/native/frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj deleted file mode 120000 index f9834a395..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj +++ /dev/null @@ -1 +0,0 @@ -fr.lproj \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index a8bbb1d57..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdateAlert.nib deleted file mode 100644 index e371d758b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 55c5891d2..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/Sparkle.strings deleted file mode 100644 index 665e273e4..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index c3d4c8f1d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib deleted file mode 100644 index b12608a4c..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 3d7a8e675..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings deleted file mode 100644 index 4ccd7affb..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index cc6a7d842..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdateAlert.nib deleted file mode 100644 index 86aa88c23..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 62a4e0195..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/Sparkle.strings deleted file mode 100644 index b21ea044d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index e74a88b91..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdateAlert.nib deleted file mode 100644 index 08e91dd77..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 763ed3727..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 2ce3543b0..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib deleted file mode 100644 index a47c77410..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 5d115e14a..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings deleted file mode 100644 index 023c473b2..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 6b3bb832d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdateAlert.nib deleted file mode 100644 index e55aabf6e..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index f936c00e5..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/Sparkle.strings deleted file mode 100644 index 9a0bc8b9f..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt.lproj b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt.lproj deleted file mode 120000 index 3c1c9f6dc..000000000 --- a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt.lproj +++ /dev/null @@ -1 +0,0 @@ -pt_BR.lproj \ No newline at end of file diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index cfde618d8..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUPasswordPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUPasswordPrompt.nib deleted file mode 100644 index 185c1c08e..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUPasswordPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdateAlert.nib deleted file mode 100644 index 0507aae05..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 192910175..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/Sparkle.strings deleted file mode 100644 index 7a11a9ebd..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 1677728af..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdateAlert.nib deleted file mode 100644 index 487f7556d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 01a6c38a3..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/Sparkle.strings deleted file mode 100644 index 497cd8303..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 52e0e5d22..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdateAlert.nib deleted file mode 100644 index 650114b57..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index f556aae5d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/Sparkle.strings deleted file mode 100644 index e90bdf598..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 50e99525f..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib deleted file mode 100644 index 259cc9b5b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index bbbc71e9e..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings deleted file mode 100644 index 7afef95f4..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 1599b26a0..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdateAlert.nib deleted file mode 100644 index 0b8688cdf..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index eceddf2de..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index ccf680cc6..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdateAlert.nib deleted file mode 100644 index d2db5af34..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index df467541b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/Sparkle.strings deleted file mode 100644 index 7ec0bc27b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index ccb719614..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib deleted file mode 100644 index cf7b20365..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 60343ea62..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings deleted file mode 100644 index 16c3fb842..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index de3bceed9..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUPasswordPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUPasswordPrompt.nib deleted file mode 100644 index 08c9dc44d..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUPasswordPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdateAlert.nib deleted file mode 100644 index e21e467e8..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 7610fc98e..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/Sparkle.strings deleted file mode 100644 index 0468c97f1..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 193b60c8e..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdateAlert.nib deleted file mode 100644 index 80923a410..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 6fe09c2b1..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/Sparkle.strings deleted file mode 100644 index 69184c75b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 309cda699..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdateAlert.nib deleted file mode 100644 index ef1b92f0b..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index 41b5a3974..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/Sparkle.strings deleted file mode 100644 index 6f0e4db95..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index a06881312..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdateAlert.nib deleted file mode 100644 index ec7965e50..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index c2ff59c40..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/Sparkle.strings deleted file mode 100644 index b741758fd..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUAutomaticUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUAutomaticUpdateAlert.nib deleted file mode 100644 index 966d90063..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUAutomaticUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdateAlert.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdateAlert.nib deleted file mode 100644 index 530b67ab5..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdateAlert.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdatePermissionPrompt.nib b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdatePermissionPrompt.nib deleted file mode 100644 index f6849fe84..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdatePermissionPrompt.nib and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/Sparkle.strings b/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/Sparkle.strings deleted file mode 100644 index c1f7e85ed..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/Sparkle.strings and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/A/Sparkle b/native/frameworks/Sparkle.framework/Versions/A/Sparkle deleted file mode 100755 index bfc12fdcf..000000000 Binary files a/native/frameworks/Sparkle.framework/Versions/A/Sparkle and /dev/null differ diff --git a/native/frameworks/Sparkle.framework/Versions/Current b/native/frameworks/Sparkle.framework/Versions/Current deleted file mode 120000 index 8c7e5a667..000000000 --- a/native/frameworks/Sparkle.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/native/linux/.gitignore b/native/linux/.gitignore deleted file mode 100644 index 7c7d7bff6..000000000 --- a/native/linux/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -*.o -*~ -out/ -*.Makefile -*.target.mk -Makefile diff --git a/native/linux/atom.gyp b/native/linux/atom.gyp deleted file mode 100644 index aed99a033..000000000 --- a/native/linux/atom.gyp +++ /dev/null @@ -1,50 +0,0 @@ -{ - 'targets': [ - { - 'target_name': 'atom', - 'type': 'executable', - 'variables': { - 'pkg-config': 'pkg-config', - 'install-dir': '/usr/share/atom', - }, - 'dependencies': [ - ], - 'defines': [ - 'PROCESS_HELPER_APP', - ], - 'include_dirs': [ - '../../cef', - '..', - '../v8_extensions', - '.', - ], - 'sources': [ - '../v8_extensions/atom_linux.cpp', - '../v8_extensions/native_linux.cpp', - '../v8_extensions/onig_reg_exp_linux.cpp', - '../message_translation.cpp', - 'atom_app.cpp', - 'atom_cef_render_process_handler.cpp', - 'client_handler.cpp', - 'io_utils.cpp', - ], - 'cflags': [ - ' -#include -#include -#include "atom_app.h" -#include "atom_cef_app.h" -#include "include/cef_app.h" -#include "include/cef_browser.h" -#include "include/cef_frame.h" -#include "include/cef_runnable.h" -#include "client_handler.h" -#include "io_utils.h" - -using namespace std; - -char* szWorkingDir; // The current working directory - -const char* szPath; // The folder the application is in - -const char* szPathToOpen; // The file to open - -CefRefPtr g_handler; - -void AppGetSettings(CefSettings& settings, CefRefPtr& app) { - CefString(&settings.cache_path) = ""; - CefString(&settings.user_agent) = ""; - CefString(&settings.product_version) = ""; - CefString(&settings.locale) = ""; - CefString(&settings.log_file) = ""; - CefString(&settings.javascript_flags) = ""; - - settings.remote_debugging_port = 9090; - settings.log_severity = LOGSEVERITY_ERROR; -} - -void destroy(void) { - CefQuitMessageLoop(); -} - -void TerminationSignalHandler(int signatl) { - destroy(); -} - -// WebViewDelegate::TakeFocus in the test webview delegate. -static gboolean HandleFocus(GtkWidget* widget, GdkEventFocus* focus) { - if (g_handler.get() && g_handler->GetBrowserHwnd()) { - // Give focus to the browser window. - g_handler->GetBrowser()->GetHost()->SetFocus(true); - } - - return TRUE; -} - -int main(int argc, char *argv[]) { - CefMainArgs main_args(argc, argv); - szWorkingDir = get_current_dir_name(); - if (szWorkingDir == NULL) - return -1; - - string appDir = io_util_app_directory(); - if (appDir.empty()) - return -1; - - szPath = appDir.c_str(); - - string pathToOpen; - if (argc >= 2) { - if (argv[1][0] != '/') { - pathToOpen.append(szWorkingDir); - pathToOpen.append("/"); - pathToOpen.append(argv[1]); - } else - pathToOpen.append(argv[1]); - } else - pathToOpen.append(szWorkingDir); - szPathToOpen = pathToOpen.c_str(); - - GtkWidget* window; - - gtk_init(&argc, &argv); - - CefSettings settings; - CefRefPtr app(new AtomCefApp); - - AppGetSettings(settings, app); - CefInitialize(main_args, settings, app.get()); - - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_title(GTK_WINDOW(window), "atom"); - gtk_window_set_default_size(GTK_WINDOW(window), 800, 600); - gtk_window_maximize(GTK_WINDOW(window)); - - g_signal_connect(window, "focus", G_CALLBACK(&HandleFocus), NULL); - - GtkWidget* vbox = gtk_vbox_new(FALSE, 0); - - g_signal_connect(G_OBJECT(window), "destroy", - G_CALLBACK(gtk_widget_destroyed), &window); - g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy), NULL); - - // Create the handler. - g_handler = new ClientHandler(); - g_handler->SetMainHwnd(vbox); - g_handler->SetWindow(window); - - // Create the browser view. - CefWindowInfo window_info; - CefBrowserSettings browserSettings; - - window_info.SetAsChild(vbox); - - string path = io_utils_real_app_path("/static/index.html"); - if (path.empty()) - return -1; - - string resolved("file://"); - resolved.append(path); - resolved.append("?bootstrapScript=window-bootstrap"); - resolved.append("&pathToOpen="); - resolved.append(PathToOpen()); - - CefBrowserHost::CreateBrowserSync(window_info, g_handler.get(), resolved, - browserSettings); - - gtk_container_add(GTK_CONTAINER(window), vbox); - - GdkPixbuf *pixbuf; - GError *error = NULL; - string iconPath; - iconPath.append(szPath); - iconPath.append("/atom.png"); - pixbuf = gdk_pixbuf_new_from_file(iconPath.c_str(), &error); - if (pixbuf) - gtk_window_set_icon(GTK_WINDOW(window), pixbuf); - - gtk_widget_show_all(GTK_WIDGET(window)); - - // Install an signal handler so we clean up after ourselves. - signal(SIGINT, TerminationSignalHandler); - signal(SIGTERM, TerminationSignalHandler); - - CefRunMessageLoop(); - - CefShutdown(); - - return 0; -} - -// Global functions - -string AppGetWorkingDirectory() { - return szWorkingDir; -} - -string AppPath() { - return szPath; -} - -string PathToOpen() { - return szPathToOpen; -} diff --git a/native/linux/atom_app.h b/native/linux/atom_app.h deleted file mode 100644 index d73990ab0..000000000 --- a/native/linux/atom_app.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef ATOM_APP_H_ -#define ATOM_APP_H_ -#pragma once - -#include -#include "include/cef_base.h" - -class CefApp; -class CefBrowser; -class CefCommandLine; - -// Returns the main browser window instance. -CefRefPtr AppGetBrowser(); - -// Returns the main application window handle. -CefWindowHandle AppGetMainHwnd(); - -// Returns the application working directory. -std::string AppGetWorkingDirectory(); - -// Returns the application's path. -std::string AppPath(); - -// Returns the initial path to open. -std::string PathToOpen(); - -// Returns the application settings -void AppGetSettings(CefSettings& settings, CefRefPtr& app); - -#endif diff --git a/native/linux/atom_cef_render_process_handler.cpp b/native/linux/atom_cef_render_process_handler.cpp deleted file mode 100644 index 33e1d4c73..000000000 --- a/native/linux/atom_cef_render_process_handler.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include "atom_cef_render_process_handler.h" -#include "atom.h" -#include "native_linux.h" -#include "onig_reg_exp.h" -#include "io_utils.h" -#include "message_translation.h" -#include - -void AtomCefRenderProcessHandler::OnWebKitInitialized() { - new v8_extensions::Atom(); - new v8_extensions::NativeHandler(); -} - -void AtomCefRenderProcessHandler::OnContextCreated( - CefRefPtr browser, CefRefPtr frame, - CefRefPtr context) { - CefRefPtr resourcePath = CefV8Value::CreateString( - io_util_app_directory()); - - CefRefPtr global = context->GetGlobal(); - CefRefPtr atom = global->GetValue("atom"); - atom->SetValue("resourcePath", resourcePath, V8_PROPERTY_ATTRIBUTE_NONE); -} - -bool AtomCefRenderProcessHandler::OnProcessMessageReceived( - CefRefPtr browser, CefProcessId source_process, - CefRefPtr message) { - std::string name = message->GetName().ToString(); - if (name == "reload") { - Reload(browser); - return true; - } else { - return CallMessageReceivedHandler(browser->GetMainFrame()->GetV8Context(), - message); - } -} - -void AtomCefRenderProcessHandler::Reload(CefRefPtr browser) { - CefRefPtr context = browser->GetMainFrame()->GetV8Context(); - CefRefPtr global = context->GetGlobal(); - - context->Enter(); - CefV8ValueList arguments; - - CefRefPtr reloadFunction = global->GetValue("reload"); - reloadFunction->ExecuteFunction(global, arguments); - if (reloadFunction->HasException()) { - browser->ReloadIgnoreCache(); - } - context->Exit(); -} - -bool AtomCefRenderProcessHandler::CallMessageReceivedHandler( - CefRefPtr context, CefRefPtr message) { - context->Enter(); - - CefRefPtr atom = context->GetGlobal()->GetValue("atom"); - CefRefPtr receiveFn = atom->GetValue( - "receiveMessageFromBrowserProcess"); - - CefV8ValueList arguments; - arguments.push_back(CefV8Value::CreateString(message->GetName().ToString())); - - CefRefPtr messageArguments = message->GetArgumentList(); - if (messageArguments->GetSize() > 0) { - CefRefPtr data = CefV8Value::CreateArray( - messageArguments->GetSize()); - TranslateList(messageArguments, data); - arguments.push_back(data); - } - - receiveFn->ExecuteFunction(atom, arguments); - context->Exit(); - - if (receiveFn->HasException()) { - std::cout << "ERROR: Exception in JS receiving message " - << message->GetName().ToString() << "\n"; - return false; - } else { - return true; - } -} diff --git a/native/linux/client_handler.cpp b/native/linux/client_handler.cpp deleted file mode 100644 index ea41e9fa8..000000000 --- a/native/linux/client_handler.cpp +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#include "client_handler.h" -#include -#include -#include -#include -#include "include/cef_browser.h" -#include "include/cef_frame.h" -#include "atom.h" -#include -#include - -using namespace std; - -ClientHandler::ClientHandler() : - m_MainHwnd(NULL), m_BrowserHwnd(NULL) { -} - -ClientHandler::~ClientHandler() { -} - -bool ClientHandler::OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, CefRefPtr message) { - string name = message->GetName().ToString(); - if (name == "showDevTools") { - string devtools_url = browser->GetHost()->GetDevToolsURL(true); - if (!devtools_url.empty()) - browser->GetMainFrame()->ExecuteJavaScript( - "window.open('" + devtools_url + "');", "about:blank", 0); - } else - return false; - - return true; -} - -void ClientHandler::OnAfterCreated(CefRefPtr browser) { - REQUIRE_UI_THREAD(); - - AutoLock lock_scope(this); - if (!m_Browser.get()) { - // We need to keep the main child window, but not popup windows - m_Browser = browser; - m_BrowserId = browser->GetIdentifier(); - } -} - -bool ClientHandler::DoClose(CefRefPtr browser) { - REQUIRE_UI_THREAD(); - - if (m_BrowserId == browser->GetIdentifier()) { - // Since the main window contains the browser window, we need to close - // the parent window instead of the browser window. - CloseMainWindow(); - - // Return true here so that we can skip closing the browser window - // in this pass. (It will be destroyed due to the call to close - // the parent above.) - return true; - } - - // A popup browser window is not contained in another window, so we can let - // these windows close by themselves. - return false; -} - -void ClientHandler::OnBeforeClose(CefRefPtr browser) { - REQUIRE_UI_THREAD(); - - // Free the browser pointer so that the browser can be destroyed - if (m_BrowserId == browser->GetIdentifier()) - m_Browser = NULL; -} - -void ClientHandler::OnLoadStart(CefRefPtr browser, - CefRefPtr frame) { - REQUIRE_UI_THREAD(); - -} - -void ClientHandler::OnLoadEnd(CefRefPtr browser, - CefRefPtr frame, int httpStatusCode) { - REQUIRE_UI_THREAD(); - -} - -bool ClientHandler::OnLoadError(CefRefPtr browser, - CefRefPtr frame, ErrorCode errorCode, const CefString& failedUrl, - CefString& errorText) { - REQUIRE_UI_THREAD(); - - // All other messages. - stringstream ss; - ss << "Load Failed" - "

Load Failed

" - "

Load of URL " << string(failedUrl) << " failed with error code " - << static_cast(errorCode) << ".

" - ""; - errorText = ss.str(); - - return false; -} - -void ClientHandler::OnNavStateChange(CefRefPtr browser, - bool canGoBack, bool canGoForward) { - //Intentionally left blank -} - -bool ClientHandler::OnConsoleMessage(CefRefPtr browser, - const CefString& message, const CefString& source, int line) { - REQUIRE_UI_THREAD(); - cout << string(message) << endl; - return false; -} - -void ClientHandler::OnFocusedNodeChanged(CefRefPtr browser, - CefRefPtr frame, CefRefPtr node) { - REQUIRE_UI_THREAD(); -} - -void ClientHandler::SetWindow(GtkWidget* widget) { - window = widget; -} - -void ClientHandler::SetMainHwnd(CefWindowHandle hwnd) { - AutoLock lock_scope(this); - m_MainHwnd = hwnd; -} - -// ClientHandler::ClientLifeSpanHandler implementation -bool ClientHandler::OnBeforePopup(CefRefPtr parentBrowser, - const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, - const CefString& url, CefRefPtr& client, - CefBrowserSettings& settings) { - REQUIRE_UI_THREAD(); - - return false; -} - -void ClientHandler::OnAddressChange(CefRefPtr browser, - CefRefPtr frame, const CefString& url) { - //Intentionally left blank -} - -void ClientHandler::OnTitleChange(CefRefPtr browser, - const CefString& title) { - REQUIRE_UI_THREAD(); - - string titleStr(title); - - size_t inHomeDir; - string home = getenv("HOME"); - inHomeDir = titleStr.find(home); - if (inHomeDir == 0) { - titleStr = titleStr.substr(home.length()); - titleStr.insert(0, "~"); - } - - size_t lastSlash; - lastSlash = titleStr.rfind("/"); - - string formatted; - if (lastSlash != string::npos && lastSlash + 1 < titleStr.length()) { - formatted.append(titleStr, lastSlash + 1, titleStr.length() - lastSlash); - formatted.append(" ("); - formatted.append(titleStr, 0, lastSlash); - formatted.append(")"); - } else - formatted.append(titleStr); - formatted.append(" - atom"); - - GtkWidget* window = gtk_widget_get_ancestor( - GTK_WIDGET(browser->GetHost()->GetWindowHandle()), GTK_TYPE_WINDOW); - gtk_window_set_title(GTK_WINDOW(window), formatted.c_str()); -} - -void ClientHandler::SendNotification(NotificationType type) { - // TODO(port): Implement this method. -} - -void ClientHandler::CloseMainWindow() { - // TODO(port): Close main window. -} diff --git a/native/linux/client_handler.h b/native/linux/client_handler.h deleted file mode 100644 index 71ceab5bb..000000000 --- a/native/linux/client_handler.h +++ /dev/null @@ -1,115 +0,0 @@ -#ifndef CLIENT_HANDLER_H_ -#define CLIENT_HANDLER_H_ -#pragma once - -#include -#include -#include "include/cef_client.h" -#include "util.h" - -// ClientHandler implementation. -class ClientHandler: public CefClient, - public CefLifeSpanHandler, - public CefLoadHandler, - public CefDisplayHandler, - public CefFocusHandler { -public: - ClientHandler(); - virtual ~ClientHandler(); - - // CefClient methods - virtual CefRefPtr GetLifeSpanHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetLoadHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetDisplayHandler() OVERRIDE { - return this; - } - virtual CefRefPtr GetFocusHandler() OVERRIDE { - return this; - } - - // CefLifeSpanHandler methods - virtual bool OnBeforePopup(CefRefPtr parentBrowser, - const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, - const CefString& url, CefRefPtr& client, - CefBrowserSettings& settings) OVERRIDE; - virtual void OnAfterCreated(CefRefPtr browser) OVERRIDE; - virtual bool DoClose(CefRefPtr browser) OVERRIDE; - virtual void OnBeforeClose(CefRefPtr browser) OVERRIDE; - - // CefLoadHandler methods - virtual void OnLoadStart(CefRefPtr browser, - CefRefPtr frame) OVERRIDE; - virtual void OnLoadEnd(CefRefPtr browser, - CefRefPtr frame, int httpStatusCode) OVERRIDE; - virtual bool OnLoadError(CefRefPtr browser, - CefRefPtr frame, ErrorCode errorCode, - const CefString& failedUrl, CefString& errorText) OVERRIDE; - - // CefDisplayHandler methods - virtual void OnNavStateChange(CefRefPtr browser, bool canGoBack, - bool canGoForward) OVERRIDE; - virtual void OnAddressChange(CefRefPtr browser, - CefRefPtr frame, const CefString& url) OVERRIDE; - virtual void OnTitleChange(CefRefPtr browser, - const CefString& title) OVERRIDE; - virtual bool OnConsoleMessage(CefRefPtr browser, - const CefString& message, const CefString& source, int line) OVERRIDE; - - // CefFocusHandler methods. - virtual void OnFocusedNodeChanged(CefRefPtr browser, - CefRefPtr frame, CefRefPtr node) OVERRIDE; - - virtual bool OnProcessMessageReceived(CefRefPtr browser, - CefProcessId source_process, CefRefPtr message) - OVERRIDE; - - void SetWindow(GtkWidget* window); - void SetMainHwnd(CefWindowHandle hwnd); - - CefWindowHandle GetMainHwnd() { - return m_MainHwnd; - } - void SetEditHwnd(CefWindowHandle hwnd); - - CefRefPtr GetBrowser() { - return m_Browser; - } - CefWindowHandle GetBrowserHwnd() { - return m_BrowserHwnd; - } - - enum NotificationType { - NOTIFY_CONSOLE_MESSAGE - }; - void SendNotification(NotificationType type); - void CloseMainWindow(); - -protected: - - GtkWidget* window; - - // The child browser window - CefRefPtr m_Browser; - - // The main frame window handle - CefWindowHandle m_MainHwnd; - - // The child browser window handle - CefWindowHandle m_BrowserHwnd; - - // The child browser id - int m_BrowserId; - - // Include the default reference counting implementation. -IMPLEMENT_REFCOUNTING(ClientHandler) - ; - // Include the default locking implementation. -IMPLEMENT_LOCKING(ClientHandler) - ; -}; - -#endif diff --git a/native/linux/install-32.sh b/native/linux/install-32.sh deleted file mode 100755 index 23888b098..000000000 --- a/native/linux/install-32.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -INSTALLDIR=/usr/share/atom - -mkdir -p $INSTALLDIR -cp out/Default/atom $INSTALLDIR -cp -R -t $INSTALLDIR static/* -cp -t $INSTALLDIR lib/32/* -cp -R ../../src $INSTALLDIR -cp -R ../../static $INSTALLDIR -cp -R ../../vendor $INSTALLDIR -cp -R ../../bundles $INSTALLDIR -cp -R ../../themes $INSTALLDIR -mkdir -p $INSTALLDIR/native/v8_extensions -cp -t $INSTALLDIR/native/v8_extensions ../v8_extensions/*.js -coffee -c -o $INSTALLDIR/src/stdlib ../../src/stdlib/require.coffee -ln -sf $INSTALLDIR/atom /usr/local/bin/atom diff --git a/native/linux/io_utils.cpp b/native/linux/io_utils.cpp deleted file mode 100644 index 4881caf5e..000000000 --- a/native/linux/io_utils.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include "io_utils.h" -#include "atom_app.h" -#include -#include -#include - -#define BUFFER_SIZE 8192 - -using namespace std; - -int io_utils_read(string path, string* output) { - int fd = open(path.c_str(), O_RDONLY); - if (fd <= 0) - return 0; - - char buffer[BUFFER_SIZE]; - unsigned int bytesRead = 0; - unsigned int totalRead = 0; - while ((bytesRead = read(fd, buffer, BUFFER_SIZE)) > 0) { - output->append(buffer, 0, bytesRead); - totalRead += bytesRead; - } - close(fd); - return totalRead; -} - -string io_utils_real_app_path(string relativePath) { - string path = AppPath() + relativePath; - char* realPath = realpath(path.c_str(), NULL); - if (realPath != NULL) { - string realAppPath(realPath); - free(realPath); - return realAppPath; - } else - return ""; -} - -string io_util_app_directory() { - char path[BUFFER_SIZE]; - if (readlink("/proc/self/exe", path, BUFFER_SIZE) < 2) - return ""; - - string appPath(path); - unsigned int lastSlash = appPath.rfind("/"); - if (lastSlash != string::npos) - return appPath.substr(0, lastSlash); - else - return appPath; -} diff --git a/native/linux/io_utils.h b/native/linux/io_utils.h deleted file mode 100644 index f01a25e16..000000000 --- a/native/linux/io_utils.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef IO_UTILS_H_ -#define IO_UTILS_H_ -#pragma once - -#include - -/** - * Read file at path and append to output string - */ -int io_utils_read(std::string path, std::string* output); - -/** - * Get realpath for given path that is relative to the app path - */ -std::string io_utils_real_app_path(std::string relativePath); - -/** - * Get path to directory where atom app resides - */ -std::string io_util_app_directory(); - -#endif diff --git a/native/linux/lib/32/libcef.so b/native/linux/lib/32/libcef.so deleted file mode 100755 index 9c22903b7..000000000 Binary files a/native/linux/lib/32/libcef.so and /dev/null differ diff --git a/native/linux/lib/32/libcef_dll_wrapper.a b/native/linux/lib/32/libcef_dll_wrapper.a deleted file mode 100644 index c2355da67..000000000 Binary files a/native/linux/lib/32/libcef_dll_wrapper.a and /dev/null differ diff --git a/native/linux/lib/64/libcef.so b/native/linux/lib/64/libcef.so deleted file mode 100755 index 5e2271aa0..000000000 Binary files a/native/linux/lib/64/libcef.so and /dev/null differ diff --git a/native/linux/lib/64/libcef_dll_wrapper.a b/native/linux/lib/64/libcef_dll_wrapper.a deleted file mode 100644 index 8c2a596df..000000000 Binary files a/native/linux/lib/64/libcef_dll_wrapper.a and /dev/null differ diff --git a/native/linux/static/atom.png b/native/linux/static/atom.png deleted file mode 100644 index b77e76777..000000000 Binary files a/native/linux/static/atom.png and /dev/null differ diff --git a/native/linux/static/cef.pak b/native/linux/static/cef.pak deleted file mode 100644 index 34e11ac29..000000000 Binary files a/native/linux/static/cef.pak and /dev/null differ diff --git a/native/linux/static/cef_resources.pak b/native/linux/static/cef_resources.pak deleted file mode 100644 index 3f169e457..000000000 Binary files a/native/linux/static/cef_resources.pak and /dev/null differ diff --git a/native/linux/static/content_resources.pak b/native/linux/static/content_resources.pak deleted file mode 100644 index a14a346c9..000000000 Binary files a/native/linux/static/content_resources.pak and /dev/null differ diff --git a/native/linux/static/devtools_resources.pak b/native/linux/static/devtools_resources.pak deleted file mode 100644 index 342d06fdd..000000000 Binary files a/native/linux/static/devtools_resources.pak and /dev/null differ diff --git a/native/linux/static/locales/en-US.pak b/native/linux/static/locales/en-US.pak deleted file mode 100644 index d5df85b54..000000000 Binary files a/native/linux/static/locales/en-US.pak and /dev/null differ diff --git a/native/linux/util.h b/native/linux/util.h deleted file mode 100644 index 51f371d82..000000000 --- a/native/linux/util.h +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights -// reserved. Use of this source code is governed by a BSD-style license that -// can be found in the LICENSE file. - -#ifndef UTIL_H_ -#define UTIL_H_ -#pragma once - -#include "include/cef_task.h" - -#include // NOLINT(build/include_order) -#ifndef NDEBUG -#define ASSERT(condition) if (!(condition)) { assert(false); } -#else -#define ASSERT(condition) ((void)0) -#endif - -#define REQUIRE_UI_THREAD() ASSERT(CefCurrentlyOn(TID_UI)); -#define REQUIRE_IO_THREAD() ASSERT(CefCurrentlyOn(TID_IO)); -#define REQUIRE_FILE_THREAD() ASSERT(CefCurrentlyOn(TID_FILE)); - -#endif diff --git a/native/mac/Atom-Info.plist b/native/mac/Atom-Info.plist deleted file mode 100644 index 85825a5c5..000000000 --- a/native/mac/Atom-Info.plist +++ /dev/null @@ -1,52 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleDocumentTypes - - - CFBundleTypeRole - Editor - CFBundleTypeIconFile - file.icns - LSItemContentTypes - - public.folder - public.plain-text - - - - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - atom.icns - CFBundleIdentifier - com.github.atom - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - $VERSION - CFBundleSignature - ???? - CFBundleVersion - $VERSION - LSApplicationCategoryType - public.app-category.developer-tools - NSMainNibFile - MainMenu - NSPrincipalClass - AtomApp - SUFeedURL - https://speakeasy.githubapp.com/apps/27/appcast.xml - SUPublicDSAKeyFile - speakeasy.pem - SUScheduledCheckInterval - 3600 - - diff --git a/native/mac/English.lproj/AtomWindow.xib b/native/mac/English.lproj/AtomWindow.xib deleted file mode 100644 index f0d34a796..000000000 --- a/native/mac/English.lproj/AtomWindow.xib +++ /dev/null @@ -1,353 +0,0 @@ - - - - 1080 - 12C60 - 2843 - 1187.34 - 625.00 - - com.apple.InterfaceBuilder.CocoaPlugin - 2843 - - - IBNSLayoutConstraint - NSCustomObject - NSCustomView - NSSplitView - NSView - NSWindowTemplate - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - AtomWindowController - - - FirstResponder - - - Atom - - - 15 - 2 - {{180, 510}, {700, 800}} - 1613235200 - - UnderlayOpenGLHostingWindow - - - - - 256 - - - - 268 - - - - 256 - {700, 800} - - - - _NS:11 - NSView - - - {700, 800} - - - - _NS:9 - 2 - - - {700, 800} - - - - - {{0, 0}, {2560, 1418}} - {10000000000000, 10000000000000} - 128 - NO - - - - - - - window - - - - 7 - - - - splitView - - - - 27 - - - - webView - - - - 28 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 1 - - - - - - - - 2 - - - - - - 6 - 0 - - 6 - 1 - - 0.0 - - 1000 - - 8 - 29 - 3 - - - - 4 - 0 - - 4 - 1 - - 0.0 - - 1000 - - 8 - 29 - 3 - - - - 5 - 0 - - 5 - 1 - - 0.0 - - 1000 - - 8 - 29 - 3 - - - - 3 - 0 - - 3 - 1 - - 0.0 - - 1000 - - 8 - 29 - 3 - - - - - - 11 - - - - - - - - 12 - - - - - 36 - - - - - 34 - - - - - 46 - - - - - 55 - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - com.apple.InterfaceBuilder.CocoaPlugin - {{357, 418}, {480, 270}} - - GraySplitView - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - 55 - - - - - Atom - CefV8Handler - - IBProjectSource - ./Classes/Atom.h - - - - AtomWindowController - NSWindowController - - NSView - NSSplitView - NSView - - - - devToolsView - NSView - - - splitView - NSSplitView - - - webView - NSView - - - - IBProjectSource - ./Classes/AtomWindowController.h - - - - CefV8Handler - CefBase - - IBProjectSource - ./Classes/CefV8Handler.h - - - - NSLayoutConstraint - NSObject - - IBProjectSource - ./Classes/NSLayoutConstraint.h - - - - UnderlayOpenGLHostingWindow - NSWindow - - IBProjectSource - ./Classes/UnderlayOpenGLHostingWindow.h - - - - - 0 - IBCocoaFramework - YES - 3 - YES - - diff --git a/native/mac/English.lproj/MainMenu.xib b/native/mac/English.lproj/MainMenu.xib deleted file mode 100644 index f8bcc62a8..000000000 --- a/native/mac/English.lproj/MainMenu.xib +++ /dev/null @@ -1,586 +0,0 @@ - - - - 1050 - 12C3103 - 3084 - 1187.34 - 625.00 - - com.apple.InterfaceBuilder.CocoaPlugin - 3084 - - - YES - NSCustomObject - NSMenu - NSMenuItem - NSUserDefaultsController - - - YES - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - ClientApplication - - - FirstResponder - - - AtomApplication - - - AMainMenu - - YES - - - Atom - - 1048576 - 2147483647 - - NSImage - NSMenuCheckmark - - - NSImage - NSMenuMixedState - - submenuAction: - - Atom - - YES - - - Run Specs - s - 1835008 - 2147483647 - - - - - - Run Benchmarks - b - 1835008 - 2147483647 - - - - - - YES - YES - - - 2147483647 - - - - - - Hide Atom - h - 1048576 - 2147483647 - - - - - - Hide Others - H - 524288 - 2147483647 - - - - - - YES - Version Info - - 2147483647 - - - - - - YES - YES - - - 2147483647 - - - - - - Quit - q - 1048576 - 2147483647 - - - - - _NSAppleMenu - - - - - Window - - 2147483647 - - - submenuAction: - - Window - - YES - - - Minimize - m - 1048576 - 2147483647 - - - - - - Zoom - - 2147483647 - - - - - - YES - YES - - - 2147483647 - - - - - - Bring All to Front - - 2147483647 - - - - - _NSWindowsMenu - - - - _NSMainMenu - - - YES - - - - - YES - - - delegate - - - - 440 - - - - runSpecs: - - - - 446 - - - - runBenchmarks: - - - - 447 - - - - _versionMenuItem - - - - 465 - - - - terminate: - - - - 369 - - - - performMiniaturize: - - - - 454 - - - - arrangeInFront: - - - - 455 - - - - performZoom: - - - - 456 - - - - hide: - - - - 462 - - - - hideOtherApplications: - - - - 463 - - - - - YES - - 0 - - YES - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 29 - - - YES - - - - - MainMenu - - - 56 - - - YES - - - - - - 57 - - - YES - - - - - - - - - - - - - 136 - - - 1111 - - - 389 - - - - - 442 - - - YES - - - - - 445 - - - - - 448 - - - YES - - - - - - 449 - - - YES - - - - - - - - - 450 - - - - - 451 - - - - - 452 - - - - - 453 - - - - - 457 - - - - - 458 - - - - - 459 - - - - - 460 - - - - - 464 - - - - - - - YES - - YES - -1.IBPluginDependency - -2.IBPluginDependency - -3.IBPluginDependency - 136.IBPluginDependency - 29.IBPluginDependency - 389.IBPluginDependency - 442.IBPluginDependency - 445.IBPluginDependency - 448.IBPluginDependency - 449.IBPluginDependency - 450.IBPluginDependency - 451.IBPluginDependency - 452.IBPluginDependency - 453.IBPluginDependency - 457.IBPluginDependency - 458.IBPluginDependency - 459.IBPluginDependency - 460.IBPluginDependency - 464.IBPluginDependency - 56.IBPluginDependency - 57.IBPluginDependency - - - YES - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - YES - - - - - - YES - - - - - 465 - - - - YES - - AtomApplication - NSApplication - - YES - - YES - runBenchmarks: - runSpecs: - - - YES - id - id - - - - YES - - YES - runBenchmarks: - runSpecs: - - - YES - - runBenchmarks: - id - - - runSpecs: - id - - - - - _versionMenuItem - NSMenuItem - - - _versionMenuItem - - _versionMenuItem - NSMenuItem - - - - IBProjectSource - ./Classes/AtomApplication.h - - - - - 0 - IBCocoaFramework - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - - YES - 3 - - YES - - YES - NSMenuCheckmark - NSMenuMixedState - - - YES - {11, 11} - {10, 3} - - - - diff --git a/native/mac/atom.icns b/native/mac/atom.icns deleted file mode 100644 index 2713bf8f2..000000000 Binary files a/native/mac/atom.icns and /dev/null differ diff --git a/native/mac/file.icns b/native/mac/file.icns deleted file mode 100644 index 3f65ab726..000000000 Binary files a/native/mac/file.icns and /dev/null differ diff --git a/native/mac/framework-info.plist b/native/mac/framework-info.plist deleted file mode 100644 index fab48f695..000000000 --- a/native/mac/framework-info.plist +++ /dev/null @@ -1,28 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - - CFBundleIdentifier - com.github.atom.framework - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - NSPrincipalClass - - - diff --git a/native/mac/helper-info.plist b/native/mac/helper-info.plist deleted file mode 100644 index f61887e28..000000000 --- a/native/mac/helper-info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleShortVersionString - $VERSION - CFBundleVersion - $VERSION - CFBundleDisplayName - ${EXECUTABLE_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - com.github.atom.helper - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleSignature - ???? - LSFileQuarantineEnabled - - LSMinimumSystemVersion - 10.5.0 - LSUIElement - 1 - NSSupportsAutomaticGraphicsSwitching - - - diff --git a/native/mac/speakeasy.pem b/native/mac/speakeasy.pem deleted file mode 100644 index 791182f81..000000000 --- a/native/mac/speakeasy.pem +++ /dev/null @@ -1,20 +0,0 @@ ------BEGIN PUBLIC KEY----- -MIIDOjCCAi0GByqGSM44BAEwggIgAoIBAQCEh+j0nKWTw7soK6w3uk9PzPGVBksk -wDIaA+d+1CHJY9qhjp7OjAlSOl6nrUlGHzU87DRmBlwYZONAzDZnYpLi7zmPVASg -Xk+AmuqzqahTKtwodJp7R/Aq/lCbB2tXTXOxVo+Jya1BQbfd0wWXJFUlD/xTvrgu -zrtw6VYBvaRu8jCjHAJNZn0CO80igj1ZNxRqmmz1Rkt1tT0KBBfGBTNzXeBmGKHN -bVIKW7zImgfm+UQky+WFei1dqcfWOyfrHIYa3Qn1Nes48SBdrolvfvrChlSpqgEN -wxFW9aoognS1UJTu350AQb2NwOOSQRsR++y3iJp+60nBSDZu7sjNN9etAhUAvqki -JOjBjooRd2odMh7imICHQ3kCggEATwa6W0s2xrolPRpwWZS8ORUNDgEI4eOIvonq -O2qZgwD21zUQOsFjLMbWn0cCtrORr7iM8pFg8Yn8dSccpqs+2cM4uFZAycKXf6w3 -jIvV6M3IPQuUSqVFZtqUVuteGTEuAHZKIrXE05P4aJXHLjqSC9JuaXNRm9q7OW7m -rwsoAFyfkKqbtl5Ch+WZ21CE4J+ByTfVwVU4XLiOtce6NABSDWNJsF9fIoFCZCDc -uumLllDJysD8S6aBNhOjNMHPmeIpZBXT23zHH5du/blcEyBbVF3a2ntgudfJmyln -T178CIEUSSjcbz9JyAhhK7OfNlzKhRiO1c4Y3XaZIniLGjF5DwOCAQUAAoIBABGZ -mfuHBW89ub19iICE//VbB91m2f0nUvHk8vE4vvAK8AdD91GODPJr4DU0kJM6ne8r -ohvZgokgDRkGAEceX/nVoG0RLq9T15Xr2qedWVwAffpU10iV9mYwbhHqUKPtG8cj -GW0cDdSI+0oG6UEyn8aQ5p93YEm5N6lq4rWKpxXb/gkrIla4sJJP8VHOOKmo6l1H -AKVIfofiaNAQShu72WVCCurWaoVTUEliEBhy3WlcjuKXEuoL1lpNxyqkt7mf6w71 -6y2+Nh+XUTiFoTIVhk/CH0z+BQTneWEALvfTFzDae+a42rPAisKlt+Gbe7zopnVA -kcQwM0lLzgwx4T1DV3s= ------END PUBLIC KEY----- \ No newline at end of file diff --git a/native/main.cpp b/native/main.cpp deleted file mode 100644 index 43e9b291d..000000000 --- a/native/main.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include "atom_main.h" - -int main(int argc, char* argv[]) { - return AtomMain(argc, argv); -} diff --git a/native/message_translation.cpp b/native/message_translation.cpp deleted file mode 100644 index 0913279b9..000000000 --- a/native/message_translation.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "message_translation.h" - -// Transfer a V8 value to a List index. -void TranslateListValue(CefRefPtr list, int index, CefRefPtr value) { - if (value->IsArray()) { - CefRefPtr new_list = CefListValue::Create(); - TranslateList(value, new_list); - list->SetList(index, new_list); - } else if (value->IsString()) { - list->SetString(index, value->GetStringValue()); - } else if (value->IsBool()) { - list->SetBool(index, value->GetBoolValue()); - } else if (value->IsInt()) { - list->SetInt(index, value->GetIntValue()); - } else if (value->IsDouble()) { - list->SetDouble(index, value->GetDoubleValue()); - } -} - -// Transfer a V8 array to a List. -void TranslateList(CefRefPtr source, CefRefPtr target) { - assert(source->IsArray()); - - int arg_length = source->GetArrayLength(); - if (arg_length == 0) - return; - - // Start with null types in all spaces. - target->SetSize(arg_length); - - for (int i = 0; i < arg_length; ++i) { - TranslateListValue(target, i, source->GetValue(i)); - } -} - -// Transfer a List value to a V8 array index. -void TranslateListValue(CefRefPtr list, int index, CefRefPtr value) { - CefRefPtr new_value; - - CefValueType type = value->GetType(index); - switch (type) { - case VTYPE_LIST: { - CefRefPtr list = value->GetList(index); - new_value = CefV8Value::CreateArray(list->GetSize()); - TranslateList(list, new_value); - } break; - case VTYPE_BOOL: - new_value = CefV8Value::CreateBool(value->GetBool(index)); - break; - case VTYPE_DOUBLE: - new_value = CefV8Value::CreateDouble(value->GetDouble(index)); - break; - case VTYPE_INT: - new_value = CefV8Value::CreateInt(value->GetInt(index)); - break; - case VTYPE_STRING: - new_value = CefV8Value::CreateString(value->GetString(index)); - break; - default: - break; - } - - if (new_value.get()) { - list->SetValue(index, new_value); - } else { - list->SetValue(index, CefV8Value::CreateNull()); - } -} - -// Transfer a List to a V8 array. -void TranslateList(CefRefPtr source, CefRefPtr target) { - assert(target->IsArray()); - - int arg_length = source->GetSize(); - if (arg_length == 0) - return; - - for (int i = 0; i < arg_length; ++i) { - TranslateListValue(target, i, source); - } -} diff --git a/native/message_translation.h b/native/message_translation.h deleted file mode 100644 index e6caaf332..000000000 --- a/native/message_translation.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef ATOM_CEF_CLIENT_H_ -#define ATOM_CEF_CLIENT_H_ -#pragma once - -#include "include/cef_v8.h" - -// IPC data translation functions: translate a V8 array to a List, and vice versa -void TranslateList(CefRefPtr source, CefRefPtr target); -void TranslateList(CefRefPtr source, CefRefPtr target); - -#endif \ No newline at end of file diff --git a/native/util.h b/native/util.h deleted file mode 100644 index e69de29bb..000000000 diff --git a/native/v8_extensions/atom.h b/native/v8_extensions/atom.h deleted file mode 100644 index 05c2e0825..000000000 --- a/native/v8_extensions/atom.h +++ /dev/null @@ -1,22 +0,0 @@ -#include "include/cef_base.h" -#include "include/cef_v8.h" - -namespace v8_extensions { - class Atom : public CefV8Handler { - public: - Atom(); - void CreateContextBinding(CefRefPtr context); - virtual bool Execute(const CefString& name, - CefRefPtr object, - const CefV8ValueList& arguments, - CefRefPtr& retval, - CefString& exception) OVERRIDE; - - // Provide the reference counting implementation for this class. - IMPLEMENT_REFCOUNTING(Atom); - - private: - Atom(Atom const&); - void operator=(Atom const&); - }; -} diff --git a/native/v8_extensions/atom.mm b/native/v8_extensions/atom.mm deleted file mode 100644 index 0acb51d82..000000000 --- a/native/v8_extensions/atom.mm +++ /dev/null @@ -1,47 +0,0 @@ -#import -#import - -#import "atom.h" -#import "atom_application.h" -#import "message_translation.h" - -namespace v8_extensions { - Atom::Atom() : CefV8Handler() { - } - - void Atom::CreateContextBinding(CefRefPtr context) { - CefRefPtr function = CefV8Value::CreateFunction("sendMessageToBrowserProcess", this); - CefRefPtr atomObject = CefV8Value::CreateObject(NULL); - atomObject->SetValue("sendMessageToBrowserProcess", function, V8_PROPERTY_ATTRIBUTE_NONE); - CefRefPtr global = context->GetGlobal(); - global->SetValue("atom", atomObject, V8_PROPERTY_ATTRIBUTE_NONE); - } - - bool Atom::Execute(const CefString& name, - CefRefPtr object, - const CefV8ValueList& arguments, - CefRefPtr& retval, - CefString& exception) { - @autoreleasepool { - CefRefPtr browser = CefV8Context::GetCurrentContext()->GetBrowser(); - - if (name == "sendMessageToBrowserProcess") { - if (arguments.size() == 0 || !arguments[0]->IsString()) { - exception = "You must supply a message name"; - return false; - } - - CefString name = arguments[0]->GetStringValue(); - CefRefPtr message = CefProcessMessage::Create(name); - - if (arguments.size() > 1 && arguments[1]->IsArray()) { - TranslateList(arguments[1], message->GetArgumentList()); - } - - browser->SendProcessMessage(PID_BROWSER, message); - return true; - } - return false; - } - }; -} diff --git a/native/v8_extensions/atom_linux.cpp b/native/v8_extensions/atom_linux.cpp deleted file mode 100644 index e481379c1..000000000 --- a/native/v8_extensions/atom_linux.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "atom.h" -#include "include/cef_base.h" -#include "include/cef_runnable.h" -#include -#include -#include "io_utils.h" -#include "message_translation.h" - -using namespace std; - -namespace v8_extensions { - -Atom::Atom() : - CefV8Handler() { - string realFilePath = io_utils_real_app_path("/native/v8_extensions/atom.js"); - if (!realFilePath.empty()) { - string extensionCode; - if (io_utils_read(realFilePath, &extensionCode) > 0) - CefRegisterExtension("v8/atom", extensionCode, this); - } -} - -bool Atom::Execute(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - CefRefPtr browser = - CefV8Context::GetCurrentContext()->GetBrowser(); - - if (name == "sendMessageToBrowserProcess") { - if (arguments.size() == 0 || !arguments[0]->IsString()) { - exception = "You must supply a message name"; - return false; - } - - CefString name = arguments[0]->GetStringValue(); - CefRefPtr message = CefProcessMessage::Create(name); - - if (arguments.size() > 1 && arguments[1]->IsArray()) { - TranslateList(arguments[1], message->GetArgumentList()); - } - - browser->SendProcessMessage(PID_BROWSER, message); - return true; - } - return false; -} -} diff --git a/native/v8_extensions/native.h b/native/v8_extensions/native.h deleted file mode 100644 index 24064429f..000000000 --- a/native/v8_extensions/native.h +++ /dev/null @@ -1,23 +0,0 @@ -#include "include/cef_base.h" -#include "include/cef_v8.h" - -namespace v8_extensions { - - class Native : public CefV8Handler { - public: - Native(); - void CreateContextBinding(CefRefPtr context); - virtual bool Execute(const CefString& name, - CefRefPtr object, - const CefV8ValueList& arguments, - CefRefPtr& retval, - CefString& exception) OVERRIDE; - - // Provide the reference counting implementation for this class. - IMPLEMENT_REFCOUNTING(Native); - - private: - Native(Native const&); - void operator=(Native const&); - }; -} diff --git a/native/v8_extensions/native.mm b/native/v8_extensions/native.mm deleted file mode 100644 index 2cab4765f..000000000 --- a/native/v8_extensions/native.mm +++ /dev/null @@ -1,129 +0,0 @@ -#import -#import - -#import "atom_application.h" -#import "native.h" -#import "include/cef_base.h" - -#import - -static std::string windowState = ""; -static NSLock *windowStateLock = [[NSLock alloc] init]; - -namespace v8_extensions { - using namespace std; - - NSString *stringFromCefV8Value(const CefRefPtr& value); - void throwException(const CefRefPtr& global, CefRefPtr exception, NSString *message); - - Native::Native() : CefV8Handler() { - } - - void Native::CreateContextBinding(CefRefPtr context) { - const char* methodNames[] = { - "writeToPasteboard", "readFromPasteboard", "quit", "moveToTrash", - "reload", "setWindowState", "getWindowState", "beep", "crash" - }; - - CefRefPtr nativeObject = CefV8Value::CreateObject(NULL); - int arrayLength = sizeof(methodNames) / sizeof(const char *); - for (int i = 0; i < arrayLength; i++) { - const char *functionName = methodNames[i]; - CefRefPtr function = CefV8Value::CreateFunction(functionName, this); - nativeObject->SetValue(functionName, function, V8_PROPERTY_ATTRIBUTE_NONE); - } - - CefRefPtr global = context->GetGlobal(); - global->SetValue("$native", nativeObject, V8_PROPERTY_ATTRIBUTE_NONE); - } - - bool Native::Execute(const CefString& name, - CefRefPtr object, - const CefV8ValueList& arguments, - CefRefPtr& retval, - CefString& exception) { - @autoreleasepool { - if (name == "writeToPasteboard") { - NSString *text = stringFromCefV8Value(arguments[0]); - - NSPasteboard *pb = [NSPasteboard generalPasteboard]; - [pb declareTypes:[NSArray arrayWithObjects:NSStringPboardType, nil] owner:nil]; - [pb setString:text forType:NSStringPboardType]; - - return true; - } - else if (name == "readFromPasteboard") { - NSPasteboard *pb = [NSPasteboard generalPasteboard]; - NSArray *results = [pb readObjectsForClasses:[NSArray arrayWithObjects:[NSString class], nil] options:nil]; - if (results) { - retval = CefV8Value::CreateString([[results objectAtIndex:0] UTF8String]); - } - - return true; - } - else if (name == "quit") { - [NSApp terminate:nil]; - return true; - } - else if (name == "moveToTrash") { - NSString *sourcePath = stringFromCefV8Value(arguments[0]); - bool success = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation - source:[sourcePath stringByDeletingLastPathComponent] - destination:@"" - files:[NSArray arrayWithObject:[sourcePath lastPathComponent]] - tag:nil]; - - if (!success) { - string exception = "Can not move "; - exception += [sourcePath UTF8String]; - exception += " to trash."; - } - - return true; - } - else if (name == "reload") { - CefV8Context::GetCurrentContext()->GetBrowser()->ReloadIgnoreCache(); - } - - else if (name == "setWindowState") { - [windowStateLock lock]; - windowState = arguments[0]->GetStringValue().ToString(); - [windowStateLock unlock]; - return true; - } - - else if (name == "getWindowState") { - [windowStateLock lock]; - retval = CefV8Value::CreateString(windowState); - [windowStateLock unlock]; - return true; - } - - else if (name == "beep") { - NSBeep(); - } - - else if (name == "crash") { - __builtin_trap(); - } - - return false; - } - }; - - NSString *stringFromCefV8Value(const CefRefPtr& value) { - string cc_value = value->GetStringValue().ToString(); - return [NSString stringWithUTF8String:cc_value.c_str()]; - } - - void throwException(const CefRefPtr& global, CefRefPtr exception, NSString *message) { - CefV8ValueList arguments; - - message = [message stringByAppendingFormat:@"\n%s", exception->GetMessage().ToString().c_str()]; - arguments.push_back(CefV8Value::CreateString(string([message UTF8String], [message lengthOfBytesUsingEncoding:NSUTF8StringEncoding]))); - - CefRefPtr console = global->GetValue("console"); - console->GetValue("error")->ExecuteFunction(console, arguments); - } - -} // namespace v8_extensions diff --git a/native/v8_extensions/native_linux.cpp b/native/v8_extensions/native_linux.cpp deleted file mode 100644 index 2f309b5cd..000000000 --- a/native/v8_extensions/native_linux.cpp +++ /dev/null @@ -1,526 +0,0 @@ -#include "native_linux.h" -#include "include/cef_base.h" -#include "include/cef_runnable.h" -#include "io_utils.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define BUFFER_SIZE 8192 - -using namespace std; - -namespace v8_extensions { - -void *NotifyWatchersCallback(void* pointer) { - NativeHandler* handler = (NativeHandler*) pointer; - handler->NotifyWatchers(); - return NULL; -} - -void ExecuteWatchCallback(NotifyContext notifyContext) { - map callbacks = - notifyContext.callbacks[notifyContext.descriptor]; - map::iterator callback; - for (callback = callbacks.begin(); callback != callbacks.end(); callback++) { - CallbackContext callbackContext = callback->second; - CefRefPtr context = callbackContext.context; - CefRefPtr function = callbackContext.function; - - context->Enter(); - - CefV8ValueList args; - CefRefPtr retval; - CefRefPtr e; - args.push_back(callbackContext.eventTypes); - function->ExecuteFunction(retval, args); - - context->Exit(); - } -} - -NativeHandler::NativeHandler() : - CefV8Handler() { - string nativePath = io_utils_real_app_path("/native/v8_extensions/native.js"); - if (!nativePath.empty()) { - string extensionCode; - if (io_utils_read(nativePath, &extensionCode) > 0) - CefRegisterExtension("v8/native", extensionCode, this); - } - - notifyFd = inotify_init(); - if (notifyFd != -1) - g_thread_create_full(NotifyWatchersCallback, this, 0, true, false, - G_THREAD_PRIORITY_NORMAL, NULL); -} - -void NativeHandler::NotifyWatchers() { - char buffer[BUFFER_SIZE]; - ssize_t bufferRead; - size_t eventSize; - ssize_t bufferIndex; - struct inotify_event *event; - bufferRead = read(notifyFd, buffer, BUFFER_SIZE); - while (bufferRead > 0) { - bufferIndex = 0; - while (bufferIndex < bufferRead) { - event = (struct inotify_event *) &buffer[bufferIndex]; - eventSize = offsetof (struct inotify_event, name) + event->len; - - NotifyContext context; - context.descriptor = event->wd; - context.callbacks = pathCallbacks; - CefPostTask(TID_UI, - NewCefRunnableFunction(&ExecuteWatchCallback, context)); - - bufferIndex += eventSize; - } - bufferRead = read(notifyFd, buffer, BUFFER_SIZE); - } -} - -void NativeHandler::Exists(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - struct stat statInfo; - int result = stat(path.c_str(), &statInfo); - retval = CefV8Value::CreateBool(result == 0); -} - -void NativeHandler::Read(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - string value; - io_utils_read(path, &value); - retval = CefV8Value::CreateString(value); -} - -void NativeHandler::Absolute(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - string relativePath; - if (path[0] != '~') - relativePath.append(path); - else { - relativePath.append(getenv("HOME")); - relativePath.append(path, 1, path.length() - 1); - } - - vector < string > segments; - char allSegments[relativePath.length() + 1]; - strcpy(allSegments, relativePath.c_str()); - const char* segment; - for (segment = strtok(allSegments, "/"); segment; - segment = strtok(NULL, "/")) { - if (strcmp(segment, ".") == 0) - continue; - if (strcmp(segment, "..") == 0) { - if (segments.empty()) { - retval = CefV8Value::CreateString("/"); - return; - } - segments.pop_back(); - } else - segments.push_back(segment); - } - - string absolutePath; - unsigned int i; - for (i = 0; i < segments.size(); i++) { - absolutePath.append("/"); - absolutePath.append(segments.at(i)); - } - retval = CefV8Value::CreateString(absolutePath); -} - -void ListDirectory(string path, vector* paths, bool recursive) { - dirent **children; - int childrenCount = scandir(path.c_str(), &children, 0, alphasort); - struct stat statInfo; - int result; - - for (int i = 0; i < childrenCount; i++) { - if (strcmp(children[i]->d_name, ".") == 0 - || strcmp(children[i]->d_name, "..") == 0) { - free(children[i]); - continue; - } - string entryPath(path + "/" + children[i]->d_name); - paths->push_back(entryPath); - if (recursive) { - result = stat(entryPath.c_str(), &statInfo); - if (result == 0 && S_ISDIR(statInfo.st_mode)) - ListDirectory(entryPath, paths, recursive); - } - free(children[i]); - } - free(children); -} - -void DeleteContents(string path) { - dirent **children; - const char* dirPath = path.c_str(); - int childrenCount = scandir(dirPath, &children, 0, alphasort); - struct stat statInfo; - - for (int i = 0; i < childrenCount; i++) { - if (strcmp(children[i]->d_name, ".") == 0 - || strcmp(children[i]->d_name, "..") == 0) { - free(children[i]); - continue; - } - - string entryPath(path + "/" + children[i]->d_name); - if (stat(entryPath.c_str(), &statInfo) != 0) { - free(children[i]); - continue; - } - - if (S_ISDIR(statInfo.st_mode)) - DeleteContents(entryPath); - else if (S_ISREG(statInfo.st_mode)) - remove(entryPath.c_str()); - } - free(children); - rmdir(dirPath); -} - -void NativeHandler::List(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - bool recursive = arguments[1]->GetBoolValue(); - vector < string > *paths = new vector; - ListDirectory(path, paths, recursive); - - retval = CefV8Value::CreateArray(paths->size()); - for (uint i = 0; i < paths->size(); i++) - retval->SetValue(i, CefV8Value::CreateString(paths->at(i))); - free (paths); -} - -void NativeHandler::IsFile(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - struct stat statInfo; - int result = stat(path.c_str(), &statInfo); - retval = CefV8Value::CreateBool(result == 0 && S_ISREG(statInfo.st_mode)); -} - -void NativeHandler::IsDirectory(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - struct stat statInfo; - int result = stat(path.c_str(), &statInfo); - retval = CefV8Value::CreateBool(result == 0 && S_ISDIR(statInfo.st_mode)); -} - -void NativeHandler::OpenDialog(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - GtkWidget *dialog; - dialog = gtk_file_chooser_dialog_new("Open File", GTK_WINDOW(window), - GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); - if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { - char *filename; - filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - retval = CefV8Value::CreateString(filename); - g_free(filename); - } else - retval = CefV8Value::CreateNull(); - - gtk_widget_destroy(dialog); -} - -void NativeHandler::Open(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - path = arguments[0]->GetStringValue().ToString(); - CefV8Context::GetCurrentContext()->GetBrowser()->Reload(); -} - -void NativeHandler::Write(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - string content = arguments[1]->GetStringValue().ToString(); - - ofstream file; - file.open(path.c_str()); - file << content; - file.close(); -} - -void NativeHandler::WriteToPasteboard(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string content = arguments[0]->GetStringValue().ToString(); - GtkClipboard* clipboard = gtk_clipboard_get_for_display( - gdk_display_get_default(), GDK_NONE); - gtk_clipboard_set_text(clipboard, content.c_str(), content.length()); - gtk_clipboard_store(clipboard); -} - -void NativeHandler::ReadFromPasteboard(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - GtkClipboard* clipboard = gtk_clipboard_get_for_display( - gdk_display_get_default(), GDK_NONE); - char* content = gtk_clipboard_wait_for_text(clipboard); - retval = CefV8Value::CreateString(content); -} - -void NativeHandler::AsyncList(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - bool recursive = arguments[1]->GetBoolValue(); - vector < string > *paths = new vector; - ListDirectory(path, paths, recursive); - - CefRefPtr callbackPaths = CefV8Value::CreateArray(paths->size()); - for (uint i = 0; i < paths->size(); i++) - callbackPaths->SetValue(i, CefV8Value::CreateString(paths->at(i))); - CefV8ValueList args; - args.push_back(callbackPaths); - CefRefPtr e; - arguments[2]->ExecuteFunction(retval, args); - if (e) - exception = e->GetMessage(); - free (paths); -} - -void NativeHandler::MakeDirectory(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string content = arguments[0]->GetStringValue().ToString(); - mkdir(content.c_str(), S_IRWXU); -} - -void NativeHandler::Move(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string from = arguments[0]->GetStringValue().ToString(); - string to = arguments[1]->GetStringValue().ToString(); - rename(from.c_str(), to.c_str()); -} - -void NativeHandler::Remove(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string pathArgument = arguments[0]->GetStringValue().ToString(); - const char* path = pathArgument.c_str(); - - struct stat statInfo; - if (stat(path, &statInfo) != 0) - return; - - if (S_ISREG(statInfo.st_mode)) - remove(path); - else if (S_ISDIR(statInfo.st_mode)) - DeleteContents(pathArgument); -} - -void NativeHandler::Alert(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - CefRefPtr buttonNamesAndCallbacks; - if (arguments.size() < 3) - buttonNamesAndCallbacks = CefV8Value::CreateArray(0); - else - buttonNamesAndCallbacks = arguments[2]; - - GtkWidget *dialog; - dialog = gtk_dialog_new_with_buttons("atom", GTK_WINDOW(window), - GTK_DIALOG_DESTROY_WITH_PARENT, NULL); - for (int i = 0; i < buttonNamesAndCallbacks->GetArrayLength(); i++) { - string title = - buttonNamesAndCallbacks->GetValue(i)->GetValue(0)->GetStringValue().ToString(); - gtk_dialog_add_button(GTK_DIALOG(dialog), title.c_str(), i); - } - gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); - - string dialogMessage(arguments[0]->GetStringValue().ToString()); - dialogMessage.append("\n\n"); - dialogMessage.append(arguments[1]->GetStringValue().ToString()); - GtkWidget *label; - label = gtk_label_new(dialogMessage.c_str()); - - GtkWidget *contentArea; - contentArea = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); - gtk_container_add(GTK_CONTAINER(contentArea), label); - - gtk_widget_show_all(dialog); - int result = gtk_dialog_run(GTK_DIALOG(dialog)); - if (result >= 0) { - CefRefPtr callback = - buttonNamesAndCallbacks->GetValue(result)->GetValue(1); - CefV8ValueList args; - CefRefPtr e; - callback->ExecuteFunction(retval, args); - if (e) - exception = e->GetMessage(); - } - gtk_widget_destroy(dialog); -} - -void NativeHandler::WatchPath(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - int descriptor = inotify_add_watch(notifyFd, path.c_str(), - IN_ALL_EVENTS & ~(IN_CLOSE | IN_OPEN | IN_ACCESS)); - if (descriptor == -1) - return; - - CallbackContext callbackContext; - callbackContext.context = CefV8Context::GetCurrentContext(); - callbackContext.function = arguments[1]; - CefRefPtr eventTypes = CefV8Value::CreateObject(NULL); - eventTypes->SetValue("modified", CefV8Value::CreateBool(true), - V8_PROPERTY_ATTRIBUTE_NONE); - callbackContext.eventTypes = eventTypes; - - stringstream idStream; - idStream << "counter"; - idStream << idCounter; - string id = idStream.str(); - idCounter++; - pathDescriptors[path] = descriptor; - pathCallbacks[descriptor][id] = callbackContext; - retval = CefV8Value::CreateString(id); -} - -void NativeHandler::UnwatchPath(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - - int descriptor = pathDescriptors[path]; - if (descriptor == -1) - return; - - map callbacks = pathCallbacks[descriptor]; - string id = arguments[1]->GetStringValue().ToString(); - callbacks.erase(id); - if (callbacks.empty()) - inotify_rm_watch(notifyFd, descriptor); -} - -void NativeHandler::Digest(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - - int fd = open(path.c_str(), O_RDONLY); - if (fd < 0) - return; - - const EVP_MD *md; - OpenSSL_add_all_digests(); - md = EVP_get_digestbyname("md5"); - if (!md) - return; - - EVP_MD_CTX context; - EVP_MD_CTX_init(&context); - EVP_DigestInit_ex(&context, md, NULL); - - char buffer[BUFFER_SIZE]; - int r; - while ((r = read(fd, buffer, sizeof buffer)) > 0) - EVP_DigestUpdate(&context, buffer, r); - close(fd); - - unsigned char value[EVP_MAX_MD_SIZE]; - unsigned int length; - EVP_DigestFinal_ex(&context, value, &length); - EVP_MD_CTX_cleanup(&context); - - stringstream md5; - char hex[3]; - for (uint i = 0; i < length; i++) { - sprintf(hex, "%02x", value[i]); - md5 << hex; - } - retval = CefV8Value::CreateString(md5.str()); -} - -void NativeHandler::LastModified(const CefString& name, - CefRefPtr object, const CefV8ValueList& arguments, - CefRefPtr& retval, CefString& exception) { - string path = arguments[0]->GetStringValue().ToString(); - struct stat statInfo; - if (stat(path.c_str(), &statInfo) == 0) { - CefTime time(statInfo.st_mtime); - retval = CefV8Value::CreateDate(time); - } -} - -bool NativeHandler::Execute(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception) { - if (name == "exists") - Exists(name, object, arguments, retval, exception); - else if (name == "read") - Read(name, object, arguments, retval, exception); - else if (name == "absolute") - Absolute(name, object, arguments, retval, exception); - else if (name == "list") - List(name, object, arguments, retval, exception); - else if (name == "isFile") - IsFile(name, object, arguments, retval, exception); - else if (name == "isDirectory") - IsDirectory(name, object, arguments, retval, exception); - else if (name == "openDialog") - OpenDialog(name, object, arguments, retval, exception); - else if (name == "open") - Open(name, object, arguments, retval, exception); - else if (name == "write") - Write(name, object, arguments, retval, exception); - else if (name == "writeToPasteboard") - WriteToPasteboard(name, object, arguments, retval, exception); - else if (name == "readFromPasteboard") - ReadFromPasteboard(name, object, arguments, retval, exception); - else if (name == "asyncList") - AsyncList(name, object, arguments, retval, exception); - else if (name == "makeDirectory") - MakeDirectory(name, object, arguments, retval, exception); - else if (name == "move") - Move(name, object, arguments, retval, exception); - else if (name == "remove") - Remove(name, object, arguments, retval, exception); - else if (name == "alert") - Alert(name, object, arguments, retval, exception); - else if (name == "watchPath") - WatchPath(name, object, arguments, retval, exception); - else if (name == "unwatchPath") - UnwatchPath(name, object, arguments, retval, exception); - else if (name == "md5ForPath") - Digest(name, object, arguments, retval, exception); - else if (name == "lastModified") - LastModified(name, object, arguments, retval, exception); - else - cout << "Unhandled -> " + name.ToString() << " : " - << arguments[0]->GetStringValue().ToString() << endl; - return true; -} - -} diff --git a/native/v8_extensions/native_linux.h b/native/v8_extensions/native_linux.h deleted file mode 100644 index 442bc40ef..000000000 --- a/native/v8_extensions/native_linux.h +++ /dev/null @@ -1,131 +0,0 @@ -#ifndef NATIVE_LINUX_H_ -#define NATIVE_LINUX_H_ - -#include "include/cef_base.h" -#include "include/cef_v8.h" -#include -#include - -namespace v8_extensions { - -struct CallbackContext { - CefRefPtr context; - CefRefPtr function; - CefRefPtr eventTypes; -}; - -struct NotifyContext { - int descriptor; - std::map > callbacks; -}; - -class NativeHandler: public CefV8Handler { -public: - NativeHandler(); - - GtkWidget* window; - - std::string path; - - virtual bool Execute(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void NotifyWatchers(); - -IMPLEMENT_REFCOUNTING(NativeHandler) - ; - -private: - - int notifyFd; - - unsigned long int idCounter; - - std::map > pathCallbacks; - - std::map pathDescriptors; - - void Exists(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Read(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Absolute(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void List(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void AsyncList(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void IsFile(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void IsDirectory(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void OpenDialog(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Open(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Write(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void WriteToPasteboard(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void ReadFromPasteboard(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void MakeDirectory(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Move(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Remove(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Alert(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void WatchPath(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void UnwatchPath(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void Digest(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); - - void LastModified(const CefString& name, CefRefPtr object, - const CefV8ValueList& arguments, CefRefPtr& retval, - CefString& exception); -}; - -} -#endif diff --git a/script/constructicon/prebuild b/script/constructicon/prebuild deleted file mode 100755 index 9e3c81ae6..000000000 --- a/script/constructicon/prebuild +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -set -ex -cd "$(dirname "$0")/../.." -export PATH="/usr/local/Cellar/node/0.8.21/bin:/usr/local/bin:${PATH}" -export VERSION=$VERSION -rake clean clean-atom-shell-cache -rake setup-codesigning create-xcode-project