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

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

Issue 785753002: Don't refcount tracking id -> slot id mapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sadrul's comments. Created 5 years, 10 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
« no previous file with comments | « no previous file | ui/events/devices/x11/touch_factory_x11.h » ('j') | ui/events/event.h » ('J')
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 #import "base/mac/mac_util.h" 10 #import "base/mac/mac_util.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 155 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
156 return [event copy]; 156 return [event copy];
157 } 157 }
158 158
159 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 159 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
160 [event release]; 160 [event release];
161 } 161 }
162 162
163 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
164 NOTIMPLEMENTED();
165 }
166
167 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 163 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
168 NOTIMPLEMENTED(); 164 NOTIMPLEMENTED();
169 } 165 }
170 166
171 int GetTouchId(const base::NativeEvent& native_event) { 167 int GetTouchId(const base::NativeEvent& native_event) {
172 NOTIMPLEMENTED(); 168 NOTIMPLEMENTED();
173 return 0; 169 return 0;
174 } 170 }
175 171
176 float GetTouchRadiusX(const base::NativeEvent& native_event) { 172 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 uint16 return_value; 261 uint16 return_value;
266 [text getCharacters:&return_value]; 262 [text getCharacters:&return_value];
267 return return_value; 263 return return_value;
268 } 264 }
269 265
270 bool IsCharFromNative(const base::NativeEvent& native_event) { 266 bool IsCharFromNative(const base::NativeEvent& native_event) {
271 return false; 267 return false;
272 } 268 }
273 269
274 } // namespace ui 270 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/events/devices/x11/touch_factory_x11.h » ('j') | ui/events/event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698