| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   61       'searchText', |   61       'searchText', | 
|   62       'numberOfMatches', |   62       'numberOfMatches', | 
|   63       'activeMatchOrdinal', |   63       'activeMatchOrdinal', | 
|   64       'selectionRect', |   64       'selectionRect', | 
|   65       'canceled', |   65       'canceled', | 
|   66       'finalUpdate' |   66       'finalUpdate' | 
|   67     ] |   67     ] | 
|   68   }, |   68   }, | 
|   69   'framenamechanged': { |   69   'framenamechanged': { | 
|   70     evt: CreateEvent('webViewInternal.onFrameNameChanged'), |   70     evt: CreateEvent('webViewInternal.onFrameNameChanged'), | 
|   71     handler: 'handleFrameNameChangedEvent' |   71     handler: 'handleFrameNameChangedEvent', | 
 |   72     internal: true | 
|   72   }, |   73   }, | 
|   73   'loadabort': { |   74   'loadabort': { | 
|   74     cancelable: true, |   75     cancelable: true, | 
|   75     evt: CreateEvent('webViewInternal.onLoadAbort'), |   76     evt: CreateEvent('webViewInternal.onLoadAbort'), | 
|   76     fields: ['url', 'isTopLevel', 'reason'], |   77     fields: ['url', 'isTopLevel', 'reason'], | 
|   77     handler: 'handleLoadAbortEvent' |   78     handler: 'handleLoadAbortEvent' | 
|   78   }, |   79   }, | 
|   79   'loadcommit': { |   80   'loadcommit': { | 
|   80     evt: CreateEvent('webViewInternal.onLoadCommit'), |   81     evt: CreateEvent('webViewInternal.onLoadCommit'), | 
|   81     fields: ['url', 'isTopLevel'], |   82     fields: ['url', 'isTopLevel'], | 
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  271   WebRequestMessageEvent.addListener(function() { |  272   WebRequestMessageEvent.addListener(function() { | 
|  272     // Re-dispatch to subEvent's listeners. |  273     // Re-dispatch to subEvent's listeners. | 
|  273     $Function.apply(this.dispatch, this, $Array.slice(arguments)); |  274     $Function.apply(this.dispatch, this, $Array.slice(arguments)); | 
|  274   }.bind(this), {instanceId: opt_webViewInstanceId || 0}); |  275   }.bind(this), {instanceId: opt_webViewInstanceId || 0}); | 
|  275 } |  276 } | 
|  276  |  277  | 
|  277 DeclarativeWebRequestEvent.prototype.__proto__ = EventBindings.Event.prototype; |  278 DeclarativeWebRequestEvent.prototype.__proto__ = EventBindings.Event.prototype; | 
|  278  |  279  | 
|  279 // Exports. |  280 // Exports. | 
|  280 exports.WebViewEvents = WebViewEvents; |  281 exports.WebViewEvents = WebViewEvents; | 
| OLD | NEW |