OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Custom binding for the input ime API. Only injected into the | 5 // Custom binding for the input ime API. Only injected into the |
6 // v8 contexts for extensions which have permission for the API. | 6 // v8 contexts for extensions which have permission for the API. |
7 | 7 |
8 var binding = require('binding').Binding.create('input.ime'); | 8 var binding = require('binding').Binding.create('input.ime'); |
9 | 9 |
10 var Event = require('event_bindings').Event; | 10 var Event = require('event_bindings').Event; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 var view; | 50 var view; |
51 if (windowParams && windowParams.frameId) { | 51 if (windowParams && windowParams.frameId) { |
52 view = appWindowNatives.GetFrame( | 52 view = appWindowNatives.GetFrame( |
53 windowParams.frameId, false /* notifyBrowser */); | 53 windowParams.frameId, false /* notifyBrowser */); |
54 view.id = windowParams.frameId; | 54 view.id = windowParams.frameId; |
55 } | 55 } |
56 callback(view); | 56 callback(view); |
57 }); | 57 }); |
58 }); | 58 }); |
59 | 59 |
60 exports.binding = binding.generate(); | 60 exports.$set('binding', binding.generate()); |
OLD | NEW |