| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 // Copy any event-type specific data. | 324 // Copy any event-type specific data. |
| 325 switch (gesture.type()) { | 325 switch (gesture.type()) { |
| 326 case ui::ET_GESTURE_TAP: | 326 case ui::ET_GESTURE_TAP: |
| 327 gesture_event.data.tap.tapCount = gesture.details().tap_count(); | 327 gesture_event.data.tap.tapCount = gesture.details().tap_count(); |
| 328 gesture_event.data.tap.width = | 328 gesture_event.data.tap.width = |
| 329 gesture.details().bounding_box().width(); | 329 gesture.details().bounding_box().width(); |
| 330 gesture_event.data.tap.height = | 330 gesture_event.data.tap.height = |
| 331 gesture.details().bounding_box().height(); | 331 gesture.details().bounding_box().height(); |
| 332 break; | 332 break; |
| 333 case ui::ET_GESTURE_TAP_DOWN: |
| 334 gesture_event.data.tapDown.width = |
| 335 gesture.details().bounding_box().width(); |
| 336 gesture_event.data.tapDown.height = |
| 337 gesture.details().bounding_box().height(); |
| 338 break; |
| 333 case ui::ET_GESTURE_SCROLL_UPDATE: | 339 case ui::ET_GESTURE_SCROLL_UPDATE: |
| 334 gesture_event.data.scrollUpdate.deltaX = gesture.details().scroll_x(); | 340 gesture_event.data.scrollUpdate.deltaX = gesture.details().scroll_x(); |
| 335 gesture_event.data.scrollUpdate.deltaY = gesture.details().scroll_y(); | 341 gesture_event.data.scrollUpdate.deltaY = gesture.details().scroll_y(); |
| 336 break; | 342 break; |
| 337 case ui::ET_GESTURE_PINCH_UPDATE: | 343 case ui::ET_GESTURE_PINCH_UPDATE: |
| 338 gesture_event.data.pinchUpdate.scale = gesture.details().scale(); | 344 gesture_event.data.pinchUpdate.scale = gesture.details().scale(); |
| 339 break; | 345 break; |
| 340 case ui::ET_SCROLL_FLING_START: | 346 case ui::ET_SCROLL_FLING_START: |
| 341 gesture_event.data.flingStart.velocityX = gesture.details().velocity_x(); | 347 gesture_event.data.flingStart.velocityX = gesture.details().velocity_x(); |
| 342 gesture_event.data.flingStart.velocityY = gesture.details().velocity_y(); | 348 gesture_event.data.flingStart.velocityY = gesture.details().velocity_y(); |
| (...skipping 2749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3092 // receive a focus change in the context of a pointer down message, it means | 3098 // receive a focus change in the context of a pointer down message, it means |
| 3093 // that the pointer down message occurred on the edit field and we should | 3099 // that the pointer down message occurred on the edit field and we should |
| 3094 // display the on screen keyboard | 3100 // display the on screen keyboard |
| 3095 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3101 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 3096 DisplayOnScreenKeyboardIfNeeded(); | 3102 DisplayOnScreenKeyboardIfNeeded(); |
| 3097 received_focus_change_after_pointer_down_ = false; | 3103 received_focus_change_after_pointer_down_ = false; |
| 3098 pointer_down_context_ = false; | 3104 pointer_down_context_ = false; |
| 3099 } | 3105 } |
| 3100 | 3106 |
| 3101 } // namespace content | 3107 } // namespace content |
| OLD | NEW |