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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
index cfc808334389e854f79f578489a1ff53a0dc1b01..f6c21c2943a67463ebbfba1828f72e1f11bb63ce 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
@@ -110,4 +110,12 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView {
SDK.ResourceTreeModel.fromTarget(this._target).forAllResources(populateResourceURLs);
SDK.Cookies.getCookiesAsync(this._target, resourceURLs, this._updateWithCookies.bind(this));
}
+
+ /**
+ * @override
+ */
+ focusGrid() {
+ 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.
+ this._cookiesTable.focus();
+ }
};

Powered by Google App Engine
This is Rietveld 408576698