refactor: rename the atom namespace to electron

This commit is contained in:
Samuel Attard 2019-06-19 14:23:04 -07:00 committed by Samuel Attard
parent 8c4496a9c9
commit 34c4c8d508
531 changed files with 1456 additions and 1428 deletions

View file

@ -14,7 +14,7 @@
#include "base/mac/scoped_nsobject.h"
#include "shell/browser/notifications/notification.h"
namespace atom {
namespace electron {
class CocoaNotification : public Notification {
public:
@ -44,6 +44,6 @@ class CocoaNotification : public Notification {
DISALLOW_COPY_AND_ASSIGN(CocoaNotification);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_MAC_COCOA_NOTIFICATION_H_

View file

@ -14,7 +14,7 @@
#include "shell/browser/notifications/notification_presenter.h"
#include "skia/ext/skia_utils_mac.h"
namespace atom {
namespace electron {
CocoaNotification::CocoaNotification(NotificationDelegate* delegate,
NotificationPresenter* presenter)
@ -170,4 +170,4 @@ void CocoaNotification::LogAction(const char* action) {
}
}
} // namespace atom
} // namespace electron

View file

@ -7,16 +7,17 @@
#import <Foundation/Foundation.h>
namespace atom {
namespace electron {
class NotificationPresenterMac;
}
@interface NotificationCenterDelegate
: NSObject <NSUserNotificationCenterDelegate> {
@private
atom::NotificationPresenterMac* presenter_;
electron::NotificationPresenterMac* presenter_;
}
- (instancetype)initWithPresenter:(atom::NotificationPresenterMac*)presenter;
- (instancetype)initWithPresenter:
(electron::NotificationPresenterMac*)presenter;
@end
#endif // SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_CENTER_DELEGATE_H_

View file

@ -11,7 +11,8 @@
@implementation NotificationCenterDelegate
- (instancetype)initWithPresenter:(atom::NotificationPresenterMac*)presenter {
- (instancetype)initWithPresenter:
(electron::NotificationPresenterMac*)presenter {
self = [super init];
if (!self)
return nil;

View file

@ -10,7 +10,7 @@
#include "shell/browser/notifications/mac/notification_center_delegate.h"
#include "shell/browser/notifications/notification_presenter.h"
namespace atom {
namespace electron {
class CocoaNotification;
@ -31,6 +31,6 @@ class NotificationPresenterMac : public NotificationPresenter {
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterMac);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_

View file

@ -7,7 +7,7 @@
#include "shell/browser/notifications/mac/cocoa_notification.h"
#include "shell/browser/notifications/mac/notification_center_delegate.h"
namespace atom {
namespace electron {
// static
NotificationPresenter* NotificationPresenter::Create() {
@ -47,4 +47,4 @@ Notification* NotificationPresenterMac::CreateNotificationObject(
return new CocoaNotification(delegate, this);
}
} // namespace atom
} // namespace electron