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

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

Issue 84643002: Update the metrics side bar pane and computed style pane after main frame resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Throttling the pane updates! Created 7 years 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 InspectorBackend.registerPageDispatcher(new WebInspector.PageDispatcher(this )); 49 InspectorBackend.registerPageDispatcher(new WebInspector.PageDispatcher(this ));
50 50
51 this._pendingConsoleMessages = {}; 51 this._pendingConsoleMessages = {};
52 this._securityOriginFrameCount = {}; 52 this._securityOriginFrameCount = {};
53 } 53 }
54 54
55 WebInspector.ResourceTreeModel.EventTypes = { 55 WebInspector.ResourceTreeModel.EventTypes = {
56 FrameAdded: "FrameAdded", 56 FrameAdded: "FrameAdded",
57 FrameNavigated: "FrameNavigated", 57 FrameNavigated: "FrameNavigated",
58 FrameDetached: "FrameDetached", 58 FrameDetached: "FrameDetached",
59 FrameResized: "FrameResized",
59 MainFrameNavigated: "MainFrameNavigated", 60 MainFrameNavigated: "MainFrameNavigated",
60 MainFrameCreatedOrNavigated: "MainFrameCreatedOrNavigated", 61 MainFrameCreatedOrNavigated: "MainFrameCreatedOrNavigated",
61 ResourceAdded: "ResourceAdded", 62 ResourceAdded: "ResourceAdded",
62 WillLoadCachedResources: "WillLoadCachedResources", 63 WillLoadCachedResources: "WillLoadCachedResources",
63 CachedResourcesLoaded: "CachedResourcesLoaded", 64 CachedResourcesLoaded: "CachedResourcesLoaded",
64 DOMContentLoaded: "DOMContentLoaded", 65 DOMContentLoaded: "DOMContentLoaded",
65 Load: "Load", 66 Load: "Load",
66 WillReloadPage: "WillReloadPage", 67 WillReloadPage: "WillReloadPage",
67 InspectedURLChanged: "InspectedURLChanged", 68 InspectedURLChanged: "InspectedURLChanged",
68 SecurityOriginAdded: "SecurityOriginAdded", 69 SecurityOriginAdded: "SecurityOriginAdded",
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 }, 707 },
707 708
708 frameScheduledNavigation: function(frameId, delay) 709 frameScheduledNavigation: function(frameId, delay)
709 { 710 {
710 }, 711 },
711 712
712 frameClearedScheduledNavigation: function(frameId) 713 frameClearedScheduledNavigation: function(frameId)
713 { 714 {
714 }, 715 },
715 716
717 frameResized: function()
718 {
719 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.FrameResized, null);
720 },
721
716 javascriptDialogOpening: function(message) 722 javascriptDialogOpening: function(message)
717 { 723 {
718 }, 724 },
719 725
720 javascriptDialogClosed: function() 726 javascriptDialogClosed: function()
721 { 727 {
722 }, 728 },
723 729
724 scriptsEnabled: function(isEnabled) 730 scriptsEnabled: function(isEnabled)
725 { 731 {
(...skipping 15 matching lines...) Expand all
741 screencastVisibilityChanged: function(visible) 747 screencastVisibilityChanged: function(visible)
742 { 748 {
743 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); 749 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible});
744 } 750 }
745 } 751 }
746 752
747 /** 753 /**
748 * @type {WebInspector.ResourceTreeModel} 754 * @type {WebInspector.ResourceTreeModel}
749 */ 755 */
750 WebInspector.resourceTreeModel = null; 756 WebInspector.resourceTreeModel = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698