Lines Matching defs:message
64 switch (data['message']) {
75 console.error('Unexpected message: ' + data['message'], data);
130 * Send the fail message to the suggest-app dialog.
150 * Send the 'install_failure' message to the widget.
156 var message = {
157 message: 'install_failure',
162 this.postMessage_(message);
166 * Send the 'install_success' message to the widget.
172 var message = {
173 message: 'install_success',
178 this.postMessage_(message);
182 * Send the 'initialize' message to the widget.
186 var message = {
187 message: 'initialize',
195 message['search_query'] = this.searchQuery_;
197 message['file_extension'] = this.ext_;
198 message['mime_type'] = this.mime_;
201 this.postMessage_(message);
205 * Send a message to the widget. This method shouldn't be called directly,
208 * @param {object} message Message object to be posted.
211 CWSContainerClient.prototype.postMessage_ = function(message) {
215 this.webView_.contentWindow.postMessage(message, this.target_);
227 window.addEventListener('message', this.onMessageBound_);
237 window.removeEventListener('message', this.onMessageBound_);