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

Unified Diff: tools/dom/src/dartium_KeyEvent.dart

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/src/dartium_KeyEvent.dart
diff --git a/tools/dom/src/dartium_KeyEvent.dart b/tools/dom/src/dartium_KeyEvent.dart
index 2d133d341573245236d6bb4f10d53773e9a24fcd..1f9659c863c8888f804803a4268fb37db42a0d09 100644
--- a/tools/dom/src/dartium_KeyEvent.dart
+++ b/tools/dom/src/dartium_KeyEvent.dart
@@ -80,10 +80,11 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
{Window view, bool canBubble: true, bool cancelable: true, int keyCode: 0,
int charCode: 0, int keyLocation: 1, bool ctrlKey: false,
bool altKey: false, bool shiftKey: false, bool metaKey: false,
- EventTarget currentTarget}) {
+ bool altGraphKey: false, EventTarget currentTarget}) {
var parent = new KeyboardEvent(type, view: view, canBubble: canBubble,
cancelable: cancelable, keyLocation: keyLocation, ctrlKey: ctrlKey,
- altKey: altKey, shiftKey: shiftKey, metaKey: metaKey);
+ altKey: altKey, shiftKey: shiftKey, metaKey: metaKey, altGraphKey:
+ altGraphKey);
var keyEvent = new KeyEvent.wrap(parent);
keyEvent._shadowAltKey = altKey;
keyEvent._shadowCharCode = charCode;
@@ -105,6 +106,8 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
/** The currently registered target for this event. */
EventTarget get currentTarget => _currentTarget;
+ /** True if the altGraphKey is pressed during this event. */
+ bool get altGraphKey => _parent.altGraphKey;
/** Accessor to the clipboardData available for this event. */
DataTransfer get clipboardData => _parent.clipboardData;
/** True if the ctrl key is pressed during this event. */
@@ -136,7 +139,8 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
}
void _initKeyboardEvent(String type, bool canBubble, bool cancelable,
Window view, String keyIdentifier, int keyLocation, bool ctrlKey,
- bool altKey, bool shiftKey, bool metaKey) {
+ bool altKey, bool shiftKey, bool metaKey,
+ bool altGraphKey) {
throw new UnsupportedError(
"Cannot initialize a KeyboardEvent from a KeyEvent.");
}
« no previous file with comments | « tools/dom/src/dart2js_KeyEvent.dart ('k') | tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698