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

Unified Diff: chrome_frame/frame_w_controls.html

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome_frame/frame.html ('k') | chrome_frame/function_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/frame_w_controls.html
===================================================================
--- chrome_frame/frame_w_controls.html (revision 0)
+++ chrome_frame/frame_w_controls.html (revision 0)
@@ -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>
« no previous file with comments | « chrome_frame/frame.html ('k') | chrome_frame/function_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698