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

@ -6,7 +6,7 @@
#include <memory>
namespace atom {
namespace electron {
EventDisabler::EventDisabler() {}
@ -24,4 +24,4 @@ ui::EventRewriteStatus EventDisabler::NextDispatchEvent(
return ui::EVENT_REWRITE_CONTINUE;
}
} // namespace atom
} // namespace electron

View file

@ -10,7 +10,7 @@
#include "base/macros.h"
#include "ui/events/event_rewriter.h"
namespace atom {
namespace electron {
class EventDisabler : public ui::EventRewriter {
public:
@ -29,6 +29,6 @@ class EventDisabler : public ui::EventRewriter {
DISALLOW_COPY_AND_ASSIGN(EventDisabler);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_X_EVENT_DISABLER_H_

View file

@ -8,7 +8,7 @@
#include "ui/gfx/x/x11.h"
#include "ui/gfx/x/x11_atom_cache.h"
namespace atom {
namespace electron {
WindowStateWatcher::WindowStateWatcher(NativeWindowViews* window)
: window_(window), widget_(window->GetAcceleratedWidget()) {
@ -61,4 +61,4 @@ bool WindowStateWatcher::IsWindowStateEvent(const ui::PlatformEvent& event) {
event->type == PropertyNotify && event->xproperty.window == widget_);
}
} // namespace atom
} // namespace electron

View file

@ -9,7 +9,7 @@
#include "shell/browser/native_window_views.h"
namespace atom {
namespace electron {
class WindowStateWatcher : public ui::PlatformEventObserver {
public:
@ -33,6 +33,6 @@ class WindowStateWatcher : public ui::PlatformEventObserver {
DISALLOW_COPY_AND_ASSIGN(WindowStateWatcher);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_X_WINDOW_STATE_WATCHER_H_

View file

@ -15,7 +15,7 @@
#include "dbus/object_proxy.h"
#include "ui/base/x/x11_util.h"
namespace atom {
namespace electron {
::Atom GetAtom(const char* name) {
return XInternAtom(gfx::GetXDisplay(), name, false);
@ -109,4 +109,4 @@ void MoveWindowToForeground(::Window xwindow) {
XFlush(xdisplay);
}
} // namespace atom
} // namespace electron

View file

@ -9,7 +9,7 @@
#include "ui/gfx/x/x11.h"
namespace atom {
namespace electron {
::Atom GetAtom(const char* name);
@ -26,6 +26,6 @@ bool ShouldUseGlobalMenuBar();
// Bring the given window to the front and give it the focus.
void MoveWindowToForeground(::Window xwindow);
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_X_X_WINDOW_UTILS_H_