| 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 "chrome/browser/ui/views/website_settings/website_settings_popup_view.h
" | 5 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h
" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 if (identity_info.show_ssl_decision_revoke_button) | 710 if (identity_info.show_ssl_decision_revoke_button) |
| 711 header_->AddResetDecisionsLabel(); | 711 header_->AddResetDecisionsLabel(); |
| 712 } | 712 } |
| 713 | 713 |
| 714 header_->SetDetails(security_description->details); | 714 header_->SetDetails(security_description->details); |
| 715 | 715 |
| 716 Layout(); | 716 Layout(); |
| 717 SizeToContents(); | 717 SizeToContents(); |
| 718 } | 718 } |
| 719 | 719 |
| 720 void WebsiteSettingsPopupView::SetSelectedTab(TabId tab_id) { | |
| 721 // TODO(lgarron): Remove this method. (https://crbug.com/571533) | |
| 722 } | |
| 723 | |
| 724 views::View* WebsiteSettingsPopupView::CreateSiteSettingsView() { | 720 views::View* WebsiteSettingsPopupView::CreateSiteSettingsView() { |
| 725 views::View* site_settings_view = new views::View(); | 721 views::View* site_settings_view = new views::View(); |
| 726 views::BoxLayout* box_layout = | 722 views::BoxLayout* box_layout = |
| 727 new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0); | 723 new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0); |
| 728 site_settings_view->SetLayoutManager(box_layout); | 724 site_settings_view->SetLayoutManager(box_layout); |
| 729 box_layout->set_cross_axis_alignment( | 725 box_layout->set_cross_axis_alignment( |
| 730 views::BoxLayout::CROSS_AXIS_ALIGNMENT_STRETCH); | 726 views::BoxLayout::CROSS_AXIS_ALIGNMENT_STRETCH); |
| 731 box_layout->set_inside_border_insets( | 727 box_layout->set_inside_border_insets( |
| 732 gfx::Insets(0, kSectionPaddingHorizontal)); | 728 gfx::Insets(0, kSectionPaddingHorizontal)); |
| 733 | 729 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED); | 775 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED); |
| 780 break; | 776 break; |
| 781 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: | 777 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: |
| 782 presenter_->OnRevokeSSLErrorBypassButtonPressed(); | 778 presenter_->OnRevokeSSLErrorBypassButtonPressed(); |
| 783 GetWidget()->Close(); | 779 GetWidget()->Close(); |
| 784 break; | 780 break; |
| 785 default: | 781 default: |
| 786 NOTREACHED(); | 782 NOTREACHED(); |
| 787 } | 783 } |
| 788 } | 784 } |
| OLD | NEW |