Rename CefClient to Atom

This commit is contained in:
Corey Johnson
2012-08-21 13:48:15 -07:00
parent cc7b8e443d
commit c7a4a22fb5
10 changed files with 10 additions and 13 deletions

View File

@@ -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',

View File

@@ -1,6 +1,6 @@
#include "include/cef_app.h"
@interface ClientApplication : NSApplication <CefAppProtocol, NSWindowDelegate, NSApplicationDelegate> {
@interface Atom : NSApplication <CefAppProtocol, NSWindowDelegate, NSApplicationDelegate> {
@private
BOOL handlingSendEvent_;
}

View File

@@ -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];

View File

@@ -1,3 +0,0 @@
/* Localized versions of Info.plist keys */
NSHumanReadableCopyright = "© Chromium Embedded Framework Authors, 2010";

View File

@@ -23,6 +23,6 @@
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>ClientApplicatoin</string>
<string>AtomApp</string>
</dict>
</plist>

View File

@@ -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