Only include windows headers on windows
This commit is contained in:
parent
f1fd457411
commit
c6bf39b283
1 changed files with 5 additions and 2 deletions
|
@ -14,9 +14,12 @@
|
||||||
#include "atom/common/color_util.h"
|
#include "atom/common/color_util.h"
|
||||||
#include "atom/common/options_switches.h"
|
#include "atom/common/options_switches.h"
|
||||||
#include "native_mate/dictionary.h"
|
#include "native_mate/dictionary.h"
|
||||||
|
#include "ui/views/widget/widget.h"
|
||||||
|
|
||||||
|
#if defined(OS_WIN)
|
||||||
#include "ui/base/win/shell.h"
|
#include "ui/base/win/shell.h"
|
||||||
#include "ui/display/win/screen_win.h"
|
#include "ui/display/win/screen_win.h"
|
||||||
#include "ui/views/widget/widget.h"
|
#endif
|
||||||
|
|
||||||
DEFINE_WEB_CONTENTS_USER_DATA_KEY(atom::NativeWindowRelay);
|
DEFINE_WEB_CONTENTS_USER_DATA_KEY(atom::NativeWindowRelay);
|
||||||
|
|
||||||
|
@ -556,7 +559,7 @@ const views::Widget* NativeWindow::GetWidget() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeWindowRelay::NativeWindowRelay(base::WeakPtr<NativeWindow> window)
|
NativeWindowRelay::NativeWindowRelay(base::WeakPtr<NativeWindow> window)
|
||||||
: key(UserDataKey()), window(window) {}
|
: key(UserDataKey()), window(window) {}
|
||||||
|
|
||||||
NativeWindowRelay::~NativeWindowRelay() = default;
|
NativeWindowRelay::~NativeWindowRelay() = default;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue