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

Side by Side Diff: public/web/WebInputEvent.h

Issue 560493003: Remove WebTouchEvent.changedTouches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@input_remove_target_changed_touches
Patch Set: Fix test Created 6 years, 3 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 | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 class WebTouchEvent : public WebInputEvent { 484 class WebTouchEvent : public WebInputEvent {
485 public: 485 public:
486 // Maximum number of simultaneous touches supported on 486 // Maximum number of simultaneous touches supported on
487 // Ash/Aura. 487 // Ash/Aura.
488 enum { touchesLengthCap = 12 }; 488 enum { touchesLengthCap = 12 };
489 489
490 unsigned touchesLength; 490 unsigned touchesLength;
491 // List of all touches, regardless of state. 491 // List of all touches, regardless of state.
492 WebTouchPoint touches[touchesLengthCap]; 492 WebTouchPoint touches[touchesLengthCap];
493 493
494 // FIXME: Remove after eliminating downstream references, crbug.com/358132.
495 unsigned changedTouchesLength;
496 // List of all touches whose state has changed since the last WebTouchEvent
497 WebTouchPoint changedTouches[touchesLengthCap];
498
499 // Whether the event can be canceled (with preventDefault). If true then the browser 494 // Whether the event can be canceled (with preventDefault). If true then the browser
500 // must wait for an ACK for this event. If false then no ACK IPC is expected . 495 // must wait for an ACK for this event. If false then no ACK IPC is expected .
501 // See comment at the top for why an int is used here instead of a bool. 496 // See comment at the top for why an int is used here instead of a bool.
502 int cancelable; 497 int cancelable;
503 498
504 WebTouchEvent() 499 WebTouchEvent()
505 : WebInputEvent(sizeof(WebTouchEvent)) 500 : WebInputEvent(sizeof(WebTouchEvent))
506 , touchesLength(0) 501 , touchesLength(0)
507 , changedTouchesLength(0)
508 , cancelable(true) 502 , cancelable(true)
509 { 503 {
510 } 504 }
511 }; 505 };
512 506
513 #pragma pack(pop) 507 #pragma pack(pop)
514 508
515 } // namespace blink 509 } // namespace blink
516 510
517 #endif 511 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698