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

Side by Side Diff: Source/devtools/front_end/sdk/ResourceTreeModel.js

Issue 722173003: DevTools: Throttle Screencast on slow connections (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/devtools/front_end/screencast/ScreencastView.js ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 }, 807 },
808 808
809 scriptsEnabled: function(isEnabled) 809 scriptsEnabled: function(isEnabled)
810 { 810 {
811 WebInspector.settings.javaScriptDisabled.set(!isEnabled); 811 WebInspector.settings.javaScriptDisabled.set(!isEnabled);
812 }, 812 },
813 813
814 /** 814 /**
815 * @param {string} data 815 * @param {string} data
816 * @param {!PageAgent.ScreencastFrameMetadata=} metadata 816 * @param {!PageAgent.ScreencastFrameMetadata=} metadata
817 * @param {number=} frameNumber
817 */ 818 */
818 screencastFrame: function(data, metadata) 819 screencastFrame: function(data, metadata, frameNumber)
819 { 820 {
820 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastFrame, {data:data, metadata:metadata}); 821 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastFrame, {data:data, metadata:metadata, frameNumber:f rameNumber});
821 }, 822 },
822 823
823 /** 824 /**
824 * @param {boolean} visible 825 * @param {boolean} visible
825 */ 826 */
826 screencastVisibilityChanged: function(visible) 827 screencastVisibilityChanged: function(visible)
827 { 828 {
828 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); 829 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible});
829 }, 830 },
830 831
(...skipping 21 matching lines...) Expand all
852 interstitialHidden: function() 853 interstitialHidden: function()
853 { 854 {
854 // Frontend is not interested in interstitials. 855 // Frontend is not interested in interstitials.
855 } 856 }
856 } 857 }
857 858
858 /** 859 /**
859 * @type {!WebInspector.ResourceTreeModel} 860 * @type {!WebInspector.ResourceTreeModel}
860 */ 861 */
861 WebInspector.resourceTreeModel; 862 WebInspector.resourceTreeModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/screencast/ScreencastView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698