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 | 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 NULL); | 150 NULL); |
151 | 151 |
152 GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_)); | 152 GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_)); |
153 gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing); | 153 gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing); |
154 | 154 |
155 x509_certificate_model::RegisterDynamicOids(); | 155 x509_certificate_model::RegisterDynamicOids(); |
156 InitGeneralPage(); | 156 InitGeneralPage(); |
157 InitDetailsPage(); | 157 InitDetailsPage(); |
158 | 158 |
159 notebook_ = gtk_notebook_new(); | 159 notebook_ = gtk_notebook_new(); |
160 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog_)->vbox), notebook_); | 160 gtk_container_add(GTK_CONTAINER(content_area), notebook_); |
161 | 161 |
162 gtk_notebook_append_page( | 162 gtk_notebook_append_page( |
163 GTK_NOTEBOOK(notebook_), | 163 GTK_NOTEBOOK(notebook_), |
164 general_page_vbox_, | 164 general_page_vbox_, |
165 gtk_label_new_with_mnemonic( | 165 gtk_label_new_with_mnemonic( |
166 gfx::ConvertAcceleratorsFromWindowsStyle( | 166 gfx::ConvertAcceleratorsFromWindowsStyle( |
167 l10n_util::GetStringUTF8( | 167 l10n_util::GetStringUTF8( |
168 IDS_CERT_INFO_GENERAL_TAB_LABEL)).c_str())); | 168 IDS_CERT_INFO_GENERAL_TAB_LABEL)).c_str())); |
169 | 169 |
170 gtk_notebook_append_page( | 170 gtk_notebook_append_page( |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 net::X509Certificate::OSCertHandle cert) { | 713 net::X509Certificate::OSCertHandle cert) { |
714 net::X509Certificate::OSCertHandles cert_chain; | 714 net::X509Certificate::OSCertHandles cert_chain; |
715 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); | 715 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); |
716 (new CertificateViewer(parent, cert_chain))->Show(); | 716 (new CertificateViewer(parent, cert_chain))->Show(); |
717 } | 717 } |
718 | 718 |
719 void ShowNativeCertificateViewer(gfx::NativeWindow parent, | 719 void ShowNativeCertificateViewer(gfx::NativeWindow parent, |
720 net::X509Certificate* cert) { | 720 net::X509Certificate* cert) { |
721 ShowNativeCertificateViewer(parent, cert->os_cert_handle()); | 721 ShowNativeCertificateViewer(parent, cert->os_cert_handle()); |
722 } | 722 } |
OLD | NEW |