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

Unified Diff: ui/webui/resources/js/cr/ui/page_manager/page.js

Issue 514503002: Clean up cr.ui.pageManager.Page prototype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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: ui/webui/resources/js/cr/ui/page_manager/page.js
diff --git a/ui/webui/resources/js/cr/ui/page_manager/page.js b/ui/webui/resources/js/cr/ui/page_manager/page.js
index 72219354a1ee5aac2a1651337b340101e57279e6..5686665e76bfc742113b3e882cdba2be071c1738 100644
--- a/ui/webui/resources/js/cr/ui/page_manager/page.js
+++ b/ui/webui/resources/js/cr/ui/page_manager/page.js
@@ -138,6 +138,22 @@ cr.define('cr.ui.pageManager', function() {
},
/**
+ * Called after the page has been shown.
+ */
+ didShowPage: function() {},
+
+ /**
+ * Called before the page will be hidden, e.g., when a different root page
+ * will be shown.
+ */
+ willHidePage: function() {},
+
+ /**
+ * Called after the overlay has been closed.
+ */
+ didClosePage: function() {},
+
+ /**
* Gets the container div for this page if it is an overlay.
* @type {HTMLDivElement}
*/
« no previous file with comments | « chrome/browser/resources/options/search_page.js ('k') | ui/webui/resources/js/cr/ui/page_manager/page_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698