Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/renderer/resources/extensions/input.ime_custom_bindings.js

Issue 1840453002: [Extensions] More bindings hardening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698