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 #include "ui/base/win/window_impl.h" | 5 #include "ui/base/win/window_impl.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/win/wrapped_window_proc.h" | 12 #include "base/win/wrapped_window_proc.h" |
13 #include "ui/base/win/hwnd_util.h" | 13 #include "ui/base/win/hwnd_util.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 static const DWORD kWindowDefaultChildStyle = | 17 static const DWORD kWindowDefaultChildStyle = |
18 WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; | 18 WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; |
19 static const DWORD kWindowDefaultStyle = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN; | 19 static const DWORD kWindowDefaultStyle = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN; |
20 static const DWORD kWindowDefaultExStyle = 0; | 20 static const DWORD kWindowDefaultExStyle = 0; |
21 | 21 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 return window->OnWndProc(message, w_param, l_param); | 260 return window->OnWndProc(message, w_param, l_param); |
261 } | 261 } |
262 | 262 |
263 ATOM WindowImpl::GetWindowClassAtom() { | 263 ATOM WindowImpl::GetWindowClassAtom() { |
264 HICON icon = GetDefaultWindowIcon(); | 264 HICON icon = GetDefaultWindowIcon(); |
265 ClassInfo class_info(initial_class_style(), icon); | 265 ClassInfo class_info(initial_class_style(), icon); |
266 return ClassRegistrar::GetInstance()->RetrieveClassAtom(class_info); | 266 return ClassRegistrar::GetInstance()->RetrieveClassAtom(class_info); |
267 } | 267 } |
268 | 268 |
269 } // namespace ui | 269 } // namespace ui |
OLD | NEW |