 Chromium Code Reviews
 Chromium Code Reviews Issue 26764002:
  Chromium side of maxTouchPoints implementation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 26764002:
  Chromium side of maxTouchPoints implementation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "ui/base/touch/touch_device.h" | 5 #include "ui/base/touch/touch_device.h" | 
| 6 | 6 | 
| 7 namespace ui { | 7 namespace ui { | 
| 8 | 8 | 
| 9 // Platforms supporting touch link in an alternate implementation of this | 9 // Platforms supporting touch link in an alternate implementation of this | 
| 10 // method. | 10 // method. | 
| 11 bool IsTouchDevicePresent() { | 11 bool IsTouchDevicePresent() { | 
| 12 return false; | 12 return false; | 
| 13 } | 13 } | 
| 14 | 14 | 
| 15 bool CanDetectMaxTouchPoints() { | |
| 16 return false; | |
| 17 } | |
| 18 | |
| 19 int MaxTouchPoints() { | |
| 20 return -1; | |
| 
Rick Byers
2013/10/10 22:42:40
I think you can safely return 0 here (and true abo
 | |
| 21 } | |
| 22 | |
| 15 } // namespace ui | 23 } // namespace ui | 
| OLD | NEW |