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

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

Issue 251493002: MacViews: Implement basic NSEvent -> ui::Event conversion for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 8 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
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/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/vector2d.h" 10 #include "ui/gfx/vector2d.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // Stub implementations of platform-specific methods in events_util.h, built 14 // Stub implementations of platform-specific methods in events_util.h, built
15 // on platform sthat currently do not have a complete implementation of events. 15 // on platform sthat currently do not have a complete implementation of events.
16 16
17 void UpdateDeviceList() { 17 void UpdateDeviceList() {
18 NOTIMPLEMENTED(); 18 NOTIMPLEMENTED();
19 } 19 }
20 20
21 EventType EventTypeFromNative(const base::NativeEvent& native_event) { 21 EventType EventTypeFromNative(const base::NativeEvent& native_event) {
22 NOTIMPLEMENTED(); 22 NOTIMPLEMENTED();
23 return ET_UNKNOWN; 23 return ET_UNKNOWN;
24 } 24 }
25 25
26 #if !defined(OS_MACOSX) 26 #if !defined(OS_MACOSX)
sadrul 2014/04/25 11:40:28 I think you can remove this now.
tapted 2014/04/28 07:39:49 Done.
27 int EventFlagsFromNative(const base::NativeEvent& native_event) { 27 int EventFlagsFromNative(const base::NativeEvent& native_event) {
28 NOTIMPLEMENTED(); 28 NOTIMPLEMENTED();
29 return 0; 29 return 0;
30 } 30 }
31 #endif 31 #endif
32 32
33 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { 33 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
34 NOTIMPLEMENTED(); 34 NOTIMPLEMENTED();
35 return base::TimeDelta(); 35 return base::TimeDelta();
36 } 36 }
(...skipping 18 matching lines...) Expand all
55 const base::NativeEvent& native_event) { 55 const base::NativeEvent& native_event) {
56 NOTIMPLEMENTED(); 56 NOTIMPLEMENTED();
57 return 0; 57 return 0;
58 } 58 }
59 59
60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { 60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
61 NOTIMPLEMENTED(); 61 NOTIMPLEMENTED();
62 return gfx::Vector2d(); 62 return gfx::Vector2d();
63 } 63 }
64 64
65 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
66 NOTIMPLEMENTED() <<
67 "Don't know how to copy base::NativeEvent for this platform";
68 return NULL;
69 }
70
71 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
72 }
73
65 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 74 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
66 NOTIMPLEMENTED(); 75 NOTIMPLEMENTED();
67 } 76 }
68 77
69 int GetTouchId(const base::NativeEvent& native_event) { 78 int GetTouchId(const base::NativeEvent& native_event) {
70 NOTIMPLEMENTED(); 79 NOTIMPLEMENTED();
71 return 0; 80 return 0;
72 } 81 }
73 82
74 float GetTouchRadiusX(const base::NativeEvent& native_event) { 83 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 NOTIMPLEMENTED(); 145 NOTIMPLEMENTED();
137 return static_cast<KeyboardCode>(0); 146 return static_cast<KeyboardCode>(0);
138 } 147 }
139 148
140 const char* CodeFromNative(const base::NativeEvent& native_event) { 149 const char* CodeFromNative(const base::NativeEvent& native_event) {
141 NOTIMPLEMENTED(); 150 NOTIMPLEMENTED();
142 return ""; 151 return "";
143 } 152 }
144 153
145 } // namespace ui 154 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698