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

Side by Side Diff: webkit/plugins/npapi/plugin_utils.h

Issue 19844003: Remove webkit/plugins/npapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove GetDefaultWindowParent 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
7
8 #include "base/strings/string16.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 namespace base {
12 class Version;
13 }
14
15 namespace webkit {
16 namespace npapi {
17
18 // Parse a version string as used by a plug-in. This method is more lenient
19 // in accepting weird version strings than base::Version::GetFromString()
20 void CreateVersionFromString(
21 const base::string16& version_string,
22 base::Version* parsed_version);
23
24 // Returns true iff NPAPI plugins are supported on the current platform.
25 bool NPAPIPluginsSupported();
26
27 // Tells the plugin thread to terminate the process forcefully instead of
28 // exiting cleanly.
29 void SetForcefullyTerminatePluginProcess(bool value);
30
31 // Returns true if the plugin thread should terminate the process forcefully
32 // instead of exiting cleanly.
33 bool ShouldForcefullyTerminatePluginProcess();
34
35 #if defined(OS_WIN)
36 // The window class name for a plugin window.
37 extern const char16 kNativeWindowClassName[];
38 extern const char16 kPluginNameAtomProperty[];
39 extern const char16 kPluginVersionAtomProperty[];
40 extern const char16 kDummyActivationWindowName[];
41
42 bool IsPluginDelegateWindow(HWND window);
43 bool GetPluginNameFromWindow(HWND window, base::string16* plugin_name);
44 bool GetPluginVersionFromWindow(HWND window, base::string16* plugin_version);
45
46 // Returns true if the window handle passed in is that of the dummy
47 // activation window for windowless plugins.
48 bool IsDummyActivationWindow(HWND window);
49
50 // Returns the default HWND to parent the windowed plugins and dummy windows
51 // for activation to when none isavailable.
52 HWND GetDefaultWindowParent();
53 #endif
54
55 } // namespace npapi
56 } // namespace webkit
57
58 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698