OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // ============================================================================= | 5 // ============================================================================= |
6 // PLEASE READ | 6 // PLEASE READ |
7 // | 7 // |
8 // In general, you should not be adding stuff to this file. | 8 // In general, you should not be adding stuff to this file. |
9 // | 9 // |
10 // - If your thing is only used in one place, just put it in a reasonable | 10 // - If your thing is only used in one place, just put it in a reasonable |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "base/base_export.h" | 30 #include "base/base_export.h" |
31 #include "base/string16.h" | 31 #include "base/string16.h" |
32 | 32 |
33 struct IPropertyStore; | 33 struct IPropertyStore; |
34 struct _tagpropertykey; | 34 struct _tagpropertykey; |
35 typedef _tagpropertykey PROPERTYKEY; | 35 typedef _tagpropertykey PROPERTYKEY; |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 namespace win { | 38 namespace win { |
39 | 39 |
| 40 // A Windows message reflected from other windows. This message is sent |
| 41 // with the following arguments: |
| 42 // hWnd - Target window |
| 43 // uMsg - kReflectedMessage |
| 44 // wParam - Should be 0 |
| 45 // lParam - Pointer to MSG struct containing the original message. |
| 46 const int kReflectedMessage = WM_APP + 3; |
| 47 |
40 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); | 48 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); |
41 | 49 |
42 // Returns the string representing the current user sid. | 50 // Returns the string representing the current user sid. |
43 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); | 51 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); |
44 | 52 |
45 // Returns true if the shift key is currently pressed. | 53 // Returns true if the shift key is currently pressed. |
46 BASE_EXPORT bool IsShiftPressed(); | 54 BASE_EXPORT bool IsShiftPressed(); |
47 | 55 |
48 // Returns true if the ctrl key is currently pressed. | 56 // Returns true if the ctrl key is currently pressed. |
49 BASE_EXPORT bool IsCtrlPressed(); | 57 BASE_EXPORT bool IsCtrlPressed(); |
(...skipping 26 matching lines...) Expand all Loading... |
76 // Reads the command specified by |name| from the AutoRun key. |root_key| | 84 // Reads the command specified by |name| from the AutoRun key. |root_key| |
77 // could be HKCU or HKLM or the root of any user hive. Used for unit-tests. | 85 // could be HKCU or HKLM or the root of any user hive. Used for unit-tests. |
78 BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key, | 86 BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key, |
79 const string16& name, | 87 const string16& name, |
80 string16* command); | 88 string16* command); |
81 | 89 |
82 } // namespace win | 90 } // namespace win |
83 } // namespace base | 91 } // namespace base |
84 | 92 |
85 #endif // BASE_WIN_WIN_UTIL_H_ | 93 #endif // BASE_WIN_WIN_UTIL_H_ |
OLD | NEW |