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

Unified Diff: chrome/test/wtflib/test.html

Issue 2043006: WTF NPAPI extension. Early draft. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 7 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/test/wtflib/plugin.cc ('k') | chrome/test/wtflib/wtf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/wtflib/test.html
===================================================================
--- chrome/test/wtflib/test.html (revision 0)
+++ chrome/test/wtflib/test.html (revision 0)
@@ -0,0 +1,59 @@
+<!--
+Copyright 2009 Google Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+This file demonstrates how to use the generated Complex plug-in.
+-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<title>
+WTF sample.
+</title>
+<script>
+
+/**
+ * Logs text into the <pre> tag.
+ */
+function log(text) {
+ var div = document.getElementById('output');
+ div.innerHTML += text + '\n';
+}
+
+function init() {
+ window.alert('hello');
+ log("getting plugin");
+ var plugin = document.getElementById('plugin');
+ var wtf = plugin.WTF();
+
+ window.alert('Initializing.');
+ log("Initialize");
+ wtf.Initialize("/usr/local/google/home/jcarollo/chrome4/src/out/Debug");
+ window.alert('Initialized.');
+ log("NavigateToURL");
+ wtf.NavigateToURL("http://www.test.com");
+ log("Done");
+}
+
+</script>
+</head>
+<body>
+<pre id='output'></pre>
+<object type='application/wtf' id='plugin' width='0' height='0'> </object>
+<input type='button' value='Init' id='init_button' onclick='init();'/>
+</body>
+</html>
Property changes on: chrome/test/wtflib/test.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/wtflib/plugin.cc ('k') | chrome/test/wtflib/wtf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698