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

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

Issue 2222002: Unsigned warning fix - take 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « app/os_exchange_data_provider_win.cc ('k') | base/crypto/scoped_capi_types.h » ('j') | 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) 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 #ifndef APP_WIN_WINDOW_IMPL_H_ 5 #ifndef APP_WIN_WINDOW_IMPL_H_
6 #define APP_WIN_WINDOW_IMPL_H_ 6 #define APP_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>
11 #include <atlcrack.h> 11 #include <atlcrack.h>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void set_window_style(DWORD style) { window_style_ = style; } 58 void set_window_style(DWORD style) { window_style_ = style; }
59 DWORD window_style() const { return window_style_; } 59 DWORD window_style() const { return window_style_; }
60 60
61 // Sets the extended window styles. See comment about |set_window_style|. 61 // Sets the extended window styles. See comment about |set_window_style|.
62 void set_window_ex_style(DWORD style) { window_ex_style_ = style; } 62 void set_window_ex_style(DWORD style) { window_ex_style_ = style; }
63 DWORD window_ex_style() const { return window_ex_style_; } 63 DWORD window_ex_style() const { return window_ex_style_; }
64 64
65 // Sets the class style to use. The default is CS_DBLCLKS. 65 // Sets the class style to use. The default is CS_DBLCLKS.
66 void set_initial_class_style(UINT class_style) { 66 void set_initial_class_style(UINT class_style) {
67 // We dynamically generate the class name, so don't register it globally! 67 // We dynamically generate the class name, so don't register it globally!
68 DCHECK_EQ((class_style & CS_GLOBALCLASS), 0); 68 DCHECK_EQ((class_style & CS_GLOBALCLASS), 0u);
69 class_style_ = class_style; 69 class_style_ = class_style;
70 } 70 }
71 UINT initial_class_style() const { return class_style_; } 71 UINT initial_class_style() const { return class_style_; }
72 72
73 // Returns true if the specified |hwnd| is a WindowImpl. 73 // Returns true if the specified |hwnd| is a WindowImpl.
74 static bool IsWindowImpl(HWND hwnd); 74 static bool IsWindowImpl(HWND hwnd);
75 75
76 protected: 76 protected:
77 // Handles the WndProc callback for this object. 77 // Handles the WndProc callback for this object.
78 virtual LRESULT OnWndProc(UINT message, WPARAM w_param, LPARAM l_param); 78 virtual LRESULT OnWndProc(UINT message, WPARAM w_param, LPARAM l_param);
(...skipping 25 matching lines...) Expand all
104 104
105 // Our hwnd. 105 // Our hwnd.
106 HWND hwnd_; 106 HWND hwnd_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 108 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
109 }; 109 };
110 110
111 } // namespace app 111 } // namespace app
112 112
113 #endif // APP_WIN_WINDOW_IMPL_H_ 113 #endif // APP_WIN_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « app/os_exchange_data_provider_win.cc ('k') | base/crypto/scoped_capi_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698