| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 return plugin_installer_state_; | 180 return plugin_installer_state_; |
| 181 } | 181 } |
| 182 | 182 |
| 183 // Getter for the NPP instance member. | 183 // Getter for the NPP instance member. |
| 184 const NPP instance() const { | 184 const NPP instance() const { |
| 185 return instance_; | 185 return instance_; |
| 186 } | 186 } |
| 187 | 187 |
| 188 // Returns whether or not the UI layout is right-to-left (such as Hebrew or | 188 // Returns whether or not the UI layout is right-to-left (such as Hebrew or |
| 189 // Arabic). | 189 // Arabic). |
| 190 bool IsRTLLayout() const; | 190 static bool IsRTLLayout(); |
| 191 | 191 |
| 192 // Parses the plugin instantiation arguments. This includes checking for | 192 // Parses the plugin instantiation arguments. This includes checking for |
| 193 // whether this is an activex install and reading the appropriate | 193 // whether this is an activex install and reading the appropriate |
| 194 // arguments like codebase, etc. For plugin installs we download the | 194 // arguments like codebase, etc. For plugin installs we download the |
| 195 // plugin finder URL and initalize the mime type and the plugin instance | 195 // plugin finder URL and initalize the mime type and the plugin instance |
| 196 // info. | 196 // info. |
| 197 // | 197 // |
| 198 // Parameters: | 198 // Parameters: |
| 199 // module_handle: The handle to the dll in which this object is instantiated. | 199 // module_handle: The handle to the dll in which this object is instantiated. |
| 200 // instance: The plugins opaque instance handle. | 200 // instance: The plugins opaque instance handle. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 std::string desired_language_; | 341 std::string desired_language_; |
| 342 // The plugin name. | 342 // The plugin name. |
| 343 std::wstring plugin_name_; | 343 std::wstring plugin_name_; |
| 344 // The actual download URL. | 344 // The actual download URL. |
| 345 std::string plugin_download_url_; | 345 std::string plugin_download_url_; |
| 346 // Indicates if the plugin download URL points to an exe. | 346 // Indicates if the plugin download URL points to an exe. |
| 347 bool plugin_download_url_for_display_; | 347 bool plugin_download_url_for_display_; |
| 348 // The current state of the plugin installer. | 348 // The current state of the plugin installer. |
| 349 PluginInstallerState plugin_installer_state_; | 349 PluginInstallerState plugin_installer_state_; |
| 350 // Used to display the UI for plugin installation. | 350 // Used to display the UI for plugin installation. |
| 351 PluginInstallDialog install_dialog_; | 351 PluginInstallDialog* install_dialog_; |
| 352 // To enable auto refresh of the plugin window once the installation | 352 // To enable auto refresh of the plugin window once the installation |
| 353 // is complete, we spawn the installation process in a job, and monitor | 353 // is complete, we spawn the installation process in a job, and monitor |
| 354 // IO completion events on the job. When the active process count of the | 354 // IO completion events on the job. When the active process count of the |
| 355 // job falls to zero, we initiate an auto refresh of the plugin list | 355 // job falls to zero, we initiate an auto refresh of the plugin list |
| 356 // which enables the downloaded plugin to be instantiated. | 356 // which enables the downloaded plugin to be instantiated. |
| 357 // The completion events from the job are monitored in an independent | 357 // The completion events from the job are monitored in an independent |
| 358 // thread. | 358 // thread. |
| 359 scoped_refptr<PluginInstallationJobMonitorThread> | 359 scoped_refptr<PluginInstallationJobMonitorThread> |
| 360 installation_job_monitor_thread_; | 360 installation_job_monitor_thread_; |
| 361 // This object handles download and parsing of the plugins database. | 361 // This object handles download and parsing of the plugins database. |
| 362 PluginDatabaseHandler plugin_database_handler_; | 362 PluginDatabaseHandler plugin_database_handler_; |
| 363 // Indicates if the left click to download/refresh should be enabled or not. | 363 // Indicates if the left click to download/refresh should be enabled or not. |
| 364 bool enable_click_; | 364 bool enable_click_; |
| 365 // Handles to the fonts used to display text in the plugin window. | 365 // Handles to the fonts used to display text in the plugin window. |
| 366 HFONT bold_font_; | 366 HFONT bold_font_; |
| 367 HFONT regular_font_; | 367 HFONT regular_font_; |
| 368 HFONT underline_font_; | 368 HFONT underline_font_; |
| 369 // Tooltip Window. | 369 // Tooltip Window. |
| 370 HWND tooltip_; | 370 HWND tooltip_; |
| 371 // ActiveX related. | 371 // ActiveX related. |
| 372 std::string activex_codebase_; | 372 std::string activex_codebase_; |
| 373 std::string activex_clsid_; | 373 std::string activex_clsid_; |
| 374 CComObject<ActiveXInstaller>* activex_installer_; | 374 CComObject<ActiveXInstaller>* activex_installer_; |
| 375 | 375 |
| 376 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); | 376 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
| 377 }; | 377 }; |
| 378 | 378 |
| 379 | 379 |
| 380 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ | 380 #endif // WEBKIT_DEFAULT_PLUGIN_PLUGIN_IMPL_WIN_H_ |
| OLD | NEW |