OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "gfx/window_impl.h" | 5 #include "gfx/window_impl.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 204 matching lines...) Loading... |
215 class_ex.hInstance = NULL; | 215 class_ex.hInstance = NULL; |
216 class_ex.hIcon = GetDefaultWindowIcon(); | 216 class_ex.hIcon = GetDefaultWindowIcon(); |
217 class_ex.hCursor = LoadCursor(NULL, IDC_ARROW); | 217 class_ex.hCursor = LoadCursor(NULL, IDC_ARROW); |
218 class_ex.hbrBackground = reinterpret_cast<HBRUSH>(class_info.background + 1); | 218 class_ex.hbrBackground = reinterpret_cast<HBRUSH>(class_info.background + 1); |
219 class_ex.lpszMenuName = NULL; | 219 class_ex.lpszMenuName = NULL; |
220 class_ex.lpszClassName = name.c_str(); | 220 class_ex.lpszClassName = name.c_str(); |
221 class_ex.hIconSm = class_ex.hIcon; | 221 class_ex.hIconSm = class_ex.hIcon; |
222 ATOM atom = RegisterClassEx(&class_ex); | 222 ATOM atom = RegisterClassEx(&class_ex); |
223 DCHECK(atom); | 223 DCHECK(atom); |
224 | 224 |
225 Singleton<ClassRegistrar>()->RegisterClass(class_info, name, atom); | 225 ClassRegistrar::GetInstance()->RegisterClass(class_info, name, atom); |
226 | 226 |
227 return name; | 227 return name; |
228 } | 228 } |
229 | 229 |
230 } // namespace gfx | 230 } // namespace gfx |
OLD | NEW |