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

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

Issue 1154623005: DevTools: polish event listeners pane UI. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/components/eventListenersView.css ('k') | no next file » | 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 var type; 272 var type;
273 switch (event.type) { 273 switch (event.type) {
274 case "keydown": type = "keyDown"; break; 274 case "keydown": type = "keyDown"; break;
275 case "keyup": type = "keyUp"; break; 275 case "keyup": type = "keyUp"; break;
276 case "keypress": type = "char"; break; 276 case "keypress": type = "char"; break;
277 default: return; 277 default: return;
278 } 278 }
279 279
280 var text = event.type === "keypress" ? String.fromCharCode(event.charCod e) : undefined; 280 var text = event.type === "keypress" ? String.fromCharCode(event.charCod e) : undefined;
281 this._target.inputAgent().dispatchKeyEvent({ 281 this._target.inputAgent().invoke_dispatchKeyEvent({
282 type: type, 282 type: type,
283 modifiers: this._modifiersForEvent(event), 283 modifiers: this._modifiersForEvent(event),
284 timestamp: event.timeStamp / 1000, 284 timestamp: event.timeStamp / 1000,
285 text: text, 285 text: text,
286 unmodifiedText: text ? text.toLowerCase() : undefined, 286 unmodifiedText: text ? text.toLowerCase() : undefined,
287 keyIdentifier: event.keyIdentifier, 287 keyIdentifier: event.keyIdentifier,
288 code: event.code, 288 code: event.code,
289 key: event.key, 289 key: event.key,
290 windowsVirtualKeyCode: event.keyCode, 290 windowsVirtualKeyCode: event.keyCode,
291 nativeVirtualKeyCode: event.keyCode, 291 nativeVirtualKeyCode: event.keyCode,
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return; 878 return;
879 this._maxDisplayedProgress = progress; 879 this._maxDisplayedProgress = progress;
880 this._displayProgress(progress); 880 this._displayProgress(progress);
881 }, 881 },
882 882
883 _displayProgress: function(progress) 883 _displayProgress: function(progress)
884 { 884 {
885 this._element.style.width = (100 * progress) + "%"; 885 this._element.style.width = (100 * progress) + "%";
886 } 886 }
887 }; 887 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/eventListenersView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698