Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: app/win/window_impl.cc

Issue 554125: Corrects the window name for the criteria checker's launch method. Top-level... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "app/win/window_impl.h" 5 #include "app/win/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_util.h" 10 #include "base/string_util.h"
11 #include "base/win_util.h" 11 #include "base/win_util.h"
12 12
13 namespace app { 13 namespace app {
14 14
15 static const DWORD kWindowDefaultChildStyle = 15 static const DWORD kWindowDefaultChildStyle =
16 WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; 16 WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
17 static const DWORD kWindowDefaultStyle = WS_OVERLAPPEDWINDOW; 17 static const DWORD kWindowDefaultStyle = WS_OVERLAPPEDWINDOW;
18 static const DWORD kWindowDefaultExStyle = 0; 18 static const DWORD kWindowDefaultExStyle = 0;
19 19
20 /////////////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////////////
21 // WindowImpl class tracking. 21 // WindowImpl class tracking.
22 22
23 // Several external scripts rely explicitly on this base class name for
24 // acquiring the window handle and will break if this is modified!
23 // static 25 // static
24 const wchar_t* const WindowImpl::kBaseClassName = L"Chrome_WindowImpl_"; 26 const wchar_t* const WindowImpl::kBaseClassName = L"Chrome_WidgetWin_";
25 27
26 // WindowImpl class information used for registering unique windows. 28 // WindowImpl class information used for registering unique windows.
27 struct ClassInfo { 29 struct ClassInfo {
28 UINT style; 30 UINT style;
29 HBRUSH background; 31 HBRUSH background;
30 32
31 explicit ClassInfo(int style) 33 explicit ClassInfo(int style)
32 : style(style), 34 : style(style),
33 background(NULL) {} 35 background(NULL) {}
34 36
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 class_ex.hIconSm = class_ex.hIcon; 207 class_ex.hIconSm = class_ex.hIcon;
206 ATOM atom = RegisterClassEx(&class_ex); 208 ATOM atom = RegisterClassEx(&class_ex);
207 DCHECK(atom); 209 DCHECK(atom);
208 210
209 Singleton<ClassRegistrar>()->RegisterClass(class_info, name, atom); 211 Singleton<ClassRegistrar>()->RegisterClass(class_info, name, atom);
210 212
211 return name; 213 return name;
212 } 214 }
213 215
214 } // namespace app 216 } // namespace app
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698