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

@ -7,7 +7,7 @@
#include <Windows.h>
namespace atom {
namespace electron {
struct NotificationData {
DesktopNotificationController* controller = nullptr;
@ -63,6 +63,6 @@ struct ScreenMetrics {
}
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_WIN_WIN32_DESKTOP_NOTIFICATIONS_COMMON_H_

View file

@ -23,7 +23,7 @@
using std::make_shared;
using std::shared_ptr;
namespace atom {
namespace electron {
HBITMAP CopyBitmap(HBITMAP bitmap) {
HBITMAP ret = NULL;
@ -436,4 +436,4 @@ DesktopNotificationController::NotificationLink::~NotificationLink() {
p->controller = nullptr;
}
} // namespace atom
} // namespace electron

View file

@ -11,7 +11,7 @@
#include <string>
#include <vector>
namespace atom {
namespace electron {
struct NotificationData;
@ -109,6 +109,6 @@ class DesktopNotificationController::Notification {
friend class DesktopNotificationController;
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_WIN_WIN32_DESKTOP_NOTIFICATIONS_DESKTOP_NOTIFICATION_CONTROLLER_H_

View file

@ -26,7 +26,7 @@
using std::min;
using std::shared_ptr;
namespace atom {
namespace electron {
static COLORREF GetAccentColor() {
bool success = false;
@ -862,4 +862,4 @@ float DesktopNotificationController::Toast::AnimateStackCollapse() {
return pos;
}
} // namespace atom
} // namespace electron

View file

@ -11,7 +11,7 @@
#include "base/logging.h"
namespace atom {
namespace electron {
class DesktopNotificationController::Toast {
public:
@ -102,6 +102,6 @@ class DesktopNotificationController::Toast {
float ease_in_pos_ = 0, ease_out_pos_ = 0, stack_collapse_pos_ = 0;
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_WIN_WIN32_DESKTOP_NOTIFICATIONS_TOAST_H_

View file

@ -8,7 +8,7 @@
#pragma comment(lib, "uiautomationcore.lib")
namespace atom {
namespace electron {
DesktopNotificationController::Toast::UIAutomationInterface::
UIAutomationInterface(Toast* toast)
@ -251,4 +251,4 @@ HRESULT DesktopNotificationController::Toast::UIAutomationInterface::
return S_OK;
}
} // namespace atom
} // namespace electron

View file

@ -11,7 +11,7 @@
#include <UIAutomationCore.h>
namespace atom {
namespace electron {
class DesktopNotificationController::Toast::UIAutomationInterface
: public IRawElementProviderSimple,
@ -79,6 +79,6 @@ class DesktopNotificationController::Toast::UIAutomationInterface
std::wstring text_;
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_NOTIFICATIONS_WIN_WIN32_DESKTOP_NOTIFICATIONS_TOAST_UIA_H_