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/page_info/page_info_bubble_view.h" | 5 #include "chrome/browser/ui/views/page_info/page_info_bubble_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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 ->IsOffTheRecord(); | 575 ->IsOffTheRecord(); |
576 views::ImageView* icon = new NonAccessibleImageView(); | 576 views::ImageView* icon = new NonAccessibleImageView(); |
577 const gfx::Image& image = PageInfoUI::GetPermissionIcon(info); | 577 const gfx::Image& image = PageInfoUI::GetPermissionIcon(info); |
578 icon->SetImage(image.ToImageSkia()); | 578 icon->SetImage(image.ToImageSkia()); |
579 layout->AddView( | 579 layout->AddView( |
580 icon, 1, 2, views::GridLayout::FILL, | 580 icon, 1, 2, views::GridLayout::FILL, |
581 // TODO: The vertical alignment may change to CENTER once Harmony is | 581 // TODO: The vertical alignment may change to CENTER once Harmony is |
582 // implemented. See https://crbug.com/512442#c48 | 582 // implemented. See https://crbug.com/512442#c48 |
583 views::GridLayout::LEADING); | 583 views::GridLayout::LEADING); |
584 | 584 |
585 views::Label* cookies_label = new views::Label( | 585 views::Label* cookies_label = |
586 l10n_util::GetStringUTF16(IDS_PAGE_INFO_TITLE_SITE_DATA), | 586 new views::Label(l10n_util::GetStringUTF16(IDS_PAGE_INFO_COOKIES), |
587 CONTEXT_BODY_TEXT_LARGE); | 587 CONTEXT_BODY_TEXT_LARGE); |
588 layout->AddView(cookies_label); | 588 layout->AddView(cookies_label); |
589 layout->StartRow(1, cookies_view_column); | 589 layout->StartRow(1, cookies_view_column); |
590 layout->SkipColumns(1); | 590 layout->SkipColumns(1); |
591 | 591 |
592 layout->AddView(cookie_dialog_link_); | 592 layout->AddView(cookie_dialog_link_); |
593 | 593 |
594 layout->AddPaddingRow(0, kCookiesViewVerticalPadding); | 594 layout->AddPaddingRow(0, kCookiesViewVerticalPadding); |
595 } | 595 } |
596 | 596 |
597 layout->Layout(cookies_view_); | 597 layout->Layout(cookies_view_); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 PageInfo::PAGE_INFO_CONNECTION_HELP_OPENED); | 747 PageInfo::PAGE_INFO_CONNECTION_HELP_OPENED); |
748 break; | 748 break; |
749 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: | 749 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: |
750 presenter_->OnRevokeSSLErrorBypassButtonPressed(); | 750 presenter_->OnRevokeSSLErrorBypassButtonPressed(); |
751 GetWidget()->Close(); | 751 GetWidget()->Close(); |
752 break; | 752 break; |
753 default: | 753 default: |
754 NOTREACHED(); | 754 NOTREACHED(); |
755 } | 755 } |
756 } | 756 } |
OLD | NEW |