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

Side by Side Diff: content/browser/system_message_window_win.h

Issue 10315012: Added base::win::InitializeWindowClass() wrapper to make sure that window classes are properly asso… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback and rebased. Created 8 years, 7 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
OLDNEW
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 CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_ 5 #ifndef CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_
6 #define CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_ 6 #define CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 18 matching lines...) Expand all
29 UINT message, 29 UINT message,
30 WPARAM wparam, 30 WPARAM wparam,
31 LPARAM lparam) { 31 LPARAM lparam) {
32 SystemMessageWindowWin* msg_wnd = reinterpret_cast<SystemMessageWindowWin*>( 32 SystemMessageWindowWin* msg_wnd = reinterpret_cast<SystemMessageWindowWin*>(
33 GetWindowLongPtr(hwnd, GWLP_USERDATA)); 33 GetWindowLongPtr(hwnd, GWLP_USERDATA));
34 if (msg_wnd) 34 if (msg_wnd)
35 return msg_wnd->WndProc(hwnd, message, wparam, lparam); 35 return msg_wnd->WndProc(hwnd, message, wparam, lparam);
36 return ::DefWindowProc(hwnd, message, wparam, lparam); 36 return ::DefWindowProc(hwnd, message, wparam, lparam);
37 } 37 }
38 38
39 HMODULE instance_;
39 HWND window_; 40 HWND window_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(SystemMessageWindowWin); 42 DISALLOW_COPY_AND_ASSIGN(SystemMessageWindowWin);
42 }; 43 };
43 44
44 #endif // CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_ 45 #endif // CONTENT_BROWSER_SYSTEM_MESSAGE_WINDOW_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/system_message_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698