summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
Diffstat (limited to 'views/window')
-rw-r--r--views/window/custom_frame_view.cc11
-rw-r--r--views/window/window_win.h2
2 files changed, 6 insertions, 7 deletions
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc
index 66e2ccd..19ce2fb 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -74,11 +74,12 @@ const int kCaptionTopSpacing = 1;
CustomFrameView::CustomFrameView(Window* frame)
: NonClientFrameView(),
- close_button_(new ImageButton(this)),
- restore_button_(new ImageButton(this)),
- maximize_button_(new ImageButton(this)),
- minimize_button_(new ImageButton(this)),
- system_menu_button_(new ImageButton(this)),
+ ALLOW_THIS_IN_INITIALIZER_LIST(close_button_(new ImageButton(this))),
+ ALLOW_THIS_IN_INITIALIZER_LIST(restore_button_(new ImageButton(this))),
+ ALLOW_THIS_IN_INITIALIZER_LIST(maximize_button_(new ImageButton(this))),
+ ALLOW_THIS_IN_INITIALIZER_LIST(minimize_button_(new ImageButton(this))),
+ ALLOW_THIS_IN_INITIALIZER_LIST(
+ system_menu_button_(new ImageButton(this))),
should_show_minmax_buttons_(false),
frame_(frame) {
InitClass();
diff --git a/views/window/window_win.h b/views/window/window_win.h
index 76d5196..5a90835 100644
--- a/views/window/window_win.h
+++ b/views/window/window_win.h
@@ -6,8 +6,6 @@
#define VIEWS_WINDOW_WINDOW_WIN_H_
#include "views/widget/widget_win.h"
-#include "views/window/client_view.h"
-#include "views/window/non_client_view.h"
#include "views/window/window.h"
namespace gfx {