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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/function_stub.h ('k') | chrome_frame/host_w_controls.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <HTML>
2 <!-- TODO(slightlyoff): Move to tests directory? -->
3 <HEAD>
4 <TITLE> Chrome Frame Test </TITLE>
5 <SCRIPT type="text/javascript">
6 function GetChromeFrame() {
7 var chromeFrame = window.document.ChromeFrame
8 return chromeFrame;
9 }
10
11 function OnChromeFrameMessage(text) {
12 window.alert("In host: \r\nMessage from ChromeFrame: " + text);
13
14 var chromeFrame = GetChromeFrame();
15 chromeFrame.PostMessageToFrame("Hello from host");
16 return "OK";
17 }
18
19 function OnNavigate() {
20 var url = document.getElementById('inputurl');
21 var chromeFrame = GetChromeFrame();
22 chromeFrame.src = url.value;
23 }
24
25 function onLoad() {
26 var chromeFrame = GetChromeFrame();
27 chromeFrame.onmessage = OnChromeFrameMessage;
28 }
29
30 </SCRIPT>
31 </HEAD>
32 <BODY onload="onLoad();">
33 Chrome Frame Test activex
34 <br><br>
35 <input id="inputurl" type="text" name="URL">
36 <input type="submit" value="Navigate" onClick="OnNavigate();">
37 <center>
38 <OBJECT ID="ChromeFrame" WIDTH=500 HEIGHT=500 CODEBASE="http://www.google.com"
39 CLASSID="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
40 <PARAM NAME="src" VALUE="http://www.google.com">
41 <embed ID="ChromeFramePlugin" WIDTH=500 HEIGHT=500 NAME="ChromeFrame"
42 SRC="http://www.google.com" TYPE="application/chromeframe">
43 </embed>
44 </OBJECT>
45 </center>
46 </BODY>
47 </HTML>
OLDNEW
« 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