| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 5 #ifndef WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
| 6 #define WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 6 #define WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "gfx/native_widget_types.h" |
| 11 #include "third_party/npapi/bindings/npapi.h" | 12 #include "third_party/npapi/bindings/npapi.h" |
| 12 #include "gfx/native_widget_types.h" | |
| 13 | 13 |
| 14 // Possible plugin installer states. | 14 // Possible plugin installer states. |
| 15 enum PluginInstallerState { | 15 enum PluginInstallerState { |
| 16 PluginInstallerStateUndefined, | 16 PluginInstallerStateUndefined, |
| 17 PluginListDownloadInitiated, | 17 PluginListDownloadInitiated, |
| 18 PluginListDownloaded, | 18 PluginListDownloaded, |
| 19 PluginListDownloadedPluginNotFound, | 19 PluginListDownloadedPluginNotFound, |
| 20 PluginListDownloadFailed, | 20 PluginListDownloadFailed, |
| 21 PluginDownloadInitiated, | 21 PluginDownloadInitiated, |
| 22 PluginDownloadCompleted, | 22 PluginDownloadCompleted, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 // The handle to the dll in which this object is instantiated. | 46 // The handle to the dll in which this object is instantiated. |
| 47 // instance | 47 // instance |
| 48 // The plugins opaque instance handle. | 48 // The plugins opaque instance handle. |
| 49 // mime_type | 49 // mime_type |
| 50 // Identifies the third party plugin which would be eventually installed. | 50 // Identifies the third party plugin which would be eventually installed. |
| 51 // argc | 51 // argc |
| 52 // Indicates the count of arguments passed in from the webpage. | 52 // Indicates the count of arguments passed in from the webpage. |
| 53 // argv | 53 // argv |
| 54 // Pointer to the arguments. | 54 // Pointer to the arguments. |
| 55 // Returns true on success. | 55 // Returns true on success. |
| 56 bool Initialize(void *module_handle, NPP instance, NPMIMEType mime_type, | 56 bool Initialize(void* module_handle, NPP instance, NPMIMEType mime_type, |
| 57 int16 argc, char* argn[], char* argv[]); | 57 int16 argc, char* argn[], char* argv[]); |
| 58 | 58 |
| 59 // Informs the plugin of its window information. | 59 // Informs the plugin of its window information. |
| 60 // | 60 // |
| 61 // Parameters: | 61 // Parameters: |
| 62 // window_info | 62 // window_info |
| 63 // The window info passed to npapi. | 63 // The window info passed to npapi. |
| 64 bool NPP_SetWindow(NPWindow* window_info); | 64 bool NPP_SetWindow(NPWindow* window_info); |
| 65 | 65 |
| 66 // Destroys the install dialog. | 66 // Destroys the install dialog. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 NPP instance_; | 270 NPP instance_; |
| 271 // The current stream. | 271 // The current stream. |
| 272 NPStream* plugin_install_stream_; | 272 NPStream* plugin_install_stream_; |
| 273 // The desired mime type. | 273 // The desired mime type. |
| 274 std::string mime_type_; | 274 std::string mime_type_; |
| 275 // The current state of the plugin installer. | 275 // The current state of the plugin installer. |
| 276 PluginInstallerState plugin_installer_state_; | 276 PluginInstallerState plugin_installer_state_; |
| 277 // Dimensions of the plugin | 277 // Dimensions of the plugin |
| 278 uint32_t width_; | 278 uint32_t width_; |
| 279 uint32_t height_; | 279 uint32_t height_; |
| 280 DISALLOW_EVIL_CONSTRUCTORS(PluginInstallerImpl); | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
| 281 }; | 282 }; |
| 282 | 283 |
| 283 | 284 |
| 284 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 285 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
| OLD | NEW |