OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/chromeos/app_mode/certificate_manager_dialog.h" | 5 #include "chrome/browser/chromeos/app_mode/certificate_manager_dialog.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 #include "ui/views/controls/webview/web_dialog_view.h" | 17 #include "ui/views/controls/webview/web_dialog_view.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Hints for size of certificate manager dialog. | 21 // Hints for size of certificate manager dialog. |
22 const int kCertificateManagerDialogReasonableWidth = 712; | 22 const int kCertificateManagerDialogReasonableWidth = 712; |
23 const int kCertificateManagerDialogReasonableHeight = 412; | 23 const int kCertificateManagerDialogReasonableHeight = 412; |
24 const float kCertificateManagerDialogReasonableWidthRatio = 0.4f; | 24 const float kCertificateManagerDialogReasonableWidthRatio = 0.4f; |
25 const float kCertificateManagerDialogReasonableHeightRatio = 0.4f; | 25 const float kCertificateManagerDialogReasonableHeightRatio = 0.4f; |
26 | 26 |
(...skipping 27 matching lines...) Expand all Loading... |
54 kCertificateManagerDialogReasonableHeightRatio)); | 54 kCertificateManagerDialogReasonableHeightRatio)); |
55 | 55 |
56 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE)); | 56 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE)); |
57 } | 57 } |
58 | 58 |
59 CertificateManagerDialog::~CertificateManagerDialog() { | 59 CertificateManagerDialog::~CertificateManagerDialog() { |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 } // namespace chromeos | 63 } // namespace chromeos |
OLD | NEW |