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

Side by Side Diff: webkit/glue/plugins/plugin_host.cc

Issue 159128: linux: add windowless plugin plumbing (Closed)
Patch Set: address review comments Created 11 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "webkit/glue/plugins/plugin_host.h" 7 #include "webkit/glue/plugins/plugin_host.h"
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 #if defined(OS_WIN) 603 #if defined(OS_WIN)
604 if (!plugin->windowless()) { 604 if (!plugin->windowless()) {
605 RECT rect = {0}; 605 RECT rect = {0};
606 rect.left = invalidRect->left; 606 rect.left = invalidRect->left;
607 rect.right = invalidRect->right; 607 rect.right = invalidRect->right;
608 rect.top = invalidRect->top; 608 rect.top = invalidRect->top;
609 rect.bottom = invalidRect->bottom; 609 rect.bottom = invalidRect->bottom;
610 ::InvalidateRect(plugin->window_handle(), &rect, FALSE); 610 ::InvalidateRect(plugin->window_handle(), &rect, FALSE);
611 return; 611 return;
612 } 612 }
613 #elif defined(OS_LINUX)
614 NOTIMPLEMENTED();
615 #endif 613 #endif
616 gfx::Rect rect(invalidRect->left, 614 gfx::Rect rect(invalidRect->left,
617 invalidRect->top, 615 invalidRect->top,
618 invalidRect->right - invalidRect->left, 616 invalidRect->right - invalidRect->left,
619 invalidRect->bottom - invalidRect->top); 617 invalidRect->bottom - invalidRect->top);
620 plugin->webplugin()->InvalidateRect(rect); 618 plugin->webplugin()->InvalidateRect(rect);
621 } else { 619 } else {
622 plugin->webplugin()->Invalidate(); 620 plugin->webplugin()->Invalidate();
623 } 621 }
624 } 622 }
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 void NPN_PluginThreadAsyncCall(NPP id, 896 void NPN_PluginThreadAsyncCall(NPP id,
899 void (*func)(void *), 897 void (*func)(void *),
900 void *userData) { 898 void *userData) {
901 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); 899 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
902 if (plugin) { 900 if (plugin) {
903 plugin->PluginThreadAsyncCall(func, userData); 901 plugin->PluginThreadAsyncCall(func, userData);
904 } 902 }
905 } 903 }
906 904
907 } // extern "C" 905 } // extern "C"
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698