mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Only include windows headers on windows
This commit is contained in:
@@ -14,9 +14,12 @@
|
||||
#include "atom/common/color_util.h"
|
||||
#include "atom/common/options_switches.h"
|
||||
#include "native_mate/dictionary.h"
|
||||
#include "ui/views/widget/widget.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "ui/base/win/shell.h"
|
||||
#include "ui/display/win/screen_win.h"
|
||||
#include "ui/views/widget/widget.h"
|
||||
#endif
|
||||
|
||||
DEFINE_WEB_CONTENTS_USER_DATA_KEY(atom::NativeWindowRelay);
|
||||
|
||||
@@ -556,7 +559,7 @@ const views::Widget* NativeWindow::GetWidget() const {
|
||||
}
|
||||
|
||||
NativeWindowRelay::NativeWindowRelay(base::WeakPtr<NativeWindow> window)
|
||||
: key(UserDataKey()), window(window) {}
|
||||
: key(UserDataKey()), window(window) {}
|
||||
|
||||
NativeWindowRelay::~NativeWindowRelay() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user