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

Side by Side Diff: ui/events/win/events_win.cc

Issue 755403006: Added experimental Touch.tilt, Touch.tiltDirection support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code (event_sender.cc) Created 5 years, 9 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/test/event_generator.cc ('k') | ui/events/x/events_x.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) 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 float GetTouchRadiusY(const base::NativeEvent& native_event) { 320 float GetTouchRadiusY(const base::NativeEvent& native_event) {
321 NOTIMPLEMENTED(); 321 NOTIMPLEMENTED();
322 return 1.0; 322 return 1.0;
323 } 323 }
324 324
325 float GetTouchAngle(const base::NativeEvent& native_event) { 325 float GetTouchAngle(const base::NativeEvent& native_event) {
326 NOTIMPLEMENTED(); 326 NOTIMPLEMENTED();
327 return 0.0; 327 return 0.0;
328 } 328 }
329 329
330 float GetTouchTilt(const base::NativeEvent& native_event) {
331 NOTIMPLEMENTED();
332 return 0.0;
333 }
334
335 float GetTouchTiltDirection(const base::NativeEvent& native_event) {
336 NOTIMPLEMENTED();
337 return 0.0;
338 }
339
330 float GetTouchForce(const base::NativeEvent& native_event) { 340 float GetTouchForce(const base::NativeEvent& native_event) {
331 NOTIMPLEMENTED(); 341 NOTIMPLEMENTED();
332 return 0.0; 342 return 0.0;
333 } 343 }
334 344
335 bool GetScrollOffsets(const base::NativeEvent& native_event, 345 bool GetScrollOffsets(const base::NativeEvent& native_event,
336 float* x_offset, 346 float* x_offset,
337 float* y_offset, 347 float* y_offset,
338 float* x_offset_ordinal, 348 float* x_offset_ordinal,
339 float* y_offset_ordinal, 349 float* y_offset_ordinal,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 415 }
406 416
407 LPARAM GetLParamFromScanCode(uint16 scan_code) { 417 LPARAM GetLParamFromScanCode(uint16 scan_code) {
408 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; 418 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16;
409 if ((scan_code & 0xE000) == 0xE000) 419 if ((scan_code & 0xE000) == 0xE000)
410 l_param |= (1 << 24); 420 l_param |= (1 << 24);
411 return l_param; 421 return l_param;
412 } 422 }
413 423
414 } // namespace ui 424 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698