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

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

Issue 2033403005: Eradicate keyIndentifier from devtools/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call KeyCodeToKeyIdentifier for unhandle key events Created 4 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
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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 this._requestNavigationHistory(); 739 this._requestNavigationHistory();
740 }, 740 },
741 741
742 _navigateReload: function() 742 _navigateReload: function()
743 { 743 {
744 this._target.resourceTreeModel.reloadPage(); 744 this._target.resourceTreeModel.reloadPage();
745 }, 745 },
746 746
747 _navigationUrlKeyUp: function(event) 747 _navigationUrlKeyUp: function(event)
748 { 748 {
749 if (event.keyIdentifier !== "Enter") 749 if (event.key !== "Enter")
750 return; 750 return;
751 var url = this._navigationUrl.value; 751 var url = this._navigationUrl.value;
752 if (!url) 752 if (!url)
753 return; 753 return;
754 if (!url.match(WebInspector.ScreencastView._SchemeRegex)) 754 if (!url.match(WebInspector.ScreencastView._SchemeRegex))
755 url = "http://" + url; 755 url = "http://" + url;
756 this._target.pageAgent().navigate(url); 756 this._target.pageAgent().navigate(url);
757 this._canvasElement.focus(); 757 this._canvasElement.focus();
758 }, 758 },
759 759
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 return; 863 return;
864 this._maxDisplayedProgress = progress; 864 this._maxDisplayedProgress = progress;
865 this._displayProgress(progress); 865 this._displayProgress(progress);
866 }, 866 },
867 867
868 _displayProgress: function(progress) 868 _displayProgress: function(progress)
869 { 869 {
870 this._element.style.width = (100 * progress) + "%"; 870 this._element.style.width = (100 * progress) + "%";
871 } 871 }
872 }; 872 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698