| 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 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <peninputpanel_i.c> | 9 #include <peninputpanel_i.c> |
| 10 #include <stack> | 10 #include <stack> |
| (...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 touch_state_->QueueEvents(this, gesture_recognizer_.get()); | 2239 touch_state_->QueueEvents(this, gesture_recognizer_.get()); |
| 2240 } | 2240 } |
| 2241 } else { | 2241 } else { |
| 2242 const WebKit::WebTouchEvent& touch_event = touch_state_->touch_event(); | 2242 const WebKit::WebTouchEvent& touch_event = touch_state_->touch_event(); |
| 2243 base::TimeDelta timestamp = base::TimeDelta::FromMilliseconds( | 2243 base::TimeDelta timestamp = base::TimeDelta::FromMilliseconds( |
| 2244 touch_event.timeStampSeconds * 1000); | 2244 touch_event.timeStampSeconds * 1000); |
| 2245 for (size_t i = 0; i < touch_event.touchesLength; ++i) { | 2245 for (size_t i = 0; i < touch_event.touchesLength; ++i) { |
| 2246 scoped_ptr<ui::GestureRecognizer::Gestures> gestures; | 2246 scoped_ptr<ui::GestureRecognizer::Gestures> gestures; |
| 2247 gestures.reset(gesture_recognizer_->ProcessTouchEventForGesture( | 2247 gestures.reset(gesture_recognizer_->ProcessTouchEventForGesture( |
| 2248 TouchEventFromWebTouchPoint(touch_event.touches[i], timestamp), | 2248 TouchEventFromWebTouchPoint(touch_event.touches[i], timestamp), |
| 2249 ui::TOUCH_STATUS_UNKNOWN, this)); | 2249 ui::ER_UNHANDLED, this)); |
| 2250 ProcessGestures(gestures.get()); | 2250 ProcessGestures(gestures.get()); |
| 2251 } | 2251 } |
| 2252 } | 2252 } |
| 2253 } | 2253 } |
| 2254 | 2254 |
| 2255 CloseTouchInputHandle((HTOUCHINPUT)lparam); | 2255 CloseTouchInputHandle((HTOUCHINPUT)lparam); |
| 2256 | 2256 |
| 2257 return 0; | 2257 return 0; |
| 2258 } | 2258 } |
| 2259 | 2259 |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3093 // receive a focus change in the context of a pointer down message, it means | 3093 // receive a focus change in the context of a pointer down message, it means |
| 3094 // that the pointer down message occurred on the edit field and we should | 3094 // that the pointer down message occurred on the edit field and we should |
| 3095 // display the on screen keyboard | 3095 // display the on screen keyboard |
| 3096 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3096 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 3097 DisplayOnScreenKeyboardIfNeeded(); | 3097 DisplayOnScreenKeyboardIfNeeded(); |
| 3098 received_focus_change_after_pointer_down_ = false; | 3098 received_focus_change_after_pointer_down_ = false; |
| 3099 pointer_down_context_ = false; | 3099 pointer_down_context_ = false; |
| 3100 } | 3100 } |
| 3101 | 3101 |
| 3102 } // namespace content | 3102 } // namespace content |
| OLD | NEW |