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

Unified Diff: webkit/plugins/npapi/plugin_utils.h

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/npapi/plugin_utils.h
===================================================================
--- webkit/plugins/npapi/plugin_utils.h (revision 212369)
+++ webkit/plugins/npapi/plugin_utils.h (working copy)
@@ -6,6 +6,7 @@
#define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
#include "base/strings/string16.h"
+#include "ui/gfx/native_widget_types.h"
namespace base {
class Version;
@@ -31,7 +32,26 @@
// instead of exiting cleanly.
bool ShouldForcefullyTerminatePluginProcess();
+#if defined(OS_WIN)
+// The window class name for a plugin window.
+extern const char16 kNativeWindowClassName[];
+extern const char16 kPluginNameAtomProperty[];
+extern const char16 kPluginVersionAtomProperty[];
+extern const char16 kDummyActivationWindowName[];
+bool IsPluginDelegateWindow(HWND window);
+bool GetPluginNameFromWindow(HWND window, base::string16* plugin_name);
+bool GetPluginVersionFromWindow(HWND window, base::string16* plugin_version);
+
+// Returns true if the window handle passed in is that of the dummy
+// activation window for windowless plugins.
+bool IsDummyActivationWindow(HWND window);
+
+// Returns the default HWND to parent the windowed plugins and dummy windows
+// for activation to when none isavailable.
+HWND GetDefaultWindowParent();
+#endif
+
} // namespace npapi
} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698