diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 05:34:22 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 05:34:22 +0000 |
commit | 1920e823284826c00ba11adb1ff3ccb7fba2f0f5 (patch) | |
tree | 6c6c1a4de01bae3f55965b1e08dfd1fd42bf96d5 /chrome/views | |
parent | 6687106894056969b5d3cfbeef6ba23bb75b46a5 (diff) | |
download | chromium_src-1920e823284826c00ba11adb1ff3ccb7fba2f0f5.zip chromium_src-1920e823284826c00ba11adb1ff3ccb7fba2f0f5.tar.gz chromium_src-1920e823284826c00ba11adb1ff3ccb7fba2f0f5.tar.bz2 |
rollback these changes
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-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); }; |