| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Event management for WebView. | 5 // Event management for WebView. |
| 6 | 6 |
| 7 var CreateEvent = require('guestViewEvents').CreateEvent; | 7 var CreateEvent = require('guestViewEvents').CreateEvent; |
| 8 var DeclarativeWebRequestSchema = | 8 var DeclarativeWebRequestSchema = |
| 9 requireNative('schema_registry').GetSchema('declarativeWebRequest'); | 9 requireNative('schema_registry').GetSchema('declarativeWebRequest'); |
| 10 var EventBindings = require('event_bindings'); | 10 var EventBindings = require('event_bindings'); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 291 } |
| 292 view.events.addScopedListener(WebRequestMessageEvent, function() { | 292 view.events.addScopedListener(WebRequestMessageEvent, function() { |
| 293 // Re-dispatch to subEvent's listeners. | 293 // Re-dispatch to subEvent's listeners. |
| 294 $Function.apply(this.dispatch, this, $Array.slice(arguments)); | 294 $Function.apply(this.dispatch, this, $Array.slice(arguments)); |
| 295 }.bind(this), {instanceId: opt_webViewInstanceId || 0}); | 295 }.bind(this), {instanceId: opt_webViewInstanceId || 0}); |
| 296 } | 296 } |
| 297 | 297 |
| 298 DeclarativeWebRequestEvent.prototype.__proto__ = EventBindings.Event.prototype; | 298 DeclarativeWebRequestEvent.prototype.__proto__ = EventBindings.Event.prototype; |
| 299 | 299 |
| 300 // Exports. | 300 // Exports. |
| 301 exports.WebViewEvents = WebViewEvents; | 301 exports.$set('WebViewEvents', WebViewEvents); |
| OLD | NEW |