Chromecast on Android buildfix: don't try to create a RendererFactory.
[chromium-blink-merge.git] / ui / events / events_stub.cc
blobd021497f8f795f8c2d6c12e3a9253ab2945a7e36
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/dom3/dom_code.h"
10 #include "ui/gfx/point.h"
11 #include "ui/gfx/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 IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
74 NOTIMPLEMENTED();
77 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
78 NOTIMPLEMENTED();
81 int GetTouchId(const base::NativeEvent& native_event) {
82 NOTIMPLEMENTED();
83 return 0;
86 float GetTouchRadiusX(const base::NativeEvent& native_event) {
87 NOTIMPLEMENTED();
88 return 0.f;
91 float GetTouchRadiusY(const base::NativeEvent& native_event) {
92 NOTIMPLEMENTED();
93 return 0.f;
96 float GetTouchAngle(const base::NativeEvent& native_event) {
97 NOTIMPLEMENTED();
98 return 0.f;
101 float GetTouchForce(const base::NativeEvent& native_event) {
102 NOTIMPLEMENTED();
103 return 0.f;
106 bool GetScrollOffsets(const base::NativeEvent& native_event,
107 float* x_offset,
108 float* y_offset,
109 float* x_offset_ordinal,
110 float* y_offset_ordinal,
111 int* finger_count) {
112 NOTIMPLEMENTED();
113 return false;
116 bool GetFlingData(const base::NativeEvent& native_event,
117 float* vx,
118 float* vy,
119 float* vx_ordinal,
120 float* vy_ordinal,
121 bool* is_cancel) {
122 NOTIMPLEMENTED();
123 return false;
126 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
127 NOTIMPLEMENTED();
128 return static_cast<KeyboardCode>(0);
131 DomCode CodeFromNative(const base::NativeEvent& native_event) {
132 NOTIMPLEMENTED();
133 return DomCode::NONE;
136 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
137 NOTIMPLEMENTED();
138 return 0;
141 bool IsCharFromNative(const base::NativeEvent& native_event) {
142 NOTIMPLEMENTED();
143 return false;
146 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
147 NOTIMPLEMENTED();
148 return 0;
151 uint16 TextFromNative(const base::NativeEvent& native_event) {
152 NOTIMPLEMENTED();
153 return 0;
156 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
157 NOTIMPLEMENTED();
158 return 0;
162 } // namespace ui