| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 { | 242 { |
| 243 // FIXME: We only have support for Named Flows in the main document. | 243 // FIXME: We only have support for Named Flows in the main document. |
| 244 if (event.data.documentNodeId !== this._document.id) | 244 if (event.data.documentNodeId !== this._document.id) |
| 245 return; | 245 return; |
| 246 | 246 |
| 247 var flow = /** @type {WebInspector.NamedFlow} */ (event.data); | 247 var flow = /** @type {WebInspector.NamedFlow} */ (event.data); |
| 248 this._updateNamedFlow(flow); | 248 this._updateNamedFlow(flow); |
| 249 }, | 249 }, |
| 250 | 250 |
| 251 /** | 251 /** |
| 252 * @param {WebInspector.Event} event |
| 253 */ |
| 254 _regionOversetChanged: function(event) |
| 255 { |
| 256 // FIXME: We only have support for Named Flows in the main document. |
| 257 if (event.data.documentNodeId !== this._document.id) |
| 258 return; |
| 259 |
| 260 var flow = /** @type {WebInspector.NamedFlow} */ (event.data); |
| 261 this._updateNamedFlow(flow); |
| 262 }, |
| 263 |
| 264 /** |
| 252 * @param {DOMAgent.NodeId} documentNodeId | 265 * @param {DOMAgent.NodeId} documentNodeId |
| 253 * @param {string} flowName | 266 * @param {string} flowName |
| 254 */ | 267 */ |
| 255 _hashNamedFlow: function(documentNodeId, flowName) | 268 _hashNamedFlow: function(documentNodeId, flowName) |
| 256 { | 269 { |
| 257 return documentNodeId + "|" + flowName; | 270 return documentNodeId + "|" + flowName; |
| 258 }, | 271 }, |
| 259 | 272 |
| 260 /** | 273 /** |
| 261 * @param {string} flowHash | 274 * @param {string} flowHash |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 { | 358 { |
| 346 WebInspector.SidebarView.prototype.wasShown.call(this); | 359 WebInspector.SidebarView.prototype.wasShown.call(this); |
| 347 | 360 |
| 348 WebInspector.domAgent.requestDocument(this._setDocument.bind(this)); | 361 WebInspector.domAgent.requestDocument(this._setDocument.bind(this)); |
| 349 | 362 |
| 350 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.Docu
mentUpdated, this._documentUpdated, this); | 363 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.Docu
mentUpdated, this._documentUpdated, this); |
| 351 | 364 |
| 352 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.NamedFlowCreated, this._namedFlowCreated, this); | 365 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.NamedFlowCreated, this._namedFlowCreated, this); |
| 353 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.NamedFlowRemoved, this._namedFlowRemoved, this); | 366 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.NamedFlowRemoved, this._namedFlowRemoved, this); |
| 354 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.RegionLayoutUpdated, this._regionLayoutUpdated, this); | 367 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.RegionLayoutUpdated, this._regionLayoutUpdated, this); |
| 368 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events
.RegionOversetChanged, this._regionOversetChanged, this); |
| 355 | 369 |
| 356 WebInspector.panel("elements").treeOutline.addEventListener(WebInspector
.ElementsTreeOutline.Events.SelectedNodeChanged, this._selectedNodeChanged, this
); | 370 WebInspector.panel("elements").treeOutline.addEventListener(WebInspector
.ElementsTreeOutline.Events.SelectedNodeChanged, this._selectedNodeChanged, this
); |
| 357 | 371 |
| 358 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab
Selected, this._tabSelected, this); | 372 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab
Selected, this._tabSelected, this); |
| 359 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab
Closed, this._tabClosed, this); | 373 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab
Closed, this._tabClosed, this); |
| 360 }, | 374 }, |
| 361 | 375 |
| 362 willHide: function() | 376 willHide: function() |
| 363 { | 377 { |
| 364 WebInspector.domAgent.removeEventListener(WebInspector.DOMAgent.Events.D
ocumentUpdated, this._documentUpdated, this); | 378 WebInspector.domAgent.removeEventListener(WebInspector.DOMAgent.Events.D
ocumentUpdated, this._documentUpdated, this); |
| 365 | 379 |
| 366 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.NamedFlowCreated, this._namedFlowCreated, this); | 380 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.NamedFlowCreated, this._namedFlowCreated, this); |
| 367 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.NamedFlowRemoved, this._namedFlowRemoved, this); | 381 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.NamedFlowRemoved, this._namedFlowRemoved, this); |
| 368 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.RegionLayoutUpdated, this._regionLayoutUpdated, this); | 382 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.RegionLayoutUpdated, this._regionLayoutUpdated, this); |
| 383 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Eve
nts.RegionOversetChanged, this._regionOversetChanged, this); |
| 369 | 384 |
| 370 WebInspector.panel("elements").treeOutline.removeEventListener(WebInspec
tor.ElementsTreeOutline.Events.SelectedNodeChanged, this._selectedNodeChanged, t
his); | 385 WebInspector.panel("elements").treeOutline.removeEventListener(WebInspec
tor.ElementsTreeOutline.Events.SelectedNodeChanged, this._selectedNodeChanged, t
his); |
| 371 | 386 |
| 372 this._tabbedPane.removeEventListener(WebInspector.TabbedPane.EventTypes.
TabSelected, this._tabSelected, this); | 387 this._tabbedPane.removeEventListener(WebInspector.TabbedPane.EventTypes.
TabSelected, this._tabSelected, this); |
| 373 this._tabbedPane.removeEventListener(WebInspector.TabbedPane.EventTypes.
TabClosed, this._tabClosed, this); | 388 this._tabbedPane.removeEventListener(WebInspector.TabbedPane.EventTypes.
TabClosed, this._tabClosed, this); |
| 374 }, | 389 }, |
| 375 | 390 |
| 376 __proto__: WebInspector.SidebarView.prototype | 391 __proto__: WebInspector.SidebarView.prototype |
| 377 } | 392 } |
| 378 | 393 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 407 } else { | 422 } else { |
| 408 this.title.removeStyleClass("named-flow-overflow"); | 423 this.title.removeStyleClass("named-flow-overflow"); |
| 409 this.tooltip = ""; | 424 this.tooltip = ""; |
| 410 } | 425 } |
| 411 | 426 |
| 412 this._overset = newOverset; | 427 this._overset = newOverset; |
| 413 }, | 428 }, |
| 414 | 429 |
| 415 __proto__: TreeElement.prototype | 430 __proto__: TreeElement.prototype |
| 416 } | 431 } |
| OLD | NEW |