Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: chrome/browser/ui/gtk/certificate_viewer.cc

Issue 9151007: GTK: Seal up GSEALs, focusing on GtkSelectionData. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add gtk_widget_style_attach to make minimal version 2.18 Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/bubble/bubble_gtk.cc ('k') | content/browser/renderer_host/gtk_im_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698