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

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

Issue 1754523006: Beginning fix for KeyEvent,KeyboardEvent and UIEvent changes in roll 45 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged 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 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 327ddf08e1ff7ac807ac8273e32dd59ea6d32c6e..254cd34259689de9f16cbc0c51da80c0a21ee51f 100644
--- a/tools/dom/src/dartium_KeyEvent.dart
+++ b/tools/dom/src/dartium_KeyEvent.dart
@@ -43,22 +43,22 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
/** The "fixed" value of whether the alt key is being pressed. */
bool _shadowAltKey;
- /** Caculated value of what the estimated charCode is for this event. */
+ /** Calculated value of what the estimated charCode is for this event. */
int _shadowCharCode;
- /** Caculated value of what the estimated keyCode is for this event. */
+ /** Calculated value of what the estimated keyCode is for this event. */
int _shadowKeyCode;
- /** Caculated value of what the estimated keyCode is for this event. */
+ /** Calculated value of what the estimated keyCode is for this event. */
int get keyCode => _shadowKeyCode;
- /** Caculated value of what the estimated charCode is for this event. */
+ /** Calculated value of what the estimated charCode is for this event. */
int get charCode => this.type == 'keypress' ? _shadowCharCode : 0;
- /** Caculated value of whether the alt key is pressed is for this event. */
+ /** Calculated value of whether the alt key is pressed is for this event. */
bool get altKey => _shadowAltKey;
- /** Caculated value of what the estimated keyCode is for this event. */
+ /** Calculated value of what the estimated keyCode is for this event. */
int get which => keyCode;
/** Accessor to the underlying keyCode value is the parent event. */
@@ -139,6 +139,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
int get _charCode => charCode;
int get _keyCode => keyCode;
+ int get _which => which;
String get _keyIdentifier {
throw new UnsupportedError("keyIdentifier is unsupported.");
}
@@ -148,10 +149,6 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
throw new UnsupportedError(
"Cannot initialize a KeyboardEvent from a KeyEvent.");
}
- int get _layerX => throw new UnsupportedError('Not applicable to KeyEvent');
- int get _layerY => throw new UnsupportedError('Not applicable to KeyEvent');
- int get _pageX => throw new UnsupportedError('Not applicable to KeyEvent');
- int get _pageY => throw new UnsupportedError('Not applicable to KeyEvent');
@Experimental() // untriaged
bool getModifierState(String keyArgument) => throw new UnimplementedError();
@Experimental() // untriaged
« 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