Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10928066: Add GestureTapCancel gesture type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky cr feedback Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gesture_event_filter.cc ('k') | content/browser/renderer_host/web_input_event_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698