| 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 #ifndef CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ | 5 #ifndef CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ |
| 6 #define CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ | 6 #define CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlwin.h> | 10 #include <atlwin.h> |
| 11 |
| 11 #include <string> | 12 #include <string> |
| 12 #include <vector> | 13 #include <vector> |
| 13 | 14 |
| 15 #include "base/win/atlcheck.h" |
| 14 #include "chrome/default_plugin/default_plugin_resources.h" | 16 #include "chrome/default_plugin/default_plugin_resources.h" |
| 15 | 17 |
| 16 class PluginInstallerImpl; | 18 class PluginInstallerImpl; |
| 17 | 19 |
| 18 // Displays the plugin installation dialog containing information | 20 // Displays the plugin installation dialog containing information |
| 19 // about the mime type of the plugin being downloaded, the URL | 21 // about the mime type of the plugin being downloaded, the URL |
| 20 // where it would be downloaded from, etc. | 22 // where it would be downloaded from, etc. |
| 21 class PluginInstallDialog : public CDialogImpl<PluginInstallDialog> { | 23 class PluginInstallDialog : public CDialogImpl<PluginInstallDialog> { |
| 22 public: | 24 public: |
| 23 enum {IDD = IDD_DEFAULT_PLUGIN_INSTALL_DIALOG}; | 25 enum {IDD = IDD_DEFAULT_PLUGIN_INSTALL_DIALOG}; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 | 54 |
| 53 // Wraps the string with Unicode directionality characters in order to make | 55 // Wraps the string with Unicode directionality characters in order to make |
| 54 // sure BiDi text is rendered correctly when the UI layout is right-to-left. | 56 // sure BiDi text is rendered correctly when the UI layout is right-to-left. |
| 55 void AdjustTextDirectionality(std::wstring* text) const; | 57 void AdjustTextDirectionality(std::wstring* text) const; |
| 56 | 58 |
| 57 std::vector<PluginInstallerImpl*> installers_; | 59 std::vector<PluginInstallerImpl*> installers_; |
| 58 std::wstring plugin_name_; | 60 std::wstring plugin_name_; |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 #endif // CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ | 63 #endif // CHROME_DEFAULT_PLUGIN_INSTALL_DIALOG_H_ |
| OLD | NEW |