mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Rename CefClient to Atom
This commit is contained in:
8
atom.gyp
8
atom.gyp
@@ -44,6 +44,10 @@
|
||||
'sources': [
|
||||
'<@(includes_common)',
|
||||
'<@(includes_wrapper)',
|
||||
'atom/main_mac.mm',
|
||||
'atom/atom_mac.h',
|
||||
'atom/atom_mac.mm',
|
||||
'atom/client_handler_mac.mm',
|
||||
'atom/client_handler.cpp',
|
||||
'atom/client_handler.h',
|
||||
'atom/util.h',
|
||||
@@ -168,10 +172,6 @@
|
||||
],
|
||||
},
|
||||
'sources': [
|
||||
'atom/main_mac.mm',
|
||||
'atom/cefclient_mac.h',
|
||||
'atom/cefclient_mac.mm',
|
||||
'atom/client_handler_mac.mm',
|
||||
'cef/include/cef_application_mac.h',
|
||||
'cef/include/internal/cef_mac.h',
|
||||
'cef/include/internal/cef_types_mac.h',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "include/cef_app.h"
|
||||
|
||||
@interface ClientApplication : NSApplication <CefAppProtocol, NSWindowDelegate, NSApplicationDelegate> {
|
||||
@interface Atom : NSApplication <CefAppProtocol, NSWindowDelegate, NSApplicationDelegate> {
|
||||
@private
|
||||
BOOL handlingSendEvent_;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
#import "include/cef_application_mac.h"
|
||||
#import "atom/client_handler.h"
|
||||
#import "atom/cefclient_mac.h"
|
||||
#import "atom/atom_mac.h"
|
||||
|
||||
// The global ClientHandler reference.
|
||||
extern CefRefPtr<ClientHandler> g_handler;
|
||||
|
||||
@implementation ClientApplication
|
||||
@implementation Atom
|
||||
|
||||
+ (id)sharedApplication {
|
||||
id atomApp = [super sharedApplication];
|
||||
@@ -1,3 +0,0 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
NSHumanReadableCopyright = "© Chromium Embedded Framework Authors, 2010";
|
||||
@@ -23,6 +23,6 @@
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>ClientApplicatoin</string>
|
||||
<string>AtomApp</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "include/cef_application_mac.h"
|
||||
#import "atom/cefclient_mac.h"
|
||||
#import "atom/atom_mac.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
@autoreleasepool {
|
||||
@@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||
ClientApplication *application = (ClientApplication *)[ClientApplication sharedApplication];
|
||||
Atom *application = (Atom *)[Atom sharedApplication];
|
||||
|
||||
NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"];
|
||||
NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle mainBundle]];
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user