summaryrefslogtreecommitdiffstats
path: root/chrome_frame/frame_w_controls.html
diff options
context:
space:
mode:
authorslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 05:11:58 +0000
committerslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 05:11:58 +0000
commitf781782dd67077478e117c61dca4ea5eefce3544 (patch)
tree4801f724123cfdcbb69c4e7fe40a565b331723ae /chrome_frame/frame_w_controls.html
parent63cf4759efa2373e33436fb5df6849f930081226 (diff)
downloadchromium_src-f781782dd67077478e117c61dca4ea5eefce3544.zip
chromium_src-f781782dd67077478e117c61dca4ea5eefce3544.tar.gz
chromium_src-f781782dd67077478e117c61dca4ea5eefce3544.tar.bz2
Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming in a separate CL.
BUG=None TEST=None Review URL: http://codereview.chromium.org/218019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/frame_w_controls.html')
-rw-r--r--chrome_frame/frame_w_controls.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome_frame/frame_w_controls.html b/chrome_frame/frame_w_controls.html
new file mode 100644
index 0000000..d80642f
--- /dev/null
+++ b/chrome_frame/frame_w_controls.html
@@ -0,0 +1,29 @@
+<html>
+<!-- TODO(slightlyoff): Move to tests directory? -->
+<head>
+<title>Script test</title>
+<script>
+function msg(txt) {
+ window.document.getElementById("my_text").innerText = txt;
+}
+
+function OnLoad() {
+ var host = window.externalHost;
+ host.ForwardMessageToExternalHost("OnChromeFrameMessage",
+ "Hello from ChromeFrame");
+}
+
+function OnHostMessage(text) {
+ msg("In ChromeFrame: \r\n Message from host: " + text);
+}
+</script>
+</head>
+<body onload="OnLoad();">
+Here's an edit field: <input type="text"><br>
+Here's another: <input type="text"><br>
+<p>
+Message:<br>
+<pre><div id="my_text"></div></pre>
+</p>
+</body>
+</html>