OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 IDS_CERT_INFO_DIALOG_TITLE, | 141 IDS_CERT_INFO_DIALOG_TITLE, |
142 UTF8ToUTF16( | 142 UTF8ToUTF16( |
143 x509_certificate_model::GetTitle( | 143 x509_certificate_model::GetTitle( |
144 cert_chain_list_.front()))).c_str(), | 144 cert_chain_list_.front()))).c_str(), |
145 parent, | 145 parent, |
146 // Non-modal. | 146 // Non-modal. |
147 GTK_DIALOG_NO_SEPARATOR, | 147 GTK_DIALOG_NO_SEPARATOR, |
148 GTK_STOCK_CLOSE, | 148 GTK_STOCK_CLOSE, |
149 GTK_RESPONSE_CLOSE, | 149 GTK_RESPONSE_CLOSE, |
150 NULL); | 150 NULL); |
151 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog_)->vbox), | 151 |
152 ui::kContentAreaSpacing); | 152 GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_)); |
| 153 gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing); |
153 | 154 |
154 x509_certificate_model::RegisterDynamicOids(); | 155 x509_certificate_model::RegisterDynamicOids(); |
155 InitGeneralPage(); | 156 InitGeneralPage(); |
156 InitDetailsPage(); | 157 InitDetailsPage(); |
157 | 158 |
158 notebook_ = gtk_notebook_new(); | 159 notebook_ = gtk_notebook_new(); |
159 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog_)->vbox), notebook_); | 160 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog_)->vbox), notebook_); |
160 | 161 |
161 gtk_notebook_append_page( | 162 gtk_notebook_append_page( |
162 GTK_NOTEBOOK(notebook_), | 163 GTK_NOTEBOOK(notebook_), |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 net::X509Certificate::OSCertHandle cert) { | 713 net::X509Certificate::OSCertHandle cert) { |
713 net::X509Certificate::OSCertHandles cert_chain; | 714 net::X509Certificate::OSCertHandles cert_chain; |
714 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); | 715 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); |
715 (new CertificateViewer(parent, cert_chain))->Show(); | 716 (new CertificateViewer(parent, cert_chain))->Show(); |
716 } | 717 } |
717 | 718 |
718 void ShowNativeCertificateViewer(gfx::NativeWindow parent, | 719 void ShowNativeCertificateViewer(gfx::NativeWindow parent, |
719 net::X509Certificate* cert) { | 720 net::X509Certificate* cert) { |
720 ShowNativeCertificateViewer(parent, cert->os_cert_handle()); | 721 ShowNativeCertificateViewer(parent, cert->os_cert_handle()); |
721 } | 722 } |
OLD | NEW |