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

Side by Side Diff: base/win_util.h

Issue 3165064: Move the keyboard files from base/ to app/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: latest merge Created 10 years, 4 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
« no previous file with comments | « base/keyboard_code_conversion_unittest.cc ('k') | base/win_util.cc » ('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) 2010 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 BASE_WIN_UTIL_H__ 5 #ifndef BASE_WIN_UTIL_H__
6 #define BASE_WIN_UTIL_H__ 6 #define BASE_WIN_UTIL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <aclapi.h> 10 #include <aclapi.h>
11 #include <shlobj.h> 11 #include <shlobj.h>
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/keyboard_codes.h" 15 #include "app/keyboard_codes.h"
16 16
17 namespace win_util { 17 namespace win_util {
18 18
19 // NOTE: Keep these in order so callers can do things like 19 // NOTE: Keep these in order so callers can do things like
20 // "if (GetWinVersion() > WINVERSION_2000) ...". It's OK to change the values, 20 // "if (GetWinVersion() > WINVERSION_2000) ...". It's OK to change the values,
21 // though. 21 // though.
22 enum WinVersion { 22 enum WinVersion {
23 WINVERSION_PRE_2000 = 0, // Not supported 23 WINVERSION_PRE_2000 = 0, // Not supported
24 WINVERSION_2000 = 1, // Not supported 24 WINVERSION_2000 = 1, // Not supported
25 WINVERSION_XP = 2, 25 WINVERSION_XP = 2,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // if the OS is Vista. 106 // if the OS is Vista.
107 bool UserAccountControlIsEnabled(); 107 bool UserAccountControlIsEnabled();
108 108
109 // Use the Win32 API FormatMessage() function to generate a string, using 109 // Use the Win32 API FormatMessage() function to generate a string, using
110 // Windows's default Message Compiled resources; ignoring the inserts. 110 // Windows's default Message Compiled resources; ignoring the inserts.
111 std::wstring FormatMessage(unsigned messageid); 111 std::wstring FormatMessage(unsigned messageid);
112 112
113 // Uses the last Win32 error to generate a human readable message string. 113 // Uses the last Win32 error to generate a human readable message string.
114 std::wstring FormatLastWin32Error(); 114 std::wstring FormatLastWin32Error();
115 115
116 // Methods to convert base::KeyboardCode/Windows virtual key type methods. 116 // Methods to convert app::KeyboardCode/Windows virtual key type methods.
117 WORD KeyboardCodeToWin(base::KeyboardCode keycode); 117 WORD KeyboardCodeToWin(app::KeyboardCode keycode);
118 base::KeyboardCode WinToKeyboardCode(WORD keycode); 118 app::KeyboardCode WinToKeyboardCode(WORD keycode);
119 119
120 // Sets the application id in given IPropertyStore. The function is intended 120 // Sets the application id in given IPropertyStore. The function is intended
121 // for tagging application/chromium shortcut, browser window and jump list for 121 // for tagging application/chromium shortcut, browser window and jump list for
122 // Win7. 122 // Win7.
123 bool SetAppIdForPropertyStore(IPropertyStore* property_store, 123 bool SetAppIdForPropertyStore(IPropertyStore* property_store,
124 const wchar_t* app_id); 124 const wchar_t* app_id);
125 125
126 } // namespace win_util 126 } // namespace win_util
127 127
128 #endif // BASE_WIN_UTIL_H__ 128 #endif // BASE_WIN_UTIL_H__
OLDNEW
« no previous file with comments | « base/keyboard_code_conversion_unittest.cc ('k') | base/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698