| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_WIN_H_ | 5 #ifndef WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ |
| 6 #define WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ | 6 #define WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/window_impl.h" | 11 #include "app/win/window_impl.h" |
| 12 #include "third_party/npapi/bindings/npapi.h" | 12 #include "third_party/npapi/bindings/npapi.h" |
| 13 #include "webkit/default_plugin/install_dialog.h" | 13 #include "webkit/default_plugin/install_dialog.h" |
| 14 #include "webkit/default_plugin/plugin_database_handler.h" | 14 #include "webkit/default_plugin/plugin_database_handler.h" |
| 15 #include "webkit/default_plugin/plugin_install_job_monitor.h" | 15 #include "webkit/default_plugin/plugin_install_job_monitor.h" |
| 16 | 16 |
| 17 // Possible plugin installer states. | 17 // Possible plugin installer states. |
| 18 enum PluginInstallerState { | 18 enum PluginInstallerState { |
| 19 PluginInstallerStateUndefined, | 19 PluginInstallerStateUndefined, |
| 20 PluginListDownloadInitiated, | 20 PluginListDownloadInitiated, |
| 21 PluginListDownloaded, | 21 PluginListDownloaded, |
| 22 PluginListDownloadedPluginNotFound, | 22 PluginListDownloadedPluginNotFound, |
| 23 PluginListDownloadFailed, | 23 PluginListDownloadFailed, |
| 24 PluginDownloadInitiated, | 24 PluginDownloadInitiated, |
| 25 PluginDownloadCompleted, | 25 PluginDownloadCompleted, |
| 26 PluginDownloadFailed, | 26 PluginDownloadFailed, |
| 27 PluginInstallerLaunchSuccess, | 27 PluginInstallerLaunchSuccess, |
| 28 PluginInstallerLaunchFailure | 28 PluginInstallerLaunchFailure |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class PluginInstallDialog; | 31 class PluginInstallDialog; |
| 32 class PluginDatabaseHandler; | 32 class PluginDatabaseHandler; |
| 33 | 33 |
| 34 // Provides the plugin installation functionality. This class is | 34 // Provides the plugin installation functionality. This class is |
| 35 // instantiated with the information like the mime type of the | 35 // instantiated with the information like the mime type of the |
| 36 // target plugin, the display mode, etc. | 36 // target plugin, the display mode, etc. |
| 37 class PluginInstallerImpl : public base::WindowImpl { | 37 class PluginInstallerImpl : public app::WindowImpl { |
| 38 public: | 38 public: |
| 39 static const int kRefreshPluginsMessage = WM_APP + 1; | 39 static const int kRefreshPluginsMessage = WM_APP + 1; |
| 40 static const int kInstallMissingPluginMessage = WM_APP + 2; | 40 static const int kInstallMissingPluginMessage = WM_APP + 2; |
| 41 | 41 |
| 42 // mode is the plugin instantiation mode, i.e. whether it is a full | 42 // mode is the plugin instantiation mode, i.e. whether it is a full |
| 43 // page plugin (NP_FULL) or an embedded plugin (NP_EMBED) | 43 // page plugin (NP_FULL) or an embedded plugin (NP_EMBED) |
| 44 explicit PluginInstallerImpl(int16 mode); | 44 explicit PluginInstallerImpl(int16 mode); |
| 45 virtual ~PluginInstallerImpl(); | 45 virtual ~PluginInstallerImpl(); |
| 46 | 46 |
| 47 BEGIN_MSG_MAP_EX(PluginInstallerImpl) | 47 BEGIN_MSG_MAP_EX(PluginInstallerImpl) |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 HFONT regular_font_; | 308 HFONT regular_font_; |
| 309 HFONT underline_font_; | 309 HFONT underline_font_; |
| 310 // Tooltip Window. | 310 // Tooltip Window. |
| 311 HWND tooltip_; | 311 HWND tooltip_; |
| 312 | 312 |
| 313 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); | 313 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 | 316 |
| 317 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ | 317 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ |
| OLD | NEW |