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

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

Issue 755403006: Added experimental Touch.tilt, Touch.tiltDirection support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code (event_sender.cc) Created 5 years, 9 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 | « content/shell/renderer/test_runner/event_sender.cc ('k') | ui/events/event.h » ('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 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "base/mac/mac_util.h" 10 #import "base/mac/mac_util.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 float GetTouchRadiusY(const base::NativeEvent& native_event) { 178 float GetTouchRadiusY(const base::NativeEvent& native_event) {
179 NOTIMPLEMENTED(); 179 NOTIMPLEMENTED();
180 return 0.f; 180 return 0.f;
181 } 181 }
182 182
183 float GetTouchAngle(const base::NativeEvent& native_event) { 183 float GetTouchAngle(const base::NativeEvent& native_event) {
184 NOTIMPLEMENTED(); 184 NOTIMPLEMENTED();
185 return 0.f; 185 return 0.f;
186 } 186 }
187 187
188 float GetTouchTilt(const base::NativeEvent& native_event) {
189 NOTIMPLEMENTED();
190 return 0.f;
191 }
192
193 float GetTouchTiltDirection(const base::NativeEvent& native_event) {
194 NOTIMPLEMENTED();
195 return 0.f;
196 }
197
188 float GetTouchForce(const base::NativeEvent& native_event) { 198 float GetTouchForce(const base::NativeEvent& native_event) {
189 NOTIMPLEMENTED(); 199 NOTIMPLEMENTED();
190 return 0.f; 200 return 0.f;
191 } 201 }
192 202
193 bool GetScrollOffsets(const base::NativeEvent& native_event, 203 bool GetScrollOffsets(const base::NativeEvent& native_event,
194 float* x_offset, 204 float* x_offset,
195 float* y_offset, 205 float* y_offset,
196 float* x_offset_ordinal, 206 float* x_offset_ordinal,
197 float* y_offset_ordinal, 207 float* y_offset_ordinal,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 uint16 return_value; 272 uint16 return_value;
263 [text getCharacters:&return_value]; 273 [text getCharacters:&return_value];
264 return return_value; 274 return return_value;
265 } 275 }
266 276
267 bool IsCharFromNative(const base::NativeEvent& native_event) { 277 bool IsCharFromNative(const base::NativeEvent& native_event) {
268 return false; 278 return false;
269 } 279 }
270 280
271 } // namespace ui 281 } // namespace ui
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/event_sender.cc ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698