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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js

Issue 2662403002: [DevTools] Merge filter bar with the main toolbar (Closed)
Patch Set: [DevTools] Merge filter bar with the main toolbar Created 3 years, 10 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 */ 103 */
104 function populateResourceURLs(resource) { 104 function populateResourceURLs(resource) {
105 var url = resource.documentURL.asParsedURL(); 105 var url = resource.documentURL.asParsedURL();
106 if (url && url.securityOrigin() === cookieDomain) 106 if (url && url.securityOrigin() === cookieDomain)
107 resourceURLs.push(resource.url); 107 resourceURLs.push(resource.url);
108 } 108 }
109 109
110 SDK.ResourceTreeModel.fromTarget(this._target).forAllResources(populateResou rceURLs); 110 SDK.ResourceTreeModel.fromTarget(this._target).forAllResources(populateResou rceURLs);
111 SDK.Cookies.getCookiesAsync(this._target, resourceURLs, this._updateWithCook ies.bind(this)); 111 SDK.Cookies.getCookiesAsync(this._target, resourceURLs, this._updateWithCook ies.bind(this));
112 } 112 }
113
114 /**
115 * @override
116 */
117 focusGrid() {
118 this._cookiesTable.selectFirstCookie();
pfeldman 2017/02/06 19:37:42 You are a view, there already is a way to override
eostroukhov 2017/02/07 00:24:18 This is for moving focus within the view.
119 this._cookiesTable.focus();
120 }
113 }; 121 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698