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

Side by Side Diff: Source/devtools/front_end/screencast/ScreencastView.js

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added keyboardTest failure for virtual/slimmingpaint Created 5 years, 10 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/core/inspector/InspectorInputAgent.cpp ('k') | Source/devtools/protocol.json » ('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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 var type; 273 var type;
274 switch (event.type) { 274 switch (event.type) {
275 case "keydown": type = "keyDown"; break; 275 case "keydown": type = "keyDown"; break;
276 case "keyup": type = "keyUp"; break; 276 case "keyup": type = "keyUp"; break;
277 case "keypress": type = "char"; break; 277 case "keypress": type = "char"; break;
278 default: return; 278 default: return;
279 } 279 }
280 280
281 var text = event.type === "keypress" ? String.fromCharCode(event.charCod e) : undefined; 281 var text = event.type === "keypress" ? String.fromCharCode(event.charCod e) : undefined;
282 this._target.inputAgent().dispatchKeyEvent(type, this._modifiersForEvent (event), event.timeStamp / 1000, text, text ? text.toLowerCase() : undefined, 282 this._target.inputAgent().dispatchKeyEvent(type, this._modifiersForEvent (event), event.timeStamp / 1000, text, text ? text.toLowerCase() : undefined,
283 event.keyIdentifier, event.keyCode /* window sVirtualKeyCode */, event.keyCode /* nativeVirtualKeyCode */, false, false, fals e); 283 event.keyIdentifier, event.code, event.keyCo de /* windowsVirtualKeyCode */, event.keyCode /* nativeVirtualKeyCode */, false, false, false);
284 event.consume(); 284 event.consume();
285 this._canvasElement.focus(); 285 this._canvasElement.focus();
286 }, 286 },
287 287
288 /** 288 /**
289 * @param {!Event} event 289 * @param {!Event} event
290 */ 290 */
291 _handleContextMenuEvent: function(event) 291 _handleContextMenuEvent: function(event)
292 { 292 {
293 event.consume(true); 293 event.consume(true);
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 return; 866 return;
867 this._maxDisplayedProgress = progress; 867 this._maxDisplayedProgress = progress;
868 this._displayProgress(progress); 868 this._displayProgress(progress);
869 }, 869 },
870 870
871 _displayProgress: function(progress) 871 _displayProgress: function(progress)
872 { 872 {
873 this._element.style.width = (100 * progress) + "%"; 873 this._element.style.width = (100 * progress) + "%";
874 } 874 }
875 }; 875 };
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInputAgent.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698