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

Side by Side Diff: ui/events/cocoa/events_mac.mm

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 | « no previous file | ui/events/event.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/event_utils.h" 5 #include "ui/events/event_utils.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 143 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
144 return [event copy]; 144 return [event copy];
145 } 145 }
146 146
147 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 147 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
148 [event release]; 148 [event release];
149 } 149 }
150 150
151 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
152 NOTIMPLEMENTED();
153 }
154
151 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 155 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
152 NOTIMPLEMENTED(); 156 NOTIMPLEMENTED();
153 } 157 }
154 158
155 int GetTouchId(const base::NativeEvent& native_event) { 159 int GetTouchId(const base::NativeEvent& native_event) {
156 NOTIMPLEMENTED(); 160 NOTIMPLEMENTED();
157 return 0; 161 return 0;
158 } 162 }
159 163
160 float GetTouchRadiusX(const base::NativeEvent& native_event) { 164 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 214
211 const char* CodeFromNative(const base::NativeEvent& native_event) { 215 const char* CodeFromNative(const base::NativeEvent& native_event) {
212 return CodeFromNSEvent(native_event); 216 return CodeFromNSEvent(native_event);
213 } 217 }
214 218
215 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { 219 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
216 return native_event.keyCode; 220 return native_event.keyCode;
217 } 221 }
218 222
219 } // namespace ui 223 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698