| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |