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

Side by Side Diff: ui/events/events_stub.cc

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 | « ui/events/event_utils.h ('k') | ui/events/gesture_detection/motion_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/time/time.h" 6 #include "base/time/time.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/events/event_utils.h" 8 #include "ui/events/event_utils.h"
9 #include "ui/events/keycodes/dom3/dom_code.h" 9 #include "ui/events/keycodes/dom3/dom_code.h"
10 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 float GetTouchRadiusY(const base::NativeEvent& native_event) { 87 float GetTouchRadiusY(const base::NativeEvent& native_event) {
88 NOTIMPLEMENTED(); 88 NOTIMPLEMENTED();
89 return 0.f; 89 return 0.f;
90 } 90 }
91 91
92 float GetTouchAngle(const base::NativeEvent& native_event) { 92 float GetTouchAngle(const base::NativeEvent& native_event) {
93 NOTIMPLEMENTED(); 93 NOTIMPLEMENTED();
94 return 0.f; 94 return 0.f;
95 } 95 }
96 96
97 float GetTouchTilt(const base::NativeEvent& native_event) {
98 NOTIMPLEMENTED();
99 return std::numeric_limits<float>::quiet_NaN();
100 }
101
102 float GetTouchTiltDirection(const base::NativeEvent& native_event) {
103 NOTIMPLEMENTED();
104 return std::numeric_limits<float>::quiet_NaN();
105 }
106
97 float GetTouchForce(const base::NativeEvent& native_event) { 107 float GetTouchForce(const base::NativeEvent& native_event) {
98 NOTIMPLEMENTED(); 108 NOTIMPLEMENTED();
99 return 0.f; 109 return 0.f;
100 } 110 }
101 111
102 bool GetScrollOffsets(const base::NativeEvent& native_event, 112 bool GetScrollOffsets(const base::NativeEvent& native_event,
103 float* x_offset, 113 float* x_offset,
104 float* y_offset, 114 float* y_offset,
105 float* x_offset_ordinal, 115 float* x_offset_ordinal,
106 float* y_offset_ordinal, 116 float* y_offset_ordinal,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return 0; 159 return 0;
150 } 160 }
151 161
152 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) { 162 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
153 NOTIMPLEMENTED(); 163 NOTIMPLEMENTED();
154 return 0; 164 return 0;
155 } 165 }
156 166
157 167
158 } // namespace ui 168 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/events/gesture_detection/motion_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698