Lines Matching refs:fn
69 /** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
71 { event: 'click', id: 'access-mode-button', fn: goEnterAccessCode },
72 { event: 'submit', id: 'access-code-form', fn: sendAccessCode },
73 { event: 'click', id: 'cancel-access-code-button', fn: cancelAccessCode},
74 { event: 'click', id: 'cancel-share-button', fn: remoting.cancelShare },
75 { event: 'click', id: 'client-finished-it2me-button', fn: goHome },
77 fn: remoting.showIT2MeUiAndSave },
78 { event: 'click', id: 'host-finished-button', fn: goHome },
79 { event: 'click', id: 'share-button', fn: remoting.tryShare }
81 /** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
84 fn: function() { remoting.hostSetupDialog.showForPin(); } },
85 { event: 'click', id: 'client-finished-me2me-button', fn: goHome },
86 { event: 'click', id: 'client-reconnect-button', fn: reconnect },
87 { event: 'click', id: 'daemon-pin-cancel', fn: goHome },
89 fn: remoting.showMe2MeUiAndSave },
91 fn: function() { remoting.hostSetupDialog.showForStart(); } },
92 { event: 'click', id: 'stop-daemon', fn: stopDaemon }
94 /** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
96 { event: 'click', id: 'close-paired-client-manager-dialog', fn: goHome },
97 { event: 'click', id: 'host-config-done-dismiss', fn: goHome },
98 { event: 'click', id: 'host-config-error-dismiss', fn: goHome },
100 fn: remoting.setMode.bind(null,
102 { event: 'click', id: 'stop-sharing-button', fn: remoting.cancelShare }
104 /** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
106 { event: 'click', id: 'auth-button', fn: doAuthRedirect },
107 { event: 'click', id: 'cancel-connect-button', fn: goHome },
108 { event: 'click', id: 'sign-out', fn:remoting.signOut },
109 { event: 'click', id: 'token-refresh-error-ok', fn: goHome },
110 { event: 'click', id: 'token-refresh-error-sign-in', fn: fixAuthError }
133 * fn: function(Event):void}>} actions Array of actions to register.
138 registerEventListener(action.id, action.event, action.fn);
146 * @param {function(Event):void} fn Event handler.
148 function registerEventListener(id, eventname, fn) {
151 element.addEventListener(eventname, fn, false);