Update Smart lock strings in chrome://settings.
[chromium-blink-merge.git] / ui / events / events_stub.cc
blob5c8397400a5d4e4e64979a931d4a1ce8ff7748c7
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/gfx/point.h"
10 #include "ui/gfx/vector2d.h"
12 namespace ui {
14 // Stub implementations of platform-specific methods in events_util.h, built
15 // on platforms that currently do not have a complete implementation of events.
17 void UpdateDeviceList() {
18 NOTIMPLEMENTED();
21 EventType EventTypeFromNative(const base::NativeEvent& native_event) {
22 NOTIMPLEMENTED();
23 return ET_UNKNOWN;
26 int EventFlagsFromNative(const base::NativeEvent& native_event) {
27 NOTIMPLEMENTED();
28 return 0;
31 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
32 NOTIMPLEMENTED();
33 return base::TimeDelta();
36 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
37 NOTIMPLEMENTED();
38 return gfx::Point();
41 gfx::Point EventSystemLocationFromNative(
42 const base::NativeEvent& native_event) {
43 NOTIMPLEMENTED();
44 return gfx::Point();
47 int EventButtonFromNative(const base::NativeEvent& native_event) {
48 NOTIMPLEMENTED();
49 return 0;
52 int GetChangedMouseButtonFlagsFromNative(
53 const base::NativeEvent& native_event) {
54 NOTIMPLEMENTED();
55 return 0;
58 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
59 NOTIMPLEMENTED();
60 return gfx::Vector2d();
63 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
64 NOTIMPLEMENTED() <<
65 "Don't know how to copy base::NativeEvent for this platform";
66 return NULL;
69 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
72 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
73 NOTIMPLEMENTED();
76 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
77 NOTIMPLEMENTED();
80 int GetTouchId(const base::NativeEvent& native_event) {
81 NOTIMPLEMENTED();
82 return 0;
85 float GetTouchRadiusX(const base::NativeEvent& native_event) {
86 NOTIMPLEMENTED();
87 return 0.f;
90 float GetTouchRadiusY(const base::NativeEvent& native_event) {
91 NOTIMPLEMENTED();
92 return 0.f;
95 float GetTouchAngle(const base::NativeEvent& native_event) {
96 NOTIMPLEMENTED();
97 return 0.f;
100 float GetTouchForce(const base::NativeEvent& native_event) {
101 NOTIMPLEMENTED();
102 return 0.f;
105 bool GetScrollOffsets(const base::NativeEvent& native_event,
106 float* x_offset,
107 float* y_offset,
108 float* x_offset_ordinal,
109 float* y_offset_ordinal,
110 int* finger_count) {
111 NOTIMPLEMENTED();
112 return false;
115 bool GetFlingData(const base::NativeEvent& native_event,
116 float* vx,
117 float* vy,
118 float* vx_ordinal,
119 float* vy_ordinal,
120 bool* is_cancel) {
121 NOTIMPLEMENTED();
122 return false;
125 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
126 NOTIMPLEMENTED();
127 return static_cast<KeyboardCode>(0);
130 const char* CodeFromNative(const base::NativeEvent& native_event) {
131 NOTIMPLEMENTED();
132 return "";
135 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
136 NOTIMPLEMENTED();
137 return 0;
140 bool IsCharFromNative(const base::NativeEvent& native_event) {
141 NOTIMPLEMENTED();
142 return false;
145 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
146 NOTIMPLEMENTED();
147 return 0;
150 uint16 TextFromNative(const base::NativeEvent& native_event) {
151 NOTIMPLEMENTED();
152 return 0;
155 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
156 NOTIMPLEMENTED();
157 return 0;
161 } // namespace ui