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

Side by Side Diff: ui/events/ozone/events_ozone.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/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/event.h" 5 #include "ui/events/event.h"
6 #include "ui/events/event_constants.h" 6 #include "ui/events/event_constants.h"
7 #include "ui/events/event_utils.h" 7 #include "ui/events/event_utils.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return event->offset(); 71 return event->offset();
72 } 72 }
73 73
74 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 74 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
75 return NULL; 75 return NULL;
76 } 76 }
77 77
78 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 78 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
79 } 79 }
80 80
81 void IncrementTouchIdRefCount(const base::NativeEvent& event) {
82 }
83
81 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { 84 void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
82 } 85 }
83 86
84 int GetTouchId(const base::NativeEvent& native_event) { 87 int GetTouchId(const base::NativeEvent& native_event) {
85 const ui::TouchEvent* event = 88 const ui::TouchEvent* event =
86 static_cast<const ui::TouchEvent*>(native_event); 89 static_cast<const ui::TouchEvent*>(native_event);
87 DCHECK(event->IsTouchEvent()); 90 DCHECK(event->IsTouchEvent());
88 return event->touch_id(); 91 return event->touch_id();
89 } 92 }
90 93
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 *end_time = 0; 146 *end_time = 0;
144 return false; 147 return false;
145 } 148 }
146 149
147 int GetModifiersFromKeyState() { 150 int GetModifiersFromKeyState() {
148 NOTIMPLEMENTED(); 151 NOTIMPLEMENTED();
149 return 0; 152 return 0;
150 } 153 }
151 154
152 } // namespace ui 155 } // 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