OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ExtensionView. | 5 // Event management for ExtensionView. |
6 | 6 |
7 var CreateEvent = require('guestViewEvents').CreateEvent; | 7 var CreateEvent = require('guestViewEvents').CreateEvent; |
8 var GuestViewEvents = require('guestViewEvents').GuestViewEvents; | 8 var GuestViewEvents = require('guestViewEvents').GuestViewEvents; |
9 | 9 |
10 function ExtensionViewEvents(extensionViewImpl) { | 10 function ExtensionViewEvents(extensionViewImpl) { |
(...skipping 11 matching lines...) Expand all Loading... |
22 }; | 22 }; |
23 | 23 |
24 ExtensionViewEvents.prototype.getEvents = function() { | 24 ExtensionViewEvents.prototype.getEvents = function() { |
25 return ExtensionViewEvents.EVENTS; | 25 return ExtensionViewEvents.EVENTS; |
26 }; | 26 }; |
27 | 27 |
28 ExtensionViewEvents.prototype.handleLoadCommitEvent = function(event) { | 28 ExtensionViewEvents.prototype.handleLoadCommitEvent = function(event) { |
29 this.view.onLoadCommit(event.url); | 29 this.view.onLoadCommit(event.url); |
30 }; | 30 }; |
31 | 31 |
32 exports.ExtensionViewEvents = ExtensionViewEvents; | 32 exports.$set('ExtensionViewEvents', ExtensionViewEvents); |
OLD | NEW |