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

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

Issue 400213002: Refcount touch tracking ids to prevent freeing them too early. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ui::TouchEvents in test. Created 6 years, 5 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
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 platforms that 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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 63 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
64 NOTIMPLEMENTED() << 64 NOTIMPLEMENTED() <<
65 "Don't know how to copy base::NativeEvent for this platform"; 65 "Don't know how to copy base::NativeEvent for this platform";
66 return NULL; 66 return NULL;
67 } 67 }
68 68
69 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 69 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
70 } 70 }
71 71
72 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
73 NOTIMPLEMENTED();
74 }
75
72 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 76 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
73 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
74 } 78 }
75 79
76 int GetTouchId(const base::NativeEvent& native_event) { 80 int GetTouchId(const base::NativeEvent& native_event) {
77 NOTIMPLEMENTED(); 81 NOTIMPLEMENTED();
78 return 0; 82 return 0;
79 } 83 }
80 84
81 float GetTouchRadiusX(const base::NativeEvent& native_event) { 85 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 NOTIMPLEMENTED(); 138 NOTIMPLEMENTED();
135 return ""; 139 return "";
136 } 140 }
137 141
138 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { 142 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
139 NOTIMPLEMENTED(); 143 NOTIMPLEMENTED();
140 return 0; 144 return 0;
141 } 145 }
142 146
143 } // namespace ui 147 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698