OLD | NEW |
---|---|
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 // ============================================================================= | 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 | 51 |
52 // Returns true if the shift key is currently pressed. | 52 // Returns true if the shift key is currently pressed. |
53 BASE_EXPORT bool IsShiftPressed(); | 53 BASE_EXPORT bool IsShiftPressed(); |
54 | 54 |
55 // Returns true if the ctrl key is currently pressed. | 55 // Returns true if the ctrl key is currently pressed. |
56 BASE_EXPORT bool IsCtrlPressed(); | 56 BASE_EXPORT bool IsCtrlPressed(); |
57 | 57 |
58 // Returns true if the alt key is currently pressed. | 58 // Returns true if the alt key is currently pressed. |
59 BASE_EXPORT bool IsAltPressed(); | 59 BASE_EXPORT bool IsAltPressed(); |
60 | 60 |
61 // Windows emulates mouse messages for touch events. | |
sky
2012/07/24 21:36:25
Returns true if |message| identifies a mouse event
girard
2012/07/24 23:54:54
Done.
| |
62 BASE_EXPORT bool IsMouseEventFromTouch(UINT message); | |
63 | |
61 // Returns false if user account control (UAC) has been disabled with the | 64 // Returns false if user account control (UAC) has been disabled with the |
62 // EnableLUA registry flag. Returns true if user account control is enabled. | 65 // EnableLUA registry flag. Returns true if user account control is enabled. |
63 // NOTE: The EnableLUA registry flag, which is ignored on Windows XP | 66 // NOTE: The EnableLUA registry flag, which is ignored on Windows XP |
64 // machines, might still exist and be set to 0 (UAC disabled), in which case | 67 // machines, might still exist and be set to 0 (UAC disabled), in which case |
65 // this function will return false. You should therefore check this flag only | 68 // this function will return false. You should therefore check this flag only |
66 // if the OS is Vista or later. | 69 // if the OS is Vista or later. |
67 BASE_EXPORT bool UserAccountControlIsEnabled(); | 70 BASE_EXPORT bool UserAccountControlIsEnabled(); |
68 | 71 |
69 // Sets the string value for given key in given IPropertyStore. | 72 // Sets the string value for given key in given IPropertyStore. |
70 BASE_EXPORT bool SetStringValueForPropertyStore( | 73 BASE_EXPORT bool SetStringValueForPropertyStore( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 // This is necessary to set compatible struct sizes for different versions | 111 // This is necessary to set compatible struct sizes for different versions |
109 // of certain Windows APIs (e.g. SystemParametersInfo). | 112 // of certain Windows APIs (e.g. SystemParametersInfo). |
110 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ | 113 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ |
111 offsetof(struct_name, member) + \ | 114 offsetof(struct_name, member) + \ |
112 (sizeof static_cast<struct_name*>(NULL)->member) | 115 (sizeof static_cast<struct_name*>(NULL)->member) |
113 | 116 |
114 } // namespace win | 117 } // namespace win |
115 } // namespace base | 118 } // namespace base |
116 | 119 |
117 #endif // BASE_WIN_WIN_UTIL_H_ | 120 #endif // BASE_WIN_WIN_UTIL_H_ |
OLD | NEW |