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

Side by Side Diff: content/browser/renderer_host/input/touch_emulator.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/input/touch_emulator.h" 5 #include "content/browser/renderer_host/input/touch_emulator.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/browser/renderer_host/input/motion_event_web.h" 8 #include "content/browser/renderer_host/input/motion_event_web.h"
9 #include "content/browser/renderer_host/input/web_input_event_util.h" 9 #include "content/browser/renderer_host/input/web_input_event_util.h"
10 #include "content/common/input/web_touch_event_traits.h"
11 #include "content/grit/content_resources.h" 10 #include "content/grit/content_resources.h"
12 #include "content/public/common/content_client.h" 11 #include "content/public/common/content_client.h"
13 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 #include "content/public/common/input/web_touch_event_traits.h"
14 #include "third_party/WebKit/public/platform/WebCursorInfo.h" 14 #include "third_party/WebKit/public/platform/WebCursorInfo.h"
15 #include "ui/events/base_event_utils.h" 15 #include "ui/events/base_event_utils.h"
16 #include "ui/events/blink/blink_event_util.h" 16 #include "ui/events/blink/blink_event_util.h"
17 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 17 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
18 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
19 19
20 using blink::WebGestureEvent; 20 using blink::WebGestureEvent;
21 using blink::WebInputEvent; 21 using blink::WebInputEvent;
22 using blink::WebKeyboardEvent; 22 using blink::WebKeyboardEvent;
23 using blink::WebMouseEvent; 23 using blink::WebMouseEvent;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 point.screenPosition.y = mouse_event.globalY; 449 point.screenPosition.y = mouse_event.globalY;
450 point.tiltX = 0; 450 point.tiltX = 0;
451 point.tiltY = 0; 451 point.tiltY = 0;
452 } 452 }
453 453
454 bool TouchEmulator::InPinchGestureMode() const { 454 bool TouchEmulator::InPinchGestureMode() const {
455 return shift_pressed_; 455 return shift_pressed_;
456 } 456 }
457 457
458 } // namespace content 458 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698