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

Side by Side Diff: tools/dom/src/dartium_KeyEvent.dart

Issue 1775923002: Chrome moved clipboardData from Event to ClipboardEvent for security clipboard can only be accessed… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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 | « tools/dom/src/dart2js_WrappedEvent.dart ('k') | tools/dom/src/dartium_WrappedEvent.dart » ('j') | 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 * A custom KeyboardEvent that attempts to eliminate cross-browser 2 * A custom KeyboardEvent that attempts to eliminate cross-browser
3 * inconsistencies, and also provide both keyCode and charCode information 3 * inconsistencies, and also provide both keyCode and charCode information
4 * for all key events (when such information can be determined). 4 * for all key events (when such information can be determined).
5 * 5 *
6 * KeyEvent tries to provide a higher level, more polished keyboard event 6 * KeyEvent tries to provide a higher level, more polished keyboard event
7 * information on top of the "raw" [KeyboardEvent]. 7 * information on top of the "raw" [KeyboardEvent].
8 * 8 *
9 * The mechanics of using KeyEvents is a little different from the underlying 9 * The mechanics of using KeyEvents is a little different from the underlying
10 * [KeyboardEvent]. To use KeyEvents, you need to create a stream and then add 10 * [KeyboardEvent]. To use KeyEvents, you need to create a stream and then add
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 /** Accessor to provide a stream of KeyEvents on the desired target. */ 106 /** Accessor to provide a stream of KeyEvents on the desired target. */
107 static EventStreamProvider<KeyEvent> keyUpEvent = 107 static EventStreamProvider<KeyEvent> keyUpEvent =
108 new _KeyboardEventHandler('keyup'); 108 new _KeyboardEventHandler('keyup');
109 /** Accessor to provide a stream of KeyEvents on the desired target. */ 109 /** Accessor to provide a stream of KeyEvents on the desired target. */
110 static EventStreamProvider<KeyEvent> keyPressEvent = 110 static EventStreamProvider<KeyEvent> keyPressEvent =
111 new _KeyboardEventHandler('keypress'); 111 new _KeyboardEventHandler('keypress');
112 112
113 /** The currently registered target for this event. */ 113 /** The currently registered target for this event. */
114 EventTarget get currentTarget => _currentTarget; 114 EventTarget get currentTarget => _currentTarget;
115 115
116 /** Accessor to the clipboardData available for this event. */
117 DataTransfer get clipboardData => _parent.clipboardData;
118 /** True if the ctrl key is pressed during this event. */ 116 /** True if the ctrl key is pressed during this event. */
119 bool get ctrlKey => _parent.ctrlKey; 117 bool get ctrlKey => _parent.ctrlKey;
120 int get detail => _parent.detail; 118 int get detail => _parent.detail;
121 /** 119 /**
122 * Accessor to the part of the keyboard that the key was pressed from (one of 120 * Accessor to the part of the keyboard that the key was pressed from (one of
123 * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, 121 * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT,
124 * KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK). 122 * KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK).
125 */ 123 */
126 int get keyLocation => _parent.keyLocation; 124 int get keyLocation => _parent.keyLocation;
127 /** True if the Meta (or Mac command) key is pressed during this event. */ 125 /** True if the Meta (or Mac command) key is pressed during this event. */
(...skipping 20 matching lines...) Expand all
148 "Cannot initialize a KeyboardEvent from a KeyEvent."); 146 "Cannot initialize a KeyboardEvent from a KeyEvent.");
149 } 147 }
150 @Experimental() // untriaged 148 @Experimental() // untriaged
151 bool getModifierState(String keyArgument) => throw new UnimplementedError(); 149 bool getModifierState(String keyArgument) => throw new UnimplementedError();
152 @Experimental() // untriaged 150 @Experimental() // untriaged
153 int get location => throw new UnimplementedError(); 151 int get location => throw new UnimplementedError();
154 @Experimental() // untriaged 152 @Experimental() // untriaged
155 bool get repeat => throw new UnimplementedError(); 153 bool get repeat => throw new UnimplementedError();
156 dynamic get _get_view => throw new UnimplementedError(); 154 dynamic get _get_view => throw new UnimplementedError();
157 } 155 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_WrappedEvent.dart ('k') | tools/dom/src/dartium_WrappedEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698