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

@ -8,7 +8,7 @@
#include "ui/views/corewm/tooltip_controller.h"
#include "ui/wm/public/tooltip_client.h"
namespace atom {
namespace electron {
AtomDesktopNativeWidgetAura::AtomDesktopNativeWidgetAura(
NativeWindowViews* native_window_view)
@ -56,4 +56,4 @@ void AtomDesktopNativeWidgetAura::OnWindowActivated(
}
}
} // namespace atom
} // namespace electron

View file

@ -12,7 +12,7 @@ namespace views {
class DesktopWindowTreeHost;
}
namespace atom {
namespace electron {
class AtomDesktopNativeWidgetAura : public views::DesktopNativeWidgetAura {
public:
@ -37,6 +37,6 @@ class AtomDesktopNativeWidgetAura : public views::DesktopNativeWidgetAura {
DISALLOW_COPY_AND_ASSIGN(AtomDesktopNativeWidgetAura);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_ATOM_DESKTOP_NATIVE_WIDGET_AURA_H_

View file

@ -4,7 +4,7 @@
#include "shell/browser/ui/win/atom_desktop_window_tree_host_win.h"
namespace atom {
namespace electron {
AtomDesktopWindowTreeHostWin::AtomDesktopWindowTreeHostWin(
NativeWindowViews* native_window_view,
@ -29,4 +29,4 @@ bool AtomDesktopWindowTreeHostWin::HasNativeFrame() const {
return true;
}
} // namespace atom
} // namespace electron

View file

@ -10,7 +10,7 @@
#include "shell/browser/native_window_views.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
namespace atom {
namespace electron {
class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
public:
@ -32,6 +32,6 @@ class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
DISALLOW_COPY_AND_ASSIGN(AtomDesktopWindowTreeHostWin);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_ATOM_DESKTOP_WINDOW_TREE_HOST_WIN_H_

View file

@ -12,9 +12,9 @@
namespace {
using atom::JumpListCategory;
using atom::JumpListItem;
using atom::JumpListResult;
using electron::JumpListCategory;
using electron::JumpListItem;
using electron::JumpListResult;
bool AppendTask(const JumpListItem& item, IObjectCollection* collection) {
DCHECK(collection);
@ -148,7 +148,7 @@ void ConvertRemovedJumpListItems(IObjectArray* in,
} // namespace
namespace atom {
namespace electron {
JumpListItem::JumpListItem() = default;
JumpListItem::JumpListItem(const JumpListItem&) = default;
@ -347,4 +347,4 @@ JumpListResult JumpList::AppendCategories(
return result;
}
} // namespace atom
} // namespace electron

View file

@ -12,7 +12,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
namespace atom {
namespace electron {
enum class JumpListResult : int {
SUCCESS = 0,
@ -117,6 +117,6 @@ class JumpList {
DISALLOW_COPY_AND_ASSIGN(JumpList);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_JUMP_LIST_H_

View file

@ -17,7 +17,7 @@
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/widget/widget.h"
namespace atom {
namespace electron {
NotifyIcon::NotifyIcon(NotifyIconHost* host, UINT id, HWND window, UINT message)
: host_(host),
@ -201,4 +201,4 @@ void NotifyIcon::OnContextMenuClosed() {
widget_->Close();
}
} // namespace atom
} // namespace electron

View file

@ -27,7 +27,7 @@ class MenuRunner;
class Widget;
} // namespace views
namespace atom {
namespace electron {
class NotifyIconHost;
@ -97,6 +97,6 @@ class NotifyIcon : public TrayIcon {
DISALLOW_COPY_AND_ASSIGN(NotifyIcon);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_NOTIFY_ICON_H_

View file

@ -16,7 +16,7 @@
#include "ui/events/win/system_event_state_lookup.h"
#include "ui/gfx/win/hwnd_util.h"
namespace atom {
namespace electron {
namespace {
@ -180,4 +180,4 @@ UINT NotifyIconHost::NextIconId() {
return kBaseIconId + icon_id;
}
} // namespace atom
} // namespace electron

View file

@ -11,7 +11,7 @@
#include "base/macros.h"
namespace atom {
namespace electron {
class NotifyIcon;
@ -61,6 +61,6 @@ class NotifyIconHost {
DISALLOW_COPY_AND_ASSIGN(NotifyIconHost);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_NOTIFY_ICON_HOST_H_

View file

@ -15,7 +15,7 @@
#include "ui/display/win/screen_win.h"
#include "ui/gfx/icon_util.h"
namespace atom {
namespace electron {
namespace {
@ -223,4 +223,4 @@ bool TaskbarHost::InitializeTaskbar() {
}
}
} // namespace atom
} // namespace electron

View file

@ -17,7 +17,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/image.h"
namespace atom {
namespace electron {
class TaskbarHost {
public:
@ -78,6 +78,6 @@ class TaskbarHost {
DISALLOW_COPY_AND_ASSIGN(TaskbarHost);
};
} // namespace atom
} // namespace electron
#endif // SHELL_BROWSER_UI_WIN_TASKBAR_HOST_H_