Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 }; |
| OLD | NEW |