commit | d67aae27c1137d077f228d27cae2337d2b8caefa | [log] [tgz] |
---|---|---|
author | ananta <ananta@chromium.org> | Sat Mar 12 04:57:58 2016 |
committer | Commit bot <commit-bot@chromium.org> | Sat Mar 12 04:59:03 2016 |
tree | ce32a03a74c360618416bb6d65d1414cf8eca83c | |
parent | 4c2c0b6d78278126617f352711e22ff0baa59277 [diff] |
Improve tablet mode detection on Windows 10+ This patch introduces the following:- 1. A function IsWindows10TabletMode which uses the new WRL API's on Windows 10 to query the current interaction mode. As per msdn these API's can be called from Win32 apps. https://msdn.microsoft.com/en-us/library/windows/hardware/dn917883(v=vs.85).aspx https://software.intel.com/en-us/articles/detecting-slateclamshell-mode-screen-orientation-in-convertible-pc These API's however appear to always return UserModeTouch which indicates tablet mode on the Surface 4 configuration I was testing with. 2. If the IsTabletDevice function returns true we don't attempt to detect keyboards and just assume that there is no keyboard attached. BUG=497381 Review URL: https://codereview.chromium.org/1783123003 Cr-Commit-Position: refs/heads/master@{#380864}