OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
6 #include <pango/pango-font.h> | 6 #include <pango/pango-font.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/certificate_viewer.h" | 16 #include "chrome/browser/certificate_viewer.h" |
17 #include "chrome/browser/ui/certificate_dialogs.h" | 17 #include "chrome/browser/ui/certificate_dialogs.h" |
18 #include "chrome/browser/ui/gtk/gtk_util.h" | 18 #include "chrome/browser/ui/gtk/gtk_util.h" |
19 #include "chrome/common/net/x509_certificate_model.h" | 19 #include "chrome/common/net/x509_certificate_model.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "net/base/x509_certificate.h" | 21 #include "net/cert/x509_certificate.h" |
22 #include "ui/base/gtk/gtk_hig_constants.h" | 22 #include "ui/base/gtk/gtk_hig_constants.h" |
23 #include "ui/base/gtk/menu_label_accelerator_util.h" | 23 #include "ui/base/gtk/menu_label_accelerator_util.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 #include "ui/gfx/pango_util.h" | 26 #include "ui/gfx/pango_util.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const char kDetailsFontFamily[] = "monospace"; | 30 const char kDetailsFontFamily[] = "monospace"; |
31 | 31 |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 gtk_util::ShowDialog(dialog_); | 718 gtk_util::ShowDialog(dialog_); |
719 } | 719 } |
720 | 720 |
721 } // namespace | 721 } // namespace |
722 | 722 |
723 void ShowCertificateViewer(content::WebContents* web_contents, | 723 void ShowCertificateViewer(content::WebContents* web_contents, |
724 gfx::NativeWindow parent, | 724 gfx::NativeWindow parent, |
725 net::X509Certificate* cert) { | 725 net::X509Certificate* cert) { |
726 (new CertificateViewer(parent, cert))->Show(); | 726 (new CertificateViewer(parent, cert))->Show(); |
727 } | 727 } |
OLD | NEW |