| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 case ui::ET_SCROLL_FLING_START: | 332 case ui::ET_SCROLL_FLING_START: |
| 333 // TODO: Confirm that ui and webkit agree on fling api. | 333 // TODO: Confirm that ui and webkit agree on fling api. |
| 334 return WebKit::WebGestureEvent::GestureFlingStart; | 334 return WebKit::WebGestureEvent::GestureFlingStart; |
| 335 case ui::ET_SCROLL_FLING_CANCEL: | 335 case ui::ET_SCROLL_FLING_CANCEL: |
| 336 // TODO: Confirm that ui and webkit agree on fling api. | 336 // TODO: Confirm that ui and webkit agree on fling api. |
| 337 return WebKit::WebGestureEvent::GestureFlingCancel; | 337 return WebKit::WebGestureEvent::GestureFlingCancel; |
| 338 case ui::ET_GESTURE_TAP: | 338 case ui::ET_GESTURE_TAP: |
| 339 return WebKit::WebGestureEvent::GestureTap; | 339 return WebKit::WebGestureEvent::GestureTap; |
| 340 case ui::ET_GESTURE_TAP_DOWN: | 340 case ui::ET_GESTURE_TAP_DOWN: |
| 341 return WebKit::WebGestureEvent::GestureTapDown; | 341 return WebKit::WebGestureEvent::GestureTapDown; |
| 342 case ui::ET_GESTURE_TAP_CANCEL: |
| 343 return WebKit::WebInputEvent::Undefined; |
| 342 case ui::ET_GESTURE_DOUBLE_TAP: | 344 case ui::ET_GESTURE_DOUBLE_TAP: |
| 343 return WebKit::WebGestureEvent::GestureDoubleTap; | 345 return WebKit::WebGestureEvent::GestureDoubleTap; |
| 344 case ui::ET_GESTURE_LONG_PRESS: | 346 case ui::ET_GESTURE_LONG_PRESS: |
| 345 return WebKit::WebGestureEvent::GestureLongPress; | 347 return WebKit::WebGestureEvent::GestureLongPress; |
| 346 case ui::ET_GESTURE_PINCH_BEGIN: | 348 case ui::ET_GESTURE_PINCH_BEGIN: |
| 347 return WebKit::WebGestureEvent::GesturePinchBegin; | 349 return WebKit::WebGestureEvent::GesturePinchBegin; |
| 348 case ui::ET_GESTURE_PINCH_END: | 350 case ui::ET_GESTURE_PINCH_END: |
| 349 return WebKit::WebGestureEvent::GesturePinchEnd; | 351 return WebKit::WebGestureEvent::GesturePinchEnd; |
| 350 case ui::ET_GESTURE_PINCH_UPDATE: | 352 case ui::ET_GESTURE_PINCH_UPDATE: |
| 351 return WebKit::WebGestureEvent::GesturePinchUpdate; | 353 return WebKit::WebGestureEvent::GesturePinchUpdate; |
| (...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3083 // receive a focus change in the context of a pointer down message, it means | 3085 // receive a focus change in the context of a pointer down message, it means |
| 3084 // that the pointer down message occurred on the edit field and we should | 3086 // that the pointer down message occurred on the edit field and we should |
| 3085 // display the on screen keyboard | 3087 // display the on screen keyboard |
| 3086 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3088 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 3087 DisplayOnScreenKeyboardIfNeeded(); | 3089 DisplayOnScreenKeyboardIfNeeded(); |
| 3088 received_focus_change_after_pointer_down_ = false; | 3090 received_focus_change_after_pointer_down_ = false; |
| 3089 pointer_down_context_ = false; | 3091 pointer_down_context_ = false; |
| 3090 } | 3092 } |
| 3091 | 3093 |
| 3092 } // namespace content | 3094 } // namespace content |
| OLD | NEW |