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

Unified Diff: chrome_frame/host.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/function_stub.h ('k') | chrome_frame/host_w_controls.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/host.html
===================================================================
--- chrome_frame/host.html (revision 0)
+++ chrome_frame/host.html (revision 0)
@@ -0,0 +1,47 @@
+<HTML>
+<!-- TODO(slightlyoff): Move to tests directory? -->
+<HEAD>
+<TITLE> Chrome Frame Test </TITLE>
+<SCRIPT type="text/javascript">
+function GetChromeFrame() {
+ var chromeFrame = window.document.ChromeFrame
+ return chromeFrame;
+}
+
+function OnChromeFrameMessage(text) {
+ window.alert("In host: \r\nMessage from ChromeFrame: " + text);
+
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.PostMessageToFrame("Hello from host");
+ return "OK";
+}
+
+function OnNavigate() {
+ var url = document.getElementById('inputurl');
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.src = url.value;
+}
+
+function onLoad() {
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.onmessage = OnChromeFrameMessage;
+}
+
+</SCRIPT>
+</HEAD>
+<BODY onload="onLoad();">
+Chrome Frame Test activex
+<br><br>
+<input id="inputurl" type="text" name="URL">
+<input type="submit" value="Navigate" onClick="OnNavigate();">
+<center>
+<OBJECT ID="ChromeFrame" WIDTH=500 HEIGHT=500 CODEBASE="http://www.google.com"
+ CLASSID="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
+ <PARAM NAME="src" VALUE="http://www.google.com">
+ <embed ID="ChromeFramePlugin" WIDTH=500 HEIGHT=500 NAME="ChromeFrame"
+ SRC="http://www.google.com" TYPE="application/chromeframe">
+ </embed>
+</OBJECT>
+</center>
+</BODY>
+</HTML>
« no previous file with comments | « chrome_frame/function_stub.h ('k') | chrome_frame/host_w_controls.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698