| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_WINDOW_IMPL_H_ | 5 #ifndef BASE_WINDOW_IMPL_H_ |
| 6 #define BASE_WINDOW_IMPL_H_ | 6 #define BASE_WINDOW_IMPL_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlmisc.h> | 10 #include <atlmisc.h> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // A convenience class that encapsulates the details of creating and | 24 // A convenience class that encapsulates the details of creating and |
| 25 // destroying a HWND. This class also hosts the windows procedure used by all | 25 // destroying a HWND. This class also hosts the windows procedure used by all |
| 26 // Windows. | 26 // Windows. |
| 27 // | 27 // |
| 28 /////////////////////////////////////////////////////////////////////////////// | 28 /////////////////////////////////////////////////////////////////////////////// |
| 29 class WindowImpl { | 29 class WindowImpl { |
| 30 public: | 30 public: |
| 31 WindowImpl(); | 31 WindowImpl(); |
| 32 virtual ~WindowImpl(); | 32 virtual ~WindowImpl(); |
| 33 | 33 |
| 34 BEGIN_MSG_MAP_EX(WidgetWin) | 34 BEGIN_MSG_MAP_EX(WindowImpl) |
| 35 // No messages to handle | 35 // No messages to handle |
| 36 END_MSG_MAP() | 36 END_MSG_MAP() |
| 37 | 37 |
| 38 // Initialize the Window with a parent and an initial desired size. | 38 // Initialize the Window with a parent and an initial desired size. |
| 39 virtual void Init(HWND parent, const gfx::Rect& bounds); | 39 virtual void Init(HWND parent, const gfx::Rect& bounds); |
| 40 | 40 |
| 41 // Returns the gfx::NativeView associated with this Window. | 41 // Returns the gfx::NativeView associated with this Window. |
| 42 virtual gfx::NativeView GetNativeView() const; | 42 virtual gfx::NativeView GetNativeView() const; |
| 43 | 43 |
| 44 // Retrieves the default window icon to use for windows if none is specified. | 44 // Retrieves the default window icon to use for windows if none is specified. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Our hwnd. | 96 // Our hwnd. |
| 97 HWND hwnd_; | 97 HWND hwnd_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(WindowImpl); | 99 DISALLOW_COPY_AND_ASSIGN(WindowImpl); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace base | 102 } // namespace base |
| 103 | 103 |
| 104 #endif // BASE_WINDOW_IMPL_H_ | 104 #endif // BASE_WINDOW_IMPL_H_ |
| OLD | NEW |