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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // Checks whether the supplied |hwnd| is in Windows 10 tablet mode. Will return | 131 // Checks whether the supplied |hwnd| is in Windows 10 tablet mode. Will return |
132 // false on versions below 10. | 132 // false on versions below 10. |
133 BASE_EXPORT bool IsWindows10TabletMode(HWND hwnd); | 133 BASE_EXPORT bool IsWindows10TabletMode(HWND hwnd); |
134 | 134 |
135 // A tablet is a device that is touch enabled and also is being used | 135 // A tablet is a device that is touch enabled and also is being used |
136 // "like a tablet". This is used by the following:- | 136 // "like a tablet". This is used by the following:- |
137 // 1. Metrics:- To gain insight into how users use Chrome. | 137 // 1. Metrics:- To gain insight into how users use Chrome. |
138 // 2. Physical keyboard presence :- If a device is in tablet mode, it means | 138 // 2. Physical keyboard presence :- If a device is in tablet mode, it means |
139 // that there is no physical keyboard attached. | 139 // that there is no physical keyboard attached. |
| 140 // 3. To set the right interactions media queries, |
| 141 // see https://drafts.csswg.org/mediaqueries-4/#mf-interaction |
140 // This function optionally sets the |reason| parameter to determine as to why | 142 // This function optionally sets the |reason| parameter to determine as to why |
141 // or why not a device was deemed to be a tablet. | 143 // or why not a device was deemed to be a tablet. |
142 // Returns true if the device is in tablet mode. | 144 // Returns true if the device is in tablet mode. |
143 BASE_EXPORT bool IsTabletDevice(std::string* reason); | 145 BASE_EXPORT bool IsTabletDevice(std::string* reason); |
144 | 146 |
145 // A slate is a touch device that may have a keyboard attached. This function | 147 // A slate is a touch device that may have a keyboard attached. This function |
146 // returns true if a keyboard is attached and optionally will set the reason | 148 // returns true if a keyboard is attached and optionally will set the reason |
147 // parameter to the detection method that was used to detect the keyboard. | 149 // parameter to the detection method that was used to detect the keyboard. |
148 BASE_EXPORT bool IsKeyboardPresentOnSlate(std::string* reason); | 150 BASE_EXPORT bool IsKeyboardPresentOnSlate(std::string* reason); |
149 | 151 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 BASE_EXPORT void EnableFlicks(HWND hwnd); | 191 BASE_EXPORT void EnableFlicks(HWND hwnd); |
190 BASE_EXPORT void DisableFlicks(HWND hwnd); | 192 BASE_EXPORT void DisableFlicks(HWND hwnd); |
191 | 193 |
192 // Returns true if the process is per monitor DPI aware. | 194 // Returns true if the process is per monitor DPI aware. |
193 BASE_EXPORT bool IsProcessPerMonitorDpiAware(); | 195 BASE_EXPORT bool IsProcessPerMonitorDpiAware(); |
194 | 196 |
195 } // namespace win | 197 } // namespace win |
196 } // namespace base | 198 } // namespace base |
197 | 199 |
198 #endif // BASE_WIN_WIN_UTIL_H_ | 200 #endif // BASE_WIN_WIN_UTIL_H_ |
OLD | NEW |