Add ICU message format support
[chromium-blink-merge.git] / ui / events / events_stub.cc
blob99fdf2237603c5c5ed6a21d27265abb98141d48f
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.
5 #include "base/logging.h"
6 #include "base/time/time.h"
7 #include "build/build_config.h"
8 #include "ui/events/event_utils.h"
9 #include "ui/events/keycodes/dom/dom_code.h"
10 #include "ui/gfx/geometry/point.h"
11 #include "ui/gfx/geometry/vector2d.h"
13 namespace ui {
15 // Stub implementations of platform-specific methods in events_util.h, built
16 // on platforms that currently do not have a complete implementation of events.
18 void UpdateDeviceList() {
19 NOTIMPLEMENTED();
22 EventType EventTypeFromNative(const base::NativeEvent& native_event) {
23 NOTIMPLEMENTED();
24 return ET_UNKNOWN;
27 int EventFlagsFromNative(const base::NativeEvent& native_event) {
28 NOTIMPLEMENTED();
29 return 0;
32 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
33 NOTIMPLEMENTED();
34 return base::TimeDelta();
37 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
38 NOTIMPLEMENTED();
39 return gfx::Point();
42 gfx::Point EventSystemLocationFromNative(
43 const base::NativeEvent& native_event) {
44 NOTIMPLEMENTED();
45 return gfx::Point();
48 int EventButtonFromNative(const base::NativeEvent& native_event) {
49 NOTIMPLEMENTED();
50 return 0;
53 int GetChangedMouseButtonFlagsFromNative(
54 const base::NativeEvent& native_event) {
55 NOTIMPLEMENTED();
56 return 0;
59 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
60 NOTIMPLEMENTED();
61 return gfx::Vector2d();
64 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
65 NOTIMPLEMENTED() <<
66 "Don't know how to copy base::NativeEvent for this platform";
67 return NULL;
70 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
73 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
74 NOTIMPLEMENTED();
77 int GetTouchId(const base::NativeEvent& native_event) {
78 NOTIMPLEMENTED();
79 return 0;
82 float GetTouchRadiusX(const base::NativeEvent& native_event) {
83 NOTIMPLEMENTED();
84 return 0.f;
87 float GetTouchRadiusY(const base::NativeEvent& native_event) {
88 NOTIMPLEMENTED();
89 return 0.f;
92 float GetTouchAngle(const base::NativeEvent& native_event) {
93 NOTIMPLEMENTED();
94 return 0.f;
97 float GetTouchForce(const base::NativeEvent& native_event) {
98 NOTIMPLEMENTED();
99 return 0.f;
102 bool GetScrollOffsets(const base::NativeEvent& native_event,
103 float* x_offset,
104 float* y_offset,
105 float* x_offset_ordinal,
106 float* y_offset_ordinal,
107 int* finger_count) {
108 NOTIMPLEMENTED();
109 return false;
112 bool GetFlingData(const base::NativeEvent& native_event,
113 float* vx,
114 float* vy,
115 float* vx_ordinal,
116 float* vy_ordinal,
117 bool* is_cancel) {
118 NOTIMPLEMENTED();
119 return false;
122 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
123 NOTIMPLEMENTED();
124 return static_cast<KeyboardCode>(0);
127 DomCode CodeFromNative(const base::NativeEvent& native_event) {
128 NOTIMPLEMENTED();
129 return DomCode::NONE;
132 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
133 NOTIMPLEMENTED();
134 return 0;
137 bool IsCharFromNative(const base::NativeEvent& native_event) {
138 NOTIMPLEMENTED();
139 return false;
142 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
143 NOTIMPLEMENTED();
144 return 0;
147 uint16 TextFromNative(const base::NativeEvent& native_event) {
148 NOTIMPLEMENTED();
149 return 0;
152 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
153 NOTIMPLEMENTED();
154 return 0;
158 } // namespace ui