| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/views/page_info_window.h" | 5 #include "chrome/browser/views/page_info_window.h" |
| 6 | 6 |
| 7 #include <cryptuiapi.h> | 7 #include <cryptuiapi.h> |
| 8 #pragma comment(lib, "cryptui.lib") | 8 #pragma comment(lib, "cryptui.lib") |
| 9 | 9 |
| 10 #include <atlbase.h> | 10 #include <atlbase.h> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 separator_ = new views::Separator(); | 152 separator_ = new views::Separator(); |
| 153 AddChildView(separator_); | 153 AddChildView(separator_); |
| 154 | 154 |
| 155 status_image_ = new views::ImageView(); | 155 status_image_ = new views::ImageView(); |
| 156 status_image_->SetImage(state ? good_state_icon_ : bad_state_icon_); | 156 status_image_->SetImage(state ? good_state_icon_ : bad_state_icon_); |
| 157 AddChildView(status_image_); | 157 AddChildView(status_image_); |
| 158 | 158 |
| 159 head_line_label_ = new views::Label(head_line); | 159 head_line_label_ = new views::Label(head_line); |
| 160 head_line_label_->SetFont( | 160 head_line_label_->SetFont( |
| 161 head_line_label_->GetFont().DeriveFont(0, ChromeFont::BOLD)); | 161 head_line_label_->GetFont().DeriveFont(0, gfx::Font::BOLD)); |
| 162 head_line_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); | 162 head_line_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
| 163 AddChildView(head_line_label_); | 163 AddChildView(head_line_label_); |
| 164 | 164 |
| 165 description_label_ = new views::Label(description); | 165 description_label_ = new views::Label(description); |
| 166 description_label_->SetMultiLine(true); | 166 description_label_->SetMultiLine(true); |
| 167 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); | 167 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
| 168 AddChildView(description_label_); | 168 AddChildView(description_label_); |
| 169 } | 169 } |
| 170 | 170 |
| 171 SecurityTabView::Section::~Section() { | 171 SecurityTabView::Section::~Section() { |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // Search the cert store that 'cert' is in when building the cert chain. | 680 // Search the cert store that 'cert' is in when building the cert chain. |
| 681 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; | 681 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; |
| 682 view_info.cStores = 1; | 682 view_info.cStores = 1; |
| 683 view_info.rghStores = &cert_store; | 683 view_info.rghStores = &cert_store; |
| 684 BOOL properties_changed; | 684 BOOL properties_changed; |
| 685 | 685 |
| 686 // This next call blocks but keeps processing windows messages, making it | 686 // This next call blocks but keeps processing windows messages, making it |
| 687 // modal to the browser window. | 687 // modal to the browser window. |
| 688 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); | 688 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); |
| 689 } | 689 } |
| OLD | NEW |