OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 PLUGIN_QUIRK_PATCH_VM_API = 1048576, // Windows. | 88 PLUGIN_QUIRK_PATCH_VM_API = 1048576, // Windows. |
89 }; | 89 }; |
90 | 90 |
91 static WebPluginDelegateImpl* Create(const FilePath& filename, | 91 static WebPluginDelegateImpl* Create(const FilePath& filename, |
92 const std::string& mime_type, | 92 const std::string& mime_type, |
93 gfx::PluginWindowHandle containing_view); | 93 gfx::PluginWindowHandle containing_view); |
94 | 94 |
95 static bool IsPluginDelegateWindow(gfx::NativeWindow window); | 95 static bool IsPluginDelegateWindow(gfx::NativeWindow window); |
96 static bool GetPluginNameFromWindow(gfx::NativeWindow window, | 96 static bool GetPluginNameFromWindow(gfx::NativeWindow window, |
97 string16* plugin_name); | 97 string16* plugin_name); |
| 98 static bool GetPluginVersionFromWindow(gfx::NativeWindow window, |
| 99 string16* plugin_version); |
98 | 100 |
99 // Returns true if the window handle passed in is that of the dummy | 101 // Returns true if the window handle passed in is that of the dummy |
100 // activation window for windowless plugins. | 102 // activation window for windowless plugins. |
101 static bool IsDummyActivationWindow(gfx::NativeWindow window); | 103 static bool IsDummyActivationWindow(gfx::NativeWindow window); |
102 | 104 |
103 // WebPluginDelegate implementation | 105 // WebPluginDelegate implementation |
104 virtual bool Initialize(const GURL& url, | 106 virtual bool Initialize(const GURL& url, |
105 const std::vector<std::string>& arg_names, | 107 const std::vector<std::string>& arg_names, |
106 const std::vector<std::string>& arg_values, | 108 const std::vector<std::string>& arg_values, |
107 WebPlugin* plugin, | 109 WebPlugin* plugin, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 // True if NPP_New did not return an error. | 565 // True if NPP_New did not return an error. |
564 bool creation_succeeded_; | 566 bool creation_succeeded_; |
565 | 567 |
566 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 568 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
567 }; | 569 }; |
568 | 570 |
569 } // namespace npapi | 571 } // namespace npapi |
570 } // namespace webkit | 572 } // namespace webkit |
571 | 573 |
572 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 574 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |