| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_factory.h" | 5 #include "ui/base/touch/touch_factory.h" |
| 6 | 6 |
| 7 #include <X11/cursorfont.h> | 7 #include <X11/cursorfont.h> |
| 8 #include <X11/extensions/XInput.h> | 8 #include <X11/extensions/XInput.h> |
| 9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
| 10 #include <X11/extensions/XIproto.h> | 10 #include <X11/extensions/XIproto.h> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 namespace ui { | 126 namespace ui { |
| 127 | 127 |
| 128 // static | 128 // static |
| 129 TouchFactory* TouchFactory::GetInstance() { | 129 TouchFactory* TouchFactory::GetInstance() { |
| 130 return Singleton<TouchFactory>::get(); | 130 return Singleton<TouchFactory>::get(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 TouchFactory::TouchFactory() | 133 TouchFactory::TouchFactory() |
| 134 : is_cursor_visible_(true), | 134 : is_cursor_visible_(true), |
| 135 keep_mouse_cursor_(false), | |
| 136 cursor_timer_(), | 135 cursor_timer_(), |
| 137 pointer_device_lookup_(), | 136 pointer_device_lookup_(), |
| 138 touch_device_available_(false), | 137 touch_device_available_(false), |
| 139 touch_device_list_(), | 138 touch_device_list_(), |
| 140 #if defined(USE_XI2_MT) | 139 #if defined(USE_XI2_MT) |
| 141 min_available_slot_(0), | 140 min_available_slot_(0), |
| 142 #endif | 141 #endif |
| 143 slots_used_() { | 142 slots_used_() { |
| 144 #if defined(TOUCH_UI) | 143 #if defined(TOUCH_UI) |
| 145 if (!base::MessagePumpForUI::HasXInput2()) | 144 if (!base::MessagePumpForUI::HasXInput2()) |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 float* max) { | 538 float* max) { |
| 540 if (valuator_lookup_[deviceid][tp] >= 0) { | 539 if (valuator_lookup_[deviceid][tp] >= 0) { |
| 541 *min = touch_param_min_[deviceid][tp]; | 540 *min = touch_param_min_[deviceid][tp]; |
| 542 *max = touch_param_max_[deviceid][tp]; | 541 *max = touch_param_max_[deviceid][tp]; |
| 543 return true; | 542 return true; |
| 544 } | 543 } |
| 545 return false; | 544 return false; |
| 546 } | 545 } |
| 547 | 546 |
| 548 } // namespace ui | 547 } // namespace ui |
| OLD | NEW |