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

Unified Diff: client/touch/TouchUtil.dart

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get rid of html testing stuff and fix uses of init*Event. Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« client/touch/EventUtil.dart ('K') | « client/touch/EventUtil.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/touch/TouchUtil.dart
diff --git a/client/touch/TouchUtil.dart b/client/touch/TouchUtil.dart
index 1d6c160d42a436ddec2a87dee2a3bc6571f84848..3bd590439d6cb5297aa97a8c6c019b5fd804c7c9 100644
--- a/client/touch/TouchUtil.dart
+++ b/client/touch/TouchUtil.dart
@@ -208,11 +208,6 @@ class MockTouchEvent implements TouchEvent {
String get type() => wrapped.type;
- void initEvent(String eventTypeArg, bool canBubbleArg,
- bool cancelableArg) {
- wrapped.initEvent(eventTypeArg, canBubbleArg, cancelableArg);
- }
-
void preventDefault() { wrapped.preventDefault(); }
void stopImmediatePropagation() { wrapped.stopImmediatePropagation(); }
@@ -237,12 +232,6 @@ class MockTouchEvent implements TouchEvent {
int get which() => wrapped.which;
- void initUIEvent(String type, bool canBubble,
- bool cancelable, Window view,
- int detail) {
- wrapped.initUIEvent(type, canBubble, cancelable, view, detail);
- }
-
bool get altKey() => wrapped.altKey;
bool get ctrlKey() => wrapped.ctrlKey;
@@ -250,14 +239,4 @@ class MockTouchEvent implements TouchEvent {
bool get metaKey() => wrapped.metaKey;
bool get shiftKey() => wrapped.shiftKey;
-
- void initTouchEvent(TouchList touches, TouchList targetTouches,
Jacob 2011/10/27 23:16:05 nice... removing the ugly initXXXEvent methods had
- TouchList changedTouches, String type,
- Window view, int screenX,
- int screenY, int clientX,
- int clientY, bool ctrlKey,
- bool altKey, bool shiftKey,
- bool metaKey) {
- throw "unimplemented";
- }
}
« client/touch/EventUtil.dart ('K') | « client/touch/EventUtil.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698