| 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_BASE_WIN_WINDOW_IMPL_H_ | 5 #ifndef UI_BASE_WIN_WINDOW_IMPL_H_ |
| 6 #define UI_BASE_WIN_WINDOW_IMPL_H_ | 6 #define UI_BASE_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 friend class ClassRegistrar; | 85 friend class ClassRegistrar; |
| 86 | 86 |
| 87 // The window procedure used by all Windows. | 87 // The window procedure used by all Windows. |
| 88 static LRESULT CALLBACK WndProc(HWND window, | 88 static LRESULT CALLBACK WndProc(HWND window, |
| 89 UINT message, | 89 UINT message, |
| 90 WPARAM w_param, | 90 WPARAM w_param, |
| 91 LPARAM l_param); | 91 LPARAM l_param); |
| 92 | 92 |
| 93 // Gets the window class name to use when creating the corresponding HWND. | 93 // Gets the window class atom to use when creating the corresponding HWND. |
| 94 // If necessary, this registers the window class. | 94 // If necessary, this registers the window class. |
| 95 std::wstring GetWindowClassName(); | 95 ATOM GetWindowClassAtom(); |
| 96 | 96 |
| 97 // All classes registered by WindowImpl start with this name. | 97 // All classes registered by WindowImpl start with this name. |
| 98 static const wchar_t* const kBaseClassName; | 98 static const wchar_t* const kBaseClassName; |
| 99 | 99 |
| 100 // Window Styles used when creating the window. | 100 // Window Styles used when creating the window. |
| 101 DWORD window_style_; | 101 DWORD window_style_; |
| 102 | 102 |
| 103 // Window Extended Styles used when creating the window. | 103 // Window Extended Styles used when creating the window. |
| 104 DWORD window_ex_style_; | 104 DWORD window_ex_style_; |
| 105 | 105 |
| 106 // Style of the class to use. | 106 // Style of the class to use. |
| 107 UINT class_style_; | 107 UINT class_style_; |
| 108 | 108 |
| 109 // Our hwnd. | 109 // Our hwnd. |
| 110 HWND hwnd_; | 110 HWND hwnd_; |
| 111 | 111 |
| 112 // For debugging. | 112 // For debugging. |
| 113 // TODO(sky): nuke this when get crash data. | 113 // TODO(sky): nuke this when get crash data. |
| 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 ui | 121 } // namespace ui |
| 122 | 122 |
| 123 #endif // UI_BASE_WIN_WINDOW_IMPL_H_ | 123 #endif // UI_BASE_WIN_WINDOW_IMPL_H_ |
| OLD | NEW |