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

Unified Diff: o3d/gpu_plugin/gpu_plugin_object.cc

Issue 344001: GPUPluginObject has methods to query its current window size.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | « o3d/gpu_plugin/gpu_plugin_object.h ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/gpu_plugin_object.cc
===================================================================
--- o3d/gpu_plugin/gpu_plugin_object.cc (revision 30114)
+++ o3d/gpu_plugin/gpu_plugin_object.cc (working copy)
@@ -44,6 +44,14 @@
NPError error = PlatformSpecificSetWindow(new_window);
if (error == NPERR_NO_ERROR) {
window_ = *new_window;
+
+ if (event_sync_.Get()) {
+ NPInvokeVoid(npp_,
+ event_sync_,
+ "resize",
+ static_cast<int32>(window_.width),
+ static_cast<int32>(window_.height));
+ }
} else {
memset(&window_, 0, sizeof(window_));
}
« no previous file with comments | « o3d/gpu_plugin/gpu_plugin_object.h ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698