| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_WIN_WINDOW_IMPL_H_ | 5 #ifndef UI_GFX_WIN_WINDOW_IMPL_H_ |
| 6 #define UI_GFX_WIN_WINDOW_IMPL_H_ | 6 #define UI_GFX_WIN_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 22 matching lines...) Expand all Loading... |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 /////////////////////////////////////////////////////////////////////////////// | 35 /////////////////////////////////////////////////////////////////////////////// |
| 36 // | 36 // |
| 37 // WindowImpl | 37 // WindowImpl |
| 38 // A convenience class that encapsulates the details of creating and | 38 // A convenience class that encapsulates the details of creating and |
| 39 // destroying a HWND. This class also hosts the windows procedure used by all | 39 // destroying a HWND. This class also hosts the windows procedure used by all |
| 40 // Windows. | 40 // Windows. |
| 41 // | 41 // |
| 42 /////////////////////////////////////////////////////////////////////////////// | 42 /////////////////////////////////////////////////////////////////////////////// |
| 43 class UI_EXPORT WindowImpl : public MessageMapInterface { | 43 class GFX_EXPORT WindowImpl : public MessageMapInterface { |
| 44 public: | 44 public: |
| 45 WindowImpl(); | 45 WindowImpl(); |
| 46 virtual ~WindowImpl(); | 46 virtual ~WindowImpl(); |
| 47 | 47 |
| 48 // Initializes the Window with a parent and an initial desired size. | 48 // Initializes the Window with a parent and an initial desired size. |
| 49 void Init(HWND parent, const gfx::Rect& bounds); | 49 void Init(HWND parent, const gfx::Rect& bounds); |
| 50 | 50 |
| 51 // Returns the default window icon to use for windows of this type. | 51 // Returns the default window icon to use for windows of this type. |
| 52 virtual HICON GetDefaultWindowIcon() const; | 52 virtual HICON GetDefaultWindowIcon() const; |
| 53 | 53 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool got_create_; | 114 bool got_create_; |
| 115 bool got_valid_hwnd_; | 115 bool got_valid_hwnd_; |
| 116 bool* destroyed_; | 116 bool* destroyed_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(WindowImpl); | 118 DISALLOW_COPY_AND_ASSIGN(WindowImpl); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace gfx | 121 } // namespace gfx |
| 122 | 122 |
| 123 #endif // UI_GFX_WIN_WINDOW_IMPL_H_ | 123 #endif // UI_GFX_WIN_WINDOW_IMPL_H_ |
| OLD | NEW |