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

Side by Side Diff: ui/events/ozone/events_ozone.cc

Issue 869433007: Revert of Don't refcount tracking id -> slot id mapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ui/events/events_stub.cc ('k') | ui/events/win/events_win.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 "ui/events/ozone/events_ozone.h" 5 #include "ui/events/ozone/events_ozone.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/events/event_constants.h" 8 #include "ui/events/event_constants.h"
9 #include "ui/events/event_utils.h" 9 #include "ui/events/event_utils.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return event->offset(); 79 return event->offset();
80 } 80 }
81 81
82 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 82 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
83 return NULL; 83 return NULL;
84 } 84 }
85 85
86 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 86 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
87 } 87 }
88 88
89 void IncrementTouchIdRefCount(const base::NativeEvent& event) {
90 }
91
89 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { 92 void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
90 } 93 }
91 94
92 int GetTouchId(const base::NativeEvent& native_event) { 95 int GetTouchId(const base::NativeEvent& native_event) {
93 const ui::TouchEvent* event = 96 const ui::TouchEvent* event =
94 static_cast<const ui::TouchEvent*>(native_event); 97 static_cast<const ui::TouchEvent*>(native_event);
95 DCHECK(event->IsTouchEvent()); 98 DCHECK(event->IsTouchEvent());
96 return event->touch_id(); 99 return event->touch_id();
97 } 100 }
98 101
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 callback.Run(&touch_event); 195 callback.Run(&touch_event);
193 } else if (native_ui_event->IsScrollEvent()) { 196 } else if (native_ui_event->IsScrollEvent()) {
194 ui::ScrollEvent scroll_event(native_event); 197 ui::ScrollEvent scroll_event(native_event);
195 callback.Run(&scroll_event); 198 callback.Run(&scroll_event);
196 } else { 199 } else {
197 NOTREACHED(); 200 NOTREACHED();
198 } 201 }
199 } 202 }
200 203
201 } // namespace ui 204 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/events_stub.cc ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698