| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 object_view->AddObserver(this); | 644 object_view->AddObserver(this); |
| 645 layout->AddView(object_view, 1, 1, views::GridLayout::LEADING, | 645 layout->AddView(object_view, 1, 1, views::GridLayout::LEADING, |
| 646 views::GridLayout::CENTER); | 646 views::GridLayout::CENTER); |
| 647 layout->AddPaddingRow(1, kPermissionsVerticalSpacing); | 647 layout->AddPaddingRow(1, kPermissionsVerticalSpacing); |
| 648 } | 648 } |
| 649 | 649 |
| 650 layout->Layout(permissions_view_); | 650 layout->Layout(permissions_view_); |
| 651 | 651 |
| 652 // Add site settings link. | 652 // Add site settings link. |
| 653 views::Link* site_settings_link = new views::Link( | 653 views::Link* site_settings_link = new views::Link( |
| 654 l10n_util::GetStringUTF16(IDS_PAGE_INFO_SITE_SETTINGS_LINK)); | 654 l10n_util::GetStringUTF16(IDS_PAGE_INFO_MORE_SETTINGS_LINK)); |
| 655 site_settings_link->set_id(LINK_SITE_SETTINGS); | 655 site_settings_link->set_id(LINK_SITE_SETTINGS); |
| 656 site_settings_link->set_listener(this); | 656 site_settings_link->set_listener(this); |
| 657 views::View* link_section = new views::View(); | 657 views::View* link_section = new views::View(); |
| 658 const int kLinkMarginTop = 4; | 658 const int kLinkMarginTop = 4; |
| 659 link_section->SetLayoutManager(new views::BoxLayout( | 659 link_section->SetLayoutManager(new views::BoxLayout( |
| 660 views::BoxLayout::kHorizontal, 0, kLinkMarginTop, 0)); | 660 views::BoxLayout::kHorizontal, 0, kLinkMarginTop, 0)); |
| 661 link_section->AddChildView(site_settings_link); | 661 link_section->AddChildView(site_settings_link); |
| 662 site_settings_view_->AddChildView(link_section); | 662 site_settings_view_->AddChildView(link_section); |
| 663 | 663 |
| 664 SizeToContents(); | 664 SizeToContents(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED); | 741 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED); |
| 742 break; | 742 break; |
| 743 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: | 743 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: |
| 744 presenter_->OnRevokeSSLErrorBypassButtonPressed(); | 744 presenter_->OnRevokeSSLErrorBypassButtonPressed(); |
| 745 GetWidget()->Close(); | 745 GetWidget()->Close(); |
| 746 break; | 746 break; |
| 747 default: | 747 default: |
| 748 NOTREACHED(); | 748 NOTREACHED(); |
| 749 } | 749 } |
| 750 } | 750 } |
| OLD | NEW |