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

Side by Side Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.cc

Issue 1112813003: Pass gfx structs by const ref (gfx::Vector2d/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years, 7 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 "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" 5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 KeyEventParams::KeyEventParams(int device_id, 9 KeyEventParams::KeyEventParams(int device_id,
10 unsigned int code, 10 unsigned int code,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 MouseWheelEventParams::MouseWheelEventParams( 63 MouseWheelEventParams::MouseWheelEventParams(
64 const MouseWheelEventParams& other) = default; 64 const MouseWheelEventParams& other) = default;
65 65
66 MouseWheelEventParams::~MouseWheelEventParams() { 66 MouseWheelEventParams::~MouseWheelEventParams() {
67 } 67 }
68 68
69 ScrollEventParams::ScrollEventParams(int device_id, 69 ScrollEventParams::ScrollEventParams(int device_id,
70 EventType type, 70 EventType type,
71 const gfx::PointF location, 71 const gfx::PointF location,
72 const gfx::Vector2dF delta, 72 const gfx::Vector2dF& delta,
73 const gfx::Vector2dF ordinal_delta, 73 const gfx::Vector2dF& ordinal_delta,
74 int finger_count, 74 int finger_count,
75 const base::TimeDelta timestamp) 75 const base::TimeDelta timestamp)
76 : device_id(device_id), 76 : device_id(device_id),
77 type(type), 77 type(type),
78 location(location), 78 location(location),
79 delta(delta), 79 delta(delta),
80 ordinal_delta(ordinal_delta), 80 ordinal_delta(ordinal_delta),
81 finger_count(finger_count), 81 finger_count(finger_count),
82 timestamp(timestamp) { 82 timestamp(timestamp) {
83 } 83 }
(...skipping 18 matching lines...) Expand all
102 pressure(pressure), 102 pressure(pressure),
103 timestamp(timestamp) { 103 timestamp(timestamp) {
104 } 104 }
105 105
106 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 106 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
107 107
108 TouchEventParams::~TouchEventParams() { 108 TouchEventParams::~TouchEventParams() {
109 } 109 }
110 110
111 } // namspace ui 111 } // namspace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698