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

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

Issue 2647253002: Add tangentialPressure and twist properties to PointerEvent on Windows (Closed)
Patch Set: rotation Created 3 years, 10 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 "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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 186 }
187 187
188 PointerDetails GetTouchPointerDetailsFromNative( 188 PointerDetails GetTouchPointerDetailsFromNative(
189 const base::NativeEvent& native_event) { 189 const base::NativeEvent& native_event) {
190 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
191 return PointerDetails(EventPointerType::POINTER_TYPE_UNKNOWN, 191 return PointerDetails(EventPointerType::POINTER_TYPE_UNKNOWN,
192 /* radius_x */ 1.0, 192 /* radius_x */ 1.0,
193 /* radius_y */ 1.0, 193 /* radius_y */ 1.0,
194 /* force */ 0.f, 194 /* force */ 0.f,
195 /* tilt_x */ 0.f, 195 /* tilt_x */ 0.f,
196 /* tilt_y */ 0.f); 196 /* tilt_y */ 0.f,
197 /* tangentialPressure */ 0.0f,
198 /* twist */ 0);
197 } 199 }
198 200
199 bool GetScrollOffsets(const base::NativeEvent& native_event, 201 bool GetScrollOffsets(const base::NativeEvent& native_event,
200 float* x_offset, 202 float* x_offset,
201 float* y_offset, 203 float* y_offset,
202 float* x_offset_ordinal, 204 float* x_offset_ordinal,
203 float* y_offset_ordinal, 205 float* y_offset_ordinal,
204 int* finger_count, 206 int* finger_count,
205 EventMomentumPhase* momentum_phase) { 207 EventMomentumPhase* momentum_phase) {
206 gfx::Vector2d offset = GetMouseWheelOffset(native_event); 208 gfx::Vector2d offset = GetMouseWheelOffset(native_event);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 uint16_t return_value; 305 uint16_t return_value;
304 [text getCharacters:&return_value]; 306 [text getCharacters:&return_value];
305 return return_value; 307 return return_value;
306 } 308 }
307 309
308 bool IsCharFromNative(const base::NativeEvent& native_event) { 310 bool IsCharFromNative(const base::NativeEvent& native_event) {
309 return false; 311 return false;
310 } 312 }
311 313
312 } // namespace ui 314 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698