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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2205123003: DevTools: introduce view locations, allow opening views by id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 var domain = request.parsedURL.domain(); 887 var domain = request.parsedURL.domain();
888 if (domain && blockedSetting.get().indexOf(domain) === -1) 888 if (domain && blockedSetting.get().indexOf(domain) === -1)
889 contextMenu.appendItem(WebInspector.UIString.capitalize("Block ^ request ^domain"), addBlockedURL.bind(null, domain)); 889 contextMenu.appendItem(WebInspector.UIString.capitalize("Block ^ request ^domain"), addBlockedURL.bind(null, domain));
890 890
891 function addBlockedURL(url) 891 function addBlockedURL(url)
892 { 892 {
893 var list = blockedSetting.get(); 893 var list = blockedSetting.get();
894 list.push(url); 894 list.push(url);
895 blockedSetting.set(list); 895 blockedSetting.set(list);
896 WebInspector.inspectorView.showViewInDrawer("network.blocked-url s"); 896 WebInspector.viewManager.showView("network.blocked-urls");
897 } 897 }
898 } 898 }
899 899
900 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) { 900 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) {
901 contextMenu.appendSeparator(); 901 contextMenu.appendSeparator();
902 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request)); 902 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request));
903 contextMenu.appendSeparator(); 903 contextMenu.appendSeparator();
904 } 904 }
905 905
906 contextMenu.show(); 906 contextMenu.show();
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 return false; 1729 return false;
1730 return true; 1730 return true;
1731 } 1731 }
1732 1732
1733 WebInspector.NetworkLogView.EventTypes = { 1733 WebInspector.NetworkLogView.EventTypes = {
1734 RequestSelected: "RequestSelected", 1734 RequestSelected: "RequestSelected",
1735 SearchCountUpdated: "SearchCountUpdated", 1735 SearchCountUpdated: "SearchCountUpdated",
1736 SearchIndexUpdated: "SearchIndexUpdated", 1736 SearchIndexUpdated: "SearchIndexUpdated",
1737 UpdateRequest: "UpdateRequest" 1737 UpdateRequest: "UpdateRequest"
1738 }; 1738 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698