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

Unified Diff: chrome/renderer/resources/extensions/app_window_custom_bindings.js

Issue 15855010: Make ExtensionMsg_MessageInvoke run a module system function rather than a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test compile Created 7 years, 6 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
Index: chrome/renderer/resources/extensions/app_window_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/app_window_custom_bindings.js b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
index a2a5af1634e42cecf22de1b76a4fe45db3d19b11..ab82bc6447963a3045d6edc207e2a468bd6c9f03 100644
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
@@ -76,12 +76,6 @@ appWindow.registerCustomHook(function(bindingsAPI) {
return chromeHidden.currentAppWindow;
});
- chromeHidden.OnAppWindowClosed = function() {
- if (!chromeHidden.currentAppWindow)
- return;
- chromeHidden.currentAppWindow.onClosed.dispatch();
- };
-
// This is an internal function, but needs to be bound with setHandleRequest
// because it is called from a different JS context.
apiFunctions.setHandleRequest('initializeAppWindow', function(params) {
@@ -137,7 +131,7 @@ function boundsEqual(bounds1, bounds2) {
bounds1.width == bounds2.width && bounds1.height == bounds2.height);
}
-chromeHidden.updateAppWindowProperties = function(update) {
+function updateAppWindowProperties(update) {
if (!chromeHidden.appWindowData)
return;
var oldData = chromeHidden.appWindowData;
@@ -162,4 +156,12 @@ chromeHidden.updateAppWindowProperties = function(update) {
currentWindow["onRestored"].dispatch();
};
+function onAppWindowClosed() {
+ if (!chromeHidden.currentAppWindow)
+ return;
+ chromeHidden.currentAppWindow.onClosed.dispatch();
+}
+
exports.binding = appWindow.generate();
+exports.onAppWindowClosed = onAppWindowClosed;
+exports.updateAppWindowProperties = updateAppWindowProperties;
« no previous file with comments | « chrome/renderer/resources/extensions/app_custom_bindings.js ('k') | chrome/renderer/resources/extensions/event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698