remove unnecessary defines

This commit is contained in:
Cheng Zhao 2018-04-25 16:25:55 +09:00
parent e07ea24610
commit 089428857c
2 changed files with 8 additions and 15 deletions

View file

@ -215,6 +215,12 @@ class NativeWindowViews : public NativeWindow,
bool menu_bar_visible_;
bool menu_bar_alt_pressed_;
// The "resizable" flag on Linux is implemented by setting size constraints,
// we need to make sure size constraints are restored when window becomes
// resizable again. This is also used on Windows, to keep taskbar resize
// events from resizing the window.
extensions::SizeConstraints old_size_constraints_;
#if defined(USE_X11)
std::unique_ptr<GlobalMenuBarX11> global_menu_bar_;
@ -224,13 +230,7 @@ class NativeWindowViews : public NativeWindow,
// To disable the mouse events.
std::unique_ptr<EventDisabler> event_disabler_;
#endif
#if defined(OS_WIN) || defined(USE_X11)
// The "resizable" flag on Linux is implemented by setting size constraints,
// we need to make sure size constraints are restored when window becomes
// resizable again. This is also used on Windows, to keep taskbar resize
// events from resizing the window.
extensions::SizeConstraints old_size_constraints_;
#endif
#if defined(OS_WIN)
// Weak ref.
AtomDesktopWindowTreeHostWin* atom_desktop_window_tree_host_win_;