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

Unified Diff: extensions/renderer/app_window_custom_bindings.cc

Issue 1945433002: [Extensions] Update more bindings and allow for multiple feature access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Antony's Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/renderer/blob_native_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/app_window_custom_bindings.cc
diff --git a/extensions/renderer/app_window_custom_bindings.cc b/extensions/renderer/app_window_custom_bindings.cc
index 6553e5e307155a7d9d48be9c59abdcc522401dae..befe938e551fe9ad943b0b2420b4aca852cbb6e7 100644
--- a/extensions/renderer/app_window_custom_bindings.cc
+++ b/extensions/renderer/app_window_custom_bindings.cc
@@ -22,8 +22,12 @@ namespace extensions {
AppWindowCustomBindings::AppWindowCustomBindings(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
- RouteFunction("GetFrame", base::Bind(&AppWindowCustomBindings::GetFrame,
- base::Unretained(this)));
+ // The input.ime API also creates an app window (for the ime window), and so
+ // uses these natives.
+ RouteFunction("GetFrame",
+ std::vector<std::string>({"app.window", "input.ime"}),
+ base::Bind(&AppWindowCustomBindings::GetFrame,
+ base::Unretained(this)));
RouteFunction("GetWindowControlsHtmlTemplate",
base::Bind(&AppWindowCustomBindings::GetWindowControlsHtmlTemplate,
« no previous file with comments | « no previous file | extensions/renderer/blob_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698