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

Side by Side Diff: Source/devtools/front_end/sdk/RuntimeModel.js

Issue 1268353005: [DevTools] Support JQuery event listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing files Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 * @param {!DOMDebuggerAgent.EventListener} payload 497 * @param {!DOMDebuggerAgent.EventListener} payload
498 * @param {!RuntimeAgent.RemoteObjectId} objectId 498 * @param {!RuntimeAgent.RemoteObjectId} objectId
499 */ 499 */
500 WebInspector.EventListener = function(debuggerModel, payload, objectId) 500 WebInspector.EventListener = function(debuggerModel, payload, objectId)
501 { 501 {
502 WebInspector.SDKObject.call(this, debuggerModel.target()); 502 WebInspector.SDKObject.call(this, debuggerModel.target());
503 this._type = payload.type; 503 this._type = payload.type;
504 this._useCapture = payload.useCapture; 504 this._useCapture = payload.useCapture;
505 this._location = WebInspector.DebuggerModel.Location.fromPayload(debuggerMod el, payload.location); 505 this._location = WebInspector.DebuggerModel.Location.fromPayload(debuggerMod el, payload.location);
506 this._handler = payload.handler ? this.target().runtimeModel.createRemoteObj ect(payload.handler) : null; 506 this._handler = payload.handler ? this.target().runtimeModel.createRemoteObj ect(payload.handler) : null;
507 this._listenerType = payload.listenerType || "normal";
507 var script = debuggerModel.scriptForId(payload.location.scriptId); 508 var script = debuggerModel.scriptForId(payload.location.scriptId);
508 this._sourceName = script ? script.contentURL() : ""; 509 this._sourceName = script ? script.contentURL() : "";
509 this._objectId = objectId; 510 this._objectId = objectId;
510 } 511 }
511 512
512 WebInspector.EventListener.prototype = { 513 WebInspector.EventListener.prototype = {
513 /** 514 /**
514 * @return {string} 515 * @return {string}
515 */ 516 */
516 type: function() 517 type: function()
(...skipping 21 matching lines...) Expand all
538 * @return {?WebInspector.RemoteObject} 539 * @return {?WebInspector.RemoteObject}
539 */ 540 */
540 handler: function() 541 handler: function()
541 { 542 {
542 return this._handler; 543 return this._handler;
543 }, 544 },
544 545
545 /** 546 /**
546 * @return {string} 547 * @return {string}
547 */ 548 */
549 listenerType: function()
550 {
551 return this._listenerType;
552 },
553
554 /**
555 * @return {string}
556 */
548 sourceName: function() 557 sourceName: function()
549 { 558 {
550 return this._sourceName; 559 return this._sourceName;
551 }, 560 },
552 561
553 /** 562 /**
554 * @return {!RuntimeAgent.RemoteObjectId} 563 * @return {!RuntimeAgent.RemoteObjectId}
555 */ 564 */
556 objectId: function() 565 objectId: function()
557 { 566 {
558 return this._objectId; 567 return this._objectId;
559 }, 568 },
560 569
561 __proto__: WebInspector.SDKObject.prototype 570 __proto__: WebInspector.SDKObject.prototype
562 } 571 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698