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

Side by Side Diff: ui/events/platform/platform_event_stub.cc

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "base/time/time.h"
7 #include "build/build_config.h"
8 #include "ui/events/event_constants.h"
9 #include "ui/events/event_utils.h"
10 #include "ui/events/keycodes/keyboard_codes.h"
11 #include "ui/gfx/point.h"
12 #include "ui/gfx/vector2d.h"
13
14 namespace ui {
15
16 // Stub implementations of platform-specific methods in events_util.h, built
17 // on platforms that currently do not have a complete implementation of events.
18
19 void UpdateDeviceList() {
20 NOTIMPLEMENTED();
21 }
22
23 EventType EventTypeFromNative(const base::NativeEvent& native_event) {
24 NOTIMPLEMENTED();
25 return ET_UNKNOWN;
26 }
27
28 int EventFlagsFromNative(const base::NativeEvent& native_event) {
29 NOTIMPLEMENTED();
30 return 0;
31 }
32
33 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
34 NOTIMPLEMENTED();
35 return base::TimeDelta();
36 }
37
38 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
39 NOTIMPLEMENTED();
40 return gfx::Point();
41 }
42
43 gfx::Point EventSystemLocationFromNative(
44 const base::NativeEvent& native_event) {
45 NOTIMPLEMENTED();
46 return gfx::Point();
47 }
48
49 int EventButtonFromNative(const base::NativeEvent& native_event) {
50 NOTIMPLEMENTED();
51 return 0;
52 }
53
54 int GetChangedMouseButtonFlagsFromNative(
55 const base::NativeEvent& native_event) {
56 NOTIMPLEMENTED();
57 return 0;
58 }
59
60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
61 NOTIMPLEMENTED();
62 return gfx::Vector2d();
63 }
64
65 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
66 NOTIMPLEMENTED();
67 }
68
69 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
70 NOTIMPLEMENTED();
71 }
72
73 int GetTouchId(const base::NativeEvent& native_event) {
74 NOTIMPLEMENTED();
75 return 0;
76 }
77
78 float GetTouchRadiusX(const base::NativeEvent& native_event) {
79 NOTIMPLEMENTED();
80 return 0.f;
81 }
82
83 float GetTouchRadiusY(const base::NativeEvent& native_event) {
84 NOTIMPLEMENTED();
85 return 0.f;
86 }
87
88 float GetTouchAngle(const base::NativeEvent& native_event) {
89 NOTIMPLEMENTED();
90 return 0.f;
91 }
92
93 float GetTouchForce(const base::NativeEvent& native_event) {
94 NOTIMPLEMENTED();
95 return 0.f;
96 }
97
98 bool GetScrollOffsets(const base::NativeEvent& native_event,
99 float* x_offset,
100 float* y_offset,
101 float* x_offset_ordinal,
102 float* y_offset_ordinal,
103 int* finger_count) {
104 NOTIMPLEMENTED();
105 return false;
106 }
107
108 bool GetFlingData(const base::NativeEvent& native_event,
109 float* vx,
110 float* vy,
111 float* vx_ordinal,
112 float* vy_ordinal,
113 bool* is_cancel) {
114 NOTIMPLEMENTED();
115 return false;
116 }
117
118 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
119 NOTIMPLEMENTED();
120 return static_cast<KeyboardCode>(0);
121 }
122
123 const char* CodeFromNative(const base::NativeEvent& native_event) {
124 NOTIMPLEMENTED();
125 return "";
126 }
127
128 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
129 NOTIMPLEMENTED();
130 return 0;
131 }
132
133 bool IsCharFromNative(const base::NativeEvent& native_event) {
134 NOTIMPLEMENTED();
135 return false;
136 }
137
138 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
139 NOTIMPLEMENTED();
140 return 0;
141 }
142
143 uint16 TextFromNative(const base::NativeEvent& native_event) {
144 NOTIMPLEMENTED();
145 return 0;
146 }
147
148 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
149 NOTIMPLEMENTED();
150 return 0;
151 }
152
153
154 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/events/platform/platform_event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698