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

Side by Side Diff: components/html_viewer/touch_handler.cc

Issue 1085233004: Moves services implementations out of third_party/mojo_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unnecessary changes Created 5 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/html_viewer/touch_handler.h" 5 #include "components/html_viewer/touch_handler.h"
6 6
7 #include "third_party/WebKit/public/web/WebInputEvent.h" 7 #include "third_party/WebKit/public/web/WebInputEvent.h"
8 #include "third_party/WebKit/public/web/WebView.h" 8 #include "third_party/WebKit/public/web/WebView.h"
9 #include "third_party/mojo_services/src/input_events/public/interfaces/input_eve nts.mojom.h"
10 #include "ui/events/blink/blink_event_util.h" 9 #include "ui/events/blink/blink_event_util.h"
11 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 10 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
12 #include "ui/events/gesture_detection/motion_event_generic.h" 11 #include "ui/events/gesture_detection/motion_event_generic.h"
12 #include "ui/mojo/events/input_events.mojom.h"
13 13
14 namespace html_viewer { 14 namespace html_viewer {
15 namespace { 15 namespace {
16 16
17 void SetPropertiesFromEvent(const mojo::Event& event, 17 void SetPropertiesFromEvent(const mojo::Event& event,
18 ui::PointerProperties* properties) { 18 ui::PointerProperties* properties) {
19 properties->id = event.pointer_data->pointer_id; 19 properties->id = event.pointer_data->pointer_id;
20 properties->x = event.pointer_data->x; 20 properties->x = event.pointer_data->x;
21 properties->y = event.pointer_data->y; 21 properties->y = event.pointer_data->y;
22 properties->raw_x = event.pointer_data->screen_x; 22 properties->raw_x = event.pointer_data->screen_x;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 case mojo::EVENT_TYPE_POINTER_CANCEL: 178 case mojo::EVENT_TYPE_POINTER_CANCEL:
179 current_motion_event_.reset(); 179 current_motion_event_.reset();
180 break; 180 break;
181 181
182 default: 182 default:
183 break; 183 break;
184 } 184 }
185 } 185 }
186 186
187 } // namespace html_viewer 187 } // namespace html_viewer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698