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

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

Issue 2163093003: [DevTools] Remove Object.values and Object.isEmpty from utilities.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Displayed: "displayed", 126 Displayed: "displayed",
127 Blocked: "blocked", 127 Blocked: "blocked",
128 BlockOverridden: "block-overridden" 128 BlockOverridden: "block-overridden"
129 } 129 }
130 130
131 /** @enum {string} */ 131 /** @enum {string} */
132 WebInspector.NetworkLogView.IsFilterType = { 132 WebInspector.NetworkLogView.IsFilterType = {
133 Running: "running" 133 Running: "running"
134 }; 134 };
135 135
136 /** @type {!Array.<string>} */ 136 /** @type {!Array<string>} */
137 WebInspector.NetworkLogView._searchKeys = Object.values(WebInspector.NetworkLogV iew.FilterType); 137 WebInspector.NetworkLogView._searchKeys = Object.keys(WebInspector.NetworkLogVie w.FilterType).map(key => WebInspector.NetworkLogView.FilterType[key]);
138 138
139 WebInspector.NetworkLogView.prototype = { 139 WebInspector.NetworkLogView.prototype = {
140 /** 140 /**
141 * @param {boolean} recording 141 * @param {boolean} recording
142 */ 142 */
143 setRecording: function(recording) 143 setRecording: function(recording)
144 { 144 {
145 this._recording = recording; 145 this._recording = recording;
146 this._updateSummaryBar(); 146 this._updateSummaryBar();
147 }, 147 },
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 return false; 1688 return false;
1689 return true; 1689 return true;
1690 } 1690 }
1691 1691
1692 WebInspector.NetworkLogView.EventTypes = { 1692 WebInspector.NetworkLogView.EventTypes = {
1693 RequestSelected: "RequestSelected", 1693 RequestSelected: "RequestSelected",
1694 SearchCountUpdated: "SearchCountUpdated", 1694 SearchCountUpdated: "SearchCountUpdated",
1695 SearchIndexUpdated: "SearchIndexUpdated", 1695 SearchIndexUpdated: "SearchIndexUpdated",
1696 UpdateRequest: "UpdateRequest" 1696 UpdateRequest: "UpdateRequest"
1697 }; 1697 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698