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

Unified Diff: content/test/data/browser_plugin_embedder.html

Issue 10960003: Browser Plugin: Implement Back, Forward, and Go. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 8 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 | « content/renderer/browser_plugin/browser_plugin_bindings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/browser_plugin_embedder.html
diff --git a/content/test/data/browser_plugin_embedder.html b/content/test/data/browser_plugin_embedder.html
index 31a78467a65d57d70e50da1e131de0351542d808..fb70190a767173c43b5f411923db241b084328da 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -1,13 +1,25 @@
<script type="text/javascript">
function SetSrc(src) {
- plugin = document.getElementById('plugin');
+ var plugin = document.getElementById('plugin');
plugin.src = src;
}
function SetSize(w, h) {
- plugin = document.getElementById('plugin');
+ var plugin = document.getElementById('plugin');
plugin.width = w;
plugin.height = h;
}
+function Back() {
+ var plugin = document.getElementById('plugin');
+ plugin.back();
+}
+function Forward() {
+ var plugin = document.getElementById('plugin');
+ plugin.forward();
+}
+function Go(relativeIndex) {
+ var plugin = document.getElementById('plugin');
+ plugin.go(relativeIndex);
+}
</script>
<object id="plugin"
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_bindings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698