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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js

Issue 2905603002: DO NOT COMMIT DevTools: migrate ObjectEventListeners to shadow (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 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 28 matching lines...) Expand all
39 this._showForAncestorsSetting = Common.settings.moduleSetting('showEventList enersForAncestors'); 39 this._showForAncestorsSetting = Common.settings.moduleSetting('showEventList enersForAncestors');
40 this._showForAncestorsSetting.addChangeListener(this.update.bind(this)); 40 this._showForAncestorsSetting.addChangeListener(this.update.bind(this));
41 41
42 this._dispatchFilterBySetting = Common.settings.createSetting( 42 this._dispatchFilterBySetting = Common.settings.createSetting(
43 'eventListenerDispatchFilterType', Elements.EventListenersWidget.Dispatc hFilterBy.All); 43 'eventListenerDispatchFilterType', Elements.EventListenersWidget.Dispatc hFilterBy.All);
44 this._dispatchFilterBySetting.addChangeListener(this.update.bind(this)); 44 this._dispatchFilterBySetting.addChangeListener(this.update.bind(this));
45 45
46 this._showFrameworkListenersSetting = Common.settings.createSetting('showFra meowkrListeners', true); 46 this._showFrameworkListenersSetting = Common.settings.createSetting('showFra meowkrListeners', true);
47 this._showFrameworkListenersSetting.setTitle(Common.UIString('Framework list eners')); 47 this._showFrameworkListenersSetting.setTitle(Common.UIString('Framework list eners'));
48 this._showFrameworkListenersSetting.addChangeListener(this._showFrameworkLis tenersChanged.bind(this)); 48 this._showFrameworkListenersSetting.addChangeListener(this._showFrameworkLis tenersChanged.bind(this));
49 this._eventListenersView = new EventListeners.EventListenersView(this.elemen t, this.update.bind(this)); 49 this._eventListenersView = new EventListeners.EventListenersView(this.update .bind(this));
50 this._eventListenersView.show(this.element);
50 51
51 var refreshButton = new UI.ToolbarButton(Common.UIString('Refresh'), 'largei con-refresh'); 52 var refreshButton = new UI.ToolbarButton(Common.UIString('Refresh'), 'largei con-refresh');
52 refreshButton.addEventListener(UI.ToolbarButton.Events.Click, this.update.bi nd(this)); 53 refreshButton.addEventListener(UI.ToolbarButton.Events.Click, this.update.bi nd(this));
53 this._toolbarItems.push(refreshButton); 54 this._toolbarItems.push(refreshButton);
54 this._toolbarItems.push(new UI.ToolbarSettingCheckbox( 55 this._toolbarItems.push(new UI.ToolbarSettingCheckbox(
55 this._showForAncestorsSetting, Common.UIString('Show listeners on the an cestors'), 56 this._showForAncestorsSetting, Common.UIString('Show listeners on the an cestors'),
56 Common.UIString('Ancestors'))); 57 Common.UIString('Ancestors')));
57 var dispatchFilter = new UI.ToolbarComboBox(this._onDispatchFilterTypeChange d.bind(this)); 58 var dispatchFilter = new UI.ToolbarComboBox(this._onDispatchFilterTypeChange d.bind(this));
58 59
59 /** 60 /**
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 172 }
172 }; 173 };
173 174
174 Elements.EventListenersWidget.DispatchFilterBy = { 175 Elements.EventListenersWidget.DispatchFilterBy = {
175 All: 'All', 176 All: 'All',
176 Blocking: 'Blocking', 177 Blocking: 'Blocking',
177 Passive: 'Passive' 178 Passive: 'Passive'
178 }; 179 };
179 180
180 Elements.EventListenersWidget._objectGroupName = 'event-listeners-panel'; 181 Elements.EventListenersWidget._objectGroupName = 'event-listeners-panel';
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698