| 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 |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 ShowCertExportDialog(NULL, GTK_WINDOW(viewer->dialog_), | 713 ShowCertExportDialog(NULL, GTK_WINDOW(viewer->dialog_), |
| 714 viewer->cert_chain_list_[cert_index]); | 714 viewer->cert_chain_list_[cert_index]); |
| 715 } | 715 } |
| 716 | 716 |
| 717 void CertificateViewer::Show() { | 717 void CertificateViewer::Show() { |
| 718 gtk_util::ShowDialog(dialog_); | 718 gtk_util::ShowDialog(dialog_); |
| 719 } | 719 } |
| 720 | 720 |
| 721 } // namespace | 721 } // namespace |
| 722 | 722 |
| 723 void ShowCertificateViewer(gfx::NativeWindow parent, | 723 void ShowCertificateViewer(content::WebContents* web_contents, |
| 724 gfx::NativeWindow parent, |
| 724 net::X509Certificate* cert) { | 725 net::X509Certificate* cert) { |
| 725 (new CertificateViewer(parent, cert))->Show(); | 726 (new CertificateViewer(parent, cert))->Show(); |
| 726 } | 727 } |
| OLD | NEW |