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

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

Issue 11027065: Browser plugin: Implement titleChanged event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for pages with no title Created 8 years, 2 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_manager_impl.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_titlechange.html
diff --git a/content/test/data/browser_plugin_embedder_titlechange.html b/content/test/data/browser_plugin_embedder_titlechange.html
new file mode 100644
index 0000000000000000000000000000000000000000..f0f906dca402acf647e130c6e686f273fcd6e2af
--- /dev/null
+++ b/content/test/data/browser_plugin_embedder_titlechange.html
@@ -0,0 +1,24 @@
+<script type="text/javascript">
+function titleChange(evt) {
+ document.title = evt.title;
+}
+function SetSrc(src) {
+ var plugin = document.getElementById('plugin');
+ plugin.src = src;
+}
+function Back() {
+ var plugin = document.getElementById('plugin');
+ plugin.back();
+}
+</script>
+
+<object id="plugin"
+ tabindex="0"
+ type="application/browser-plugin"
+ width="640"
+ height="480"
+ border="0px"></object>
+<script type="text/javascript">
+ var plugin = document.getElementById('plugin');
+ plugin.addEventListener('titlechange', titleChange);
+</script>
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698