OLD | NEW |
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 // Thes file contains stuff that should be shared among projects that do some | 5 // Thes file contains stuff that should be shared among projects that do some |
6 // special handling with default plugin | 6 // special handling with default plugin |
7 | 7 |
8 #ifndef WEBKIT_PLUGINS_NPAPI_DEFAULT_PLUGIN_SHARED_H | 8 #ifndef WEBKIT_GLUE_PLUGINS_DEFAULT_PLUGIN_SHARED_H |
9 #define WEBKIT_PLUGINS_NPAPI_DEFAULT_PLUGIN_SHARED_H | 9 #define WEBKIT_GLUE_PLUGINS_DEFAULT_PLUGIN_SHARED_H |
10 | |
11 namespace webkit { | |
12 namespace npapi { | |
13 | 10 |
14 namespace default_plugin { | 11 namespace default_plugin { |
15 | 12 |
16 // We use the NPNGetValue host function to send notification message to host. | 13 // We use the NPNGetValue host function to send notification message to host. |
17 // This corresponds to NPNVariable defined in npapi.h, and should be chosen so | 14 // This corresponds to NPNVariable defined in npapi.h, and should be chosen so |
18 // as to not overlap values if NPAPI is updated. | 15 // as to not overlap values if NPAPI is updated. |
19 | 16 |
20 const int kMissingPluginStatusStart = 5000; | 17 const int kMissingPluginStatusStart = 5000; |
21 | 18 |
22 enum MissingPluginStatus { | 19 enum MissingPluginStatus { |
23 MISSING_PLUGIN_AVAILABLE, | 20 MISSING_PLUGIN_AVAILABLE, |
24 MISSING_PLUGIN_USER_STARTED_DOWNLOAD | 21 MISSING_PLUGIN_USER_STARTED_DOWNLOAD |
25 }; | 22 }; |
26 | 23 |
27 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
28 #include <windows.h> | 25 #include <windows.h> |
29 const int kInstallMissingPluginMessage = WM_APP + 117; | 26 const int kInstallMissingPluginMessage = WM_APP + 117; |
30 #endif | 27 #endif |
31 | 28 |
32 } // namespace default_plugin | 29 } // namespace default_plugin |
33 | 30 |
34 } // namespace npapi | 31 #endif // WEBKIT_GLUE_PLUGINS_DEFAULT_PLUGIN_SHARED_H |
35 } // namespace webkit | |
36 | |
37 #endif // WEBKIT_PLUGINS_NPAPI_DEFAULT_PLUGIN_SHARED_H | |
OLD | NEW |