refactor: rename the atom namespace to electron
This commit is contained in:
parent
8c4496a9c9
commit
34c4c8d508
531 changed files with 1456 additions and 1428 deletions
|
@ -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_
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
@implementation NotificationCenterDelegate
|
||||
|
||||
- (instancetype)initWithPresenter:(atom::NotificationPresenterMac*)presenter {
|
||||
- (instancetype)initWithPresenter:
|
||||
(electron::NotificationPresenterMac*)presenter {
|
||||
self = [super init];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue