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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 }, 782 },
783 783
784 _focusNavigationBar: function() 784 _focusNavigationBar: function()
785 { 785 {
786 this._navigationUrl.focus(); 786 this._navigationUrl.focus();
787 this._navigationUrl.select(); 787 this._navigationUrl.select();
788 return true; 788 return true;
789 }, 789 },
790 790
791 __proto__: WebInspector.VBox.prototype 791 __proto__: WebInspector.VBox.prototype
792 } 792 };
793 793
794 /** 794 /**
795 * @param {!Element} element 795 * @param {!Element} element
796 * @constructor 796 * @constructor
797 */ 797 */
798 WebInspector.ScreencastView.ProgressTracker = function(element) 798 WebInspector.ScreencastView.ProgressTracker = function(element)
799 { 799 {
800 this._element = element; 800 this._element = element;
801 801
802 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.Events.MainFrameNavigated, this._onMainFrameNavig ated, this); 802 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.Events.MainFrameNavigated, this._onMainFrameNavig ated, this);
803 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.Events.Load, this._onLoad, this); 803 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.Events.Load, this._onLoad, this);
804 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.Events.RequestStarted, this._onRequestStarted, this); 804 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.Events.RequestStarted, this._onRequestStarted, this);
805 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.Events.RequestFinished, this._onRequestFinished, this); 805 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.Events.RequestFinished, this._onRequestFinished, this);
806 } 806 };
807 807
808 WebInspector.ScreencastView.ProgressTracker.prototype = { 808 WebInspector.ScreencastView.ProgressTracker.prototype = {
809 _onMainFrameNavigated: function() 809 _onMainFrameNavigated: function()
810 { 810 {
811 this._requestIds = {}; 811 this._requestIds = {};
812 this._startedRequests = 0; 812 this._startedRequests = 0;
813 this._finishedRequests = 0; 813 this._finishedRequests = 0;
814 this._maxDisplayedProgress = 0; 814 this._maxDisplayedProgress = 0;
815 this._updateProgress(0.1); // Display first 10% on navigation start. 815 this._updateProgress(0.1); // Display first 10% on navigation start.
816 }, 816 },
(...skipping 46 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