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

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

Issue 405683002: ui: Remove some unnecessary functions from the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/device_uma.cc ('k') | ui/events/event_utils.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 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return false; 197 return false;
198 } 198 }
199 199
200 bool GetGestureTimes(const base::NativeEvent& native_event, 200 bool GetGestureTimes(const base::NativeEvent& native_event,
201 double* start_time, 201 double* start_time,
202 double* end_time) { 202 double* end_time) {
203 NOTIMPLEMENTED(); 203 NOTIMPLEMENTED();
204 return false; 204 return false;
205 } 205 }
206 206
207 void SetNaturalScroll(bool enabled) {
208 NOTIMPLEMENTED();
209 }
210
211 bool IsNaturalScrollEnabled() {
212 NOTIMPLEMENTED();
213 return false;
214 }
215
216 bool IsTouchpadEvent(const base::NativeEvent& native_event) {
217 NOTIMPLEMENTED();
218 return false;
219 }
220
221 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { 207 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
222 return KeyboardCodeFromNSEvent(native_event); 208 return KeyboardCodeFromNSEvent(native_event);
223 } 209 }
224 210
225 const char* CodeFromNative(const base::NativeEvent& native_event) { 211 const char* CodeFromNative(const base::NativeEvent& native_event) {
226 return CodeFromNSEvent(native_event); 212 return CodeFromNSEvent(native_event);
227 } 213 }
228 214
229 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { 215 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
230 return native_event.keyCode; 216 return native_event.keyCode;
231 } 217 }
232 218
233 } // namespace ui 219 } // namespace ui
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/device_uma.cc ('k') | ui/events/event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698