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

Side by Side Diff: ui/events/win/events_win.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: Fix non-linux platforms. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <windowsx.h> 5 #include <windowsx.h>
6 6
7 #include "ui/events/event_constants.h" 7 #include "ui/events/event_constants.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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0); 283 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0);
284 } 284 }
285 285
286 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 286 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
287 return event; 287 return event;
288 } 288 }
289 289
290 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { 290 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
291 } 291 }
292 292
293 void IncrementTouchIdRefCount(const base::NativeEvent& event) {
294 NOTIMPLEMENTED();
295 }
296
293 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { 297 void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
294 NOTIMPLEMENTED(); 298 NOTIMPLEMENTED();
295 } 299 }
296 300
297 int GetTouchId(const base::NativeEvent& xev) { 301 int GetTouchId(const base::NativeEvent& xev) {
298 NOTIMPLEMENTED(); 302 NOTIMPLEMENTED();
299 return 0; 303 return 0;
300 } 304 }
301 305
302 float GetTouchRadiusX(const base::NativeEvent& native_event) { 306 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 419 }
416 420
417 LPARAM GetLParamFromScanCode(uint16 scan_code) { 421 LPARAM GetLParamFromScanCode(uint16 scan_code) {
418 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; 422 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16;
419 if ((scan_code & 0xE000) == 0xE000) 423 if ((scan_code & 0xE000) == 0xE000)
420 l_param |= (1 << 24); 424 l_param |= (1 << 24);
421 return l_param; 425 return l_param;
422 } 426 }
423 427
424 } // namespace ui 428 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698