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

Side by Side Diff: app/win_util.h

Issue 3781009: Move the windows-specific scoped_* stuff from base to base/win and in the bas... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | base/base.gyp » ('j') | base/win/scoped_comptr.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 #ifndef APP_WIN_UTIL_H_ 5 #ifndef APP_WIN_UTIL_H_
6 #define APP_WIN_UTIL_H_ 6 #define APP_WIN_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <objbase.h> 9 #include <objbase.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/fix_wp64.h" 14 #include "base/fix_wp64.h"
15 #include "base/scoped_handle.h" 15 #include "base/scoped_handle.h"
16 #include "gfx/font.h" 16 #include "gfx/font.h"
17 #include "gfx/rect.h" 17 #include "gfx/rect.h"
18 18
19 class FilePath; 19 class FilePath;
20 20
21 namespace win_util { 21 namespace win_util {
22 22
23 // Import ScopedHandle and friends into this namespace for backwards 23 // Import ScopedHandle and friends into this namespace for backwards
24 // compatibility. TODO(darin): clean this up! 24 // compatibility. TODO(darin): clean this up!
25 using ::ScopedHandle; 25 using ::ScopedHandle;
26 using ::ScopedFindFileHandle;
27 using ::ScopedHDC; 26 using ::ScopedHDC;
28 using ::ScopedBitmap; 27 using ::ScopedBitmap;
29 28
30 // Simple scoped memory releaser class for COM allocated memory. 29 // Simple scoped memory releaser class for COM allocated memory.
31 // Example: 30 // Example:
32 // CoMemReleaser<ITEMIDLIST> file_item; 31 // CoMemReleaser<ITEMIDLIST> file_item;
33 // SHGetSomeInfo(&file_item, ...); 32 // SHGetSomeInfo(&file_item, ...);
34 // ... 33 // ...
35 // return; <-- memory released 34 // return; <-- memory released
36 template<typename T> 35 template<typename T>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 extern const int kAutoHideTaskbarThicknessPx; 211 extern const int kAutoHideTaskbarThicknessPx;
213 212
214 // Sets the application id given as the Application Model ID for the window 213 // Sets the application id given as the Application Model ID for the window
215 // specified. This method is used to insure that different web applications 214 // specified. This method is used to insure that different web applications
216 // do not group together on the Win7 task bar. 215 // do not group together on the Win7 task bar.
217 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd); 216 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd);
218 217
219 } // namespace win_util 218 } // namespace win_util
220 219
221 #endif // APP_WIN_UTIL_H_ 220 #endif // APP_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/win/scoped_comptr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698