| 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 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2226 touch_state_->QueueEvents(this, gesture_recognizer_.get()); | 2226 touch_state_->QueueEvents(this, gesture_recognizer_.get()); |
| 2227 } | 2227 } |
| 2228 } else { | 2228 } else { |
| 2229 const WebKit::WebTouchEvent& touch_event = touch_state_->touch_event(); | 2229 const WebKit::WebTouchEvent& touch_event = touch_state_->touch_event(); |
| 2230 base::TimeDelta timestamp = base::TimeDelta::FromMilliseconds( | 2230 base::TimeDelta timestamp = base::TimeDelta::FromMilliseconds( |
| 2231 touch_event.timeStampSeconds * 1000); | 2231 touch_event.timeStampSeconds * 1000); |
| 2232 for (size_t i = 0; i < touch_event.touchesLength; ++i) { | 2232 for (size_t i = 0; i < touch_event.touchesLength; ++i) { |
| 2233 scoped_ptr<ui::GestureRecognizer::Gestures> gestures; | 2233 scoped_ptr<ui::GestureRecognizer::Gestures> gestures; |
| 2234 gestures.reset(gesture_recognizer_->ProcessTouchEventForGesture( | 2234 gestures.reset(gesture_recognizer_->ProcessTouchEventForGesture( |
| 2235 TouchEventFromWebTouchPoint(touch_event.touches[i], timestamp), | 2235 TouchEventFromWebTouchPoint(touch_event.touches[i], timestamp), |
| 2236 ui::TOUCH_STATUS_UNKNOWN, this)); | 2236 ui::ER_UNHANDLED, this)); |
| 2237 ProcessGestures(gestures.get()); | 2237 ProcessGestures(gestures.get()); |
| 2238 } | 2238 } |
| 2239 } | 2239 } |
| 2240 } | 2240 } |
| 2241 | 2241 |
| 2242 CloseTouchInputHandle((HTOUCHINPUT)lparam); | 2242 CloseTouchInputHandle((HTOUCHINPUT)lparam); |
| 2243 | 2243 |
| 2244 return 0; | 2244 return 0; |
| 2245 } | 2245 } |
| 2246 | 2246 |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3105 // receive a focus change in the context of a pointer down message, it means | 3105 // receive a focus change in the context of a pointer down message, it means |
| 3106 // that the pointer down message occurred on the edit field and we should | 3106 // that the pointer down message occurred on the edit field and we should |
| 3107 // display the on screen keyboard | 3107 // display the on screen keyboard |
| 3108 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3108 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 3109 DisplayOnScreenKeyboardIfNeeded(); | 3109 DisplayOnScreenKeyboardIfNeeded(); |
| 3110 received_focus_change_after_pointer_down_ = false; | 3110 received_focus_change_after_pointer_down_ = false; |
| 3111 pointer_down_context_ = false; | 3111 pointer_down_context_ = false; |
| 3112 } | 3112 } |
| 3113 | 3113 |
| 3114 } // namespace content | 3114 } // namespace content |
| OLD | NEW |