OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2013 Samsung Electronics. 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 { | 128 { |
129 return [this.storageViewStatusBarItemsContainer]; | 129 return [this.storageViewStatusBarItemsContainer]; |
130 }, | 130 }, |
131 | 131 |
132 wasShown: function() | 132 wasShown: function() |
133 { | 133 { |
134 WebInspector.Panel.prototype.wasShown.call(this); | 134 WebInspector.Panel.prototype.wasShown.call(this); |
135 this._initialize(); | 135 this._initialize(); |
136 }, | 136 }, |
137 | 137 |
| 138 /** |
| 139 * @param {KeyboardEvent} event |
| 140 */ |
| 141 handleShortcut: function(event) |
| 142 { |
| 143 if (this.visibleView && typeof this.visibleView.handleShortcut === "func
tion") |
| 144 return this.visibleView.handleShortcut(event); |
| 145 }, |
| 146 |
138 _initialize: function() | 147 _initialize: function() |
139 { | 148 { |
140 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL
oaded) { | 149 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL
oaded) { |
141 this._populateResourceTree(); | 150 this._populateResourceTree(); |
142 this._populateDOMStorageTree(); | 151 this._populateDOMStorageTree(); |
143 this._populateApplicationCacheTree(); | 152 this._populateApplicationCacheTree(); |
144 this._initDefaultSelection(); | 153 this._initDefaultSelection(); |
145 this._initialized = true; | 154 this._initialized = true; |
146 } | 155 } |
147 }, | 156 }, |
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 */ | 2365 */ |
2357 _lastTreeElement: function() | 2366 _lastTreeElement: function() |
2358 { | 2367 { |
2359 var treeElement = this._root; | 2368 var treeElement = this._root; |
2360 var nextTreeElement; | 2369 var nextTreeElement; |
2361 while (nextTreeElement = this._traverseNext(treeElement)) | 2370 while (nextTreeElement = this._traverseNext(treeElement)) |
2362 treeElement = nextTreeElement; | 2371 treeElement = nextTreeElement; |
2363 return treeElement; | 2372 return treeElement; |
2364 } | 2373 } |
2365 } | 2374 } |
OLD | NEW |