| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 }, | 84 }, |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * @param {string=} tabId | 87 * @param {string=} tabId |
| 88 */ | 88 */ |
| 89 _selectTab: function(tabId) | 89 _selectTab: function(tabId) |
| 90 { | 90 { |
| 91 if (!tabId) | 91 if (!tabId) |
| 92 tabId = WebInspector.settings.resourceViewTab.get(); | 92 tabId = WebInspector.settings.resourceViewTab.get(); |
| 93 | 93 |
| 94 if (!this.selectTab(tabId)) { | 94 if (!this.selectTab(tabId)) |
| 95 this._isInFallbackSelection = true; | |
| 96 this.selectTab("headers"); | 95 this.selectTab("headers"); |
| 97 delete this._isInFallbackSelection; | |
| 98 } | |
| 99 }, | 96 }, |
| 100 | 97 |
| 101 _tabSelected: function(event) | 98 _tabSelected: function(event) |
| 102 { | 99 { |
| 103 if (!event.data.isUserGesture) | 100 if (!event.data.isUserGesture) |
| 104 return; | 101 return; |
| 105 | 102 |
| 106 WebInspector.settings.resourceViewTab.set(event.data.tabId); | 103 WebInspector.settings.resourceViewTab.set(event.data.tabId); |
| 107 | 104 |
| 108 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet
rics.UserAction, { | 105 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet
rics.UserAction, { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 this.request.requestContent(callback.bind(this)); | 176 this.request.requestContent(callback.bind(this)); |
| 180 }, | 177 }, |
| 181 | 178 |
| 182 contentLoaded: function() | 179 contentLoaded: function() |
| 183 { | 180 { |
| 184 // Should be implemented by subclasses. | 181 // Should be implemented by subclasses. |
| 185 }, | 182 }, |
| 186 | 183 |
| 187 __proto__: WebInspector.RequestView.prototype | 184 __proto__: WebInspector.RequestView.prototype |
| 188 } | 185 } |
| OLD | NEW |