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

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

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 1 month 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
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 c0168b59805df366150591f6abcaeb61f9b773c1..67dd80e27a1ba9d809843930ba5104db3e43727f 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -1,4 +1,8 @@
<script type="text/javascript">
+function sizeChanged(evt) {
+ document.title = "AutoSize(" + evt.newWidth + ", " + evt.newHeight + ")";
+}
+
function loadAbort(evt) {
document.title = evt.type;
}
@@ -101,4 +105,5 @@ function receiveMessage(event) {
window.addEventListener('message', receiveMessage, false);
plugin.addEventListener('loadstop', loadStop);
plugin.addEventListener('loadcommit', loadCommit);
+ plugin.addEventListener('sizechanged', sizeChanged);
</script>
« content/browser/renderer_host/render_view_host_impl.cc ('K') | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698