| 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 var shellNatives = requireNative('shell_natives'); | 5 var shellNatives = requireNative('shell_natives'); |
| 6 var Binding = require('binding').Binding; | 6 var Binding = require('binding').Binding; |
| 7 var forEach = require('utils').forEach; | 7 var forEach = require('utils').forEach; |
| 8 var renderViewObserverNatives = requireNative('renderViewObserverNatives'); | 8 var renderViewObserverNatives = requireNative('renderViewObserverNatives'); |
| 9 | 9 |
| 10 var currentAppWindow = null; | 10 var currentAppWindow = null; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // so the correct JS context is used for global variables such as | 69 // so the correct JS context is used for global variables such as |
| 70 // currentAppWindow. | 70 // currentAppWindow. |
| 71 apiFunctions.setHandleRequest('initializeAppWindow', function() { | 71 apiFunctions.setHandleRequest('initializeAppWindow', function() { |
| 72 var AppWindow = function() {}; | 72 var AppWindow = function() {}; |
| 73 AppWindow.prototype.contentWindow = window; | 73 AppWindow.prototype.contentWindow = window; |
| 74 currentAppWindow = new AppWindow; | 74 currentAppWindow = new AppWindow; |
| 75 }); | 75 }); |
| 76 }); | 76 }); |
| 77 | 77 |
| 78 exports.binding = shell.generate(); | 78 exports.binding = shell.generate(); |
| OLD | NEW |