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

Side by Side Diff: ui/events/cocoa/events_mac.mm

Issue 1586653002: ui: Fix TouchEvent PointerDetails creation from NativeEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase following X event refactor 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
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/events/event_utils.h" 5 #include "ui/events/event_utils.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 172 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
173 NOTIMPLEMENTED(); 173 NOTIMPLEMENTED();
174 } 174 }
175 175
176 int GetTouchId(const base::NativeEvent& native_event) { 176 int GetTouchId(const base::NativeEvent& native_event) {
177 NOTIMPLEMENTED(); 177 NOTIMPLEMENTED();
178 return 0; 178 return 0;
179 } 179 }
180 180
181 float GetTouchRadiusX(const base::NativeEvent& native_event) {
182 NOTIMPLEMENTED();
183 return 0.f;
184 }
185
186 float GetTouchRadiusY(const base::NativeEvent& native_event) {
187 NOTIMPLEMENTED();
188 return 0.f;
189 }
190
191 float GetTouchAngle(const base::NativeEvent& native_event) { 181 float GetTouchAngle(const base::NativeEvent& native_event) {
192 NOTIMPLEMENTED(); 182 NOTIMPLEMENTED();
193 return 0.f; 183 return 0.f;
194 } 184 }
195 185
196 float GetTouchForce(const base::NativeEvent& native_event) { 186 PointerDetails GetTouchPointerDetailsFromNative(
187 const base::NativeEvent& native_event) {
197 NOTIMPLEMENTED(); 188 NOTIMPLEMENTED();
198 return 0.f; 189 return PointerDetails(EventPointerType::POINTER_TYPE_UNKNOWN,
190 /* radius_x */ 1.0,
191 /* radius_y */ 1.0,
192 /* force */ 0.f,
193 /* tilt_x */ 0.f,
194 /* tilt_y */ 0.f);
199 } 195 }
200 196
201 bool GetScrollOffsets(const base::NativeEvent& native_event, 197 bool GetScrollOffsets(const base::NativeEvent& native_event,
202 float* x_offset, 198 float* x_offset,
203 float* y_offset, 199 float* y_offset,
204 float* x_offset_ordinal, 200 float* x_offset_ordinal,
205 float* y_offset_ordinal, 201 float* y_offset_ordinal,
206 int* finger_count) { 202 int* finger_count) {
207 NOTIMPLEMENTED(); 203 NOTIMPLEMENTED();
208 return false; 204 return false;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 uint16_t return_value; 262 uint16_t return_value;
267 [text getCharacters:&return_value]; 263 [text getCharacters:&return_value];
268 return return_value; 264 return return_value;
269 } 265 }
270 266
271 bool IsCharFromNative(const base::NativeEvent& native_event) { 267 bool IsCharFromNative(const base::NativeEvent& native_event) {
272 return false; 268 return false;
273 } 269 }
274 270
275 } // namespace ui 271 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698