diff options
-rw-r--r-- | chrome/views/custom_frame_window.cc | 19 | ||||
-rw-r--r-- | chrome/views/custom_frame_window.h | 9 | ||||
-rw-r--r-- | chrome/views/window.h | 3 |
3 files changed, 11 insertions, 20 deletions
diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc index 97c1c89..928947e 100644 --- a/chrome/views/custom_frame_window.cc +++ b/chrome/views/custom_frame_window.cc @@ -831,17 +831,6 @@ void DefaultNonClientView::InitClass() { /////////////////////////////////////////////////////////////////////////////// // CustomFrameWindow, public: -CustomFrameWindow::~CustomFrameWindow() { -} - -void CustomFrameWindow::ExecuteSystemMenuCommand(int command) { - if (command) - SendMessage(GetHWND(), WM_SYSCOMMAND, command, 0); -} - -/////////////////////////////////////////////////////////////////////////////// -// CustomFrameWindow, protected: - CustomFrameWindow::CustomFrameWindow(WindowDelegate* window_delegate) : Window(window_delegate), non_client_view_(new DefaultNonClientView(this)), @@ -856,6 +845,14 @@ CustomFrameWindow::CustomFrameWindow(WindowDelegate* window_delegate, InitClass(); } +CustomFrameWindow::~CustomFrameWindow() { +} + +void CustomFrameWindow::ExecuteSystemMenuCommand(int command) { + if (command) + SendMessage(GetHWND(), WM_SYSCOMMAND, command, 0); +} + /////////////////////////////////////////////////////////////////////////////// // CustomFrameWindow, Window overrides: diff --git a/chrome/views/custom_frame_window.h b/chrome/views/custom_frame_window.h index 2fad406..d61b6b8 100644 --- a/chrome/views/custom_frame_window.h +++ b/chrome/views/custom_frame_window.h @@ -50,6 +50,9 @@ class NonClientView; //////////////////////////////////////////////////////////////////////////////// class CustomFrameWindow : public Window { public: + explicit CustomFrameWindow(WindowDelegate* window_delegate); + CustomFrameWindow(WindowDelegate* window_delegate, + NonClientView* non_client_view); virtual ~CustomFrameWindow(); // Executes the specified SC_command. @@ -66,12 +69,6 @@ class CustomFrameWindow : public Window { virtual void UpdateWindowTitle(); protected: - // Cannot construct one of these directly - use Window::CreateChromeWindow. - // Subclasses _must_ call one of these constructors. - explicit CustomFrameWindow(WindowDelegate* window_delegate); - CustomFrameWindow(WindowDelegate* window_delegate, - NonClientView* non_client_view); - // Overridden from Window: virtual void SizeWindowToDefault(); virtual void EnableClose(bool enable); diff --git a/chrome/views/window.h b/chrome/views/window.h index 4173a27..a941cb2 100644 --- a/chrome/views/window.h +++ b/chrome/views/window.h @@ -244,9 +244,6 @@ class Window : public HWNDViewContainer { // Set to true if the window is in the process of closing . bool window_closed_; - // Allows CreateChromeWindow to access CustomFrameWindow's ctor. - friend class CustomFrameWindow; - DISALLOW_EVIL_CONSTRUCTORS(Window); }; |