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

Side by Side Diff: base/win/win_util.h

Issue 2737123003: Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. (Closed)
Patch Set: Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. Created 3 years, 9 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 | « no previous file | ui/base/touch/touch_device_win.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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/base/touch/touch_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698