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

Unified Diff: chrome_frame/cfinstall/src/common/interactiondelegate.js

Issue 8467005: Publish the source for CFInstall.min.js . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Line length fixes. Created 9 years, 1 month 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_frame/cfinstall/src/common/interactiondelegate.js
diff --git a/chrome_frame/cfinstall/src/common/interactiondelegate.js b/chrome_frame/cfinstall/src/common/interactiondelegate.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9cb8c627cc65a546eba0278a93b88aeb57614b9
--- /dev/null
+++ b/chrome_frame/cfinstall/src/common/interactiondelegate.js
@@ -0,0 +1,49 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Describes an interface clients may implement to customize the
+ * look and feel of the Chrome Frame installation flow on their site.
+ *
+ */
+
+goog.provide('google.cf.installer.InteractionDelegate');
+
+/**
+ * Allows clients to customize the display of the IFrame holding the Chrome
+ * Frame installation flow.
+ * @interface
+ */
+google.cf.installer.InteractionDelegate = function() {};
+
+/**
+ * Returns the element under which the IFrame should be located. Note that the
+ * IFrame must remain in the DOM for the duration of the connection.
+ * Re-parenting the IFrame or any ancestor will cause undefined behaviour.
+ * @return {!HTMLElement} The element that should be the parent of the IFrame.
+ */
+google.cf.installer.InteractionDelegate.prototype.getIFrameContainer =
+ function() {};
+
+/**
+ * Receives a reference to the newly created IFrame. May optionally modify the
+ * element's attributes, style, etc. The InteractionDelegate is not responsible
+ * for inserting the IFrame in the DOM (this will occur later).
+ * @param {!HTMLIFrameElement} iframe The newly created IFrame element.
+ */
+google.cf.installer.InteractionDelegate.prototype.customizeIFrame =
+ function(iframe) {};
+
+/**
+ * Make the IFrame and its decoration (if any) visible. Its dimensions will
+ * already have been adjusted to those of the contained content.
+ */
+google.cf.installer.InteractionDelegate.prototype.show = function() {};
+
+
+/**
+ * Receives notification that the installation flow is complete and that the
+ * IFrame and its decoration (if any) should be hidden and resources freed.
+ */
+google.cf.installer.InteractionDelegate.prototype.reset = function() {};

Powered by Google App Engine
This is Rietveld 408576698