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 <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 views::GridLayout::USE_PREF, | 631 views::GridLayout::USE_PREF, |
632 0, | 632 0, |
633 0); | 633 0); |
634 for (PermissionInfoList::const_iterator permission = | 634 for (PermissionInfoList::const_iterator permission = |
635 permission_info_list.begin(); | 635 permission_info_list.begin(); |
636 permission != permission_info_list.end(); | 636 permission != permission_info_list.end(); |
637 ++permission) { | 637 ++permission) { |
638 layout->StartRow(1, content_column); | 638 layout->StartRow(1, content_column); |
639 PermissionSelectorView* selector = new PermissionSelectorView( | 639 PermissionSelectorView* selector = new PermissionSelectorView( |
640 web_contents_ ? web_contents_->GetURL() : GURL::EmptyGURL(), | 640 web_contents_ ? web_contents_->GetURL() : GURL::EmptyGURL(), |
641 *permission); | 641 *permission, web_contents_->GetBrowserContext()->IsOffTheRecord()); |
642 selector->AddObserver(this); | 642 selector->AddObserver(this); |
643 layout->AddView(selector, | 643 layout->AddView(selector, |
644 1, | 644 1, |
645 1, | 645 1, |
646 views::GridLayout::LEADING, | 646 views::GridLayout::LEADING, |
647 views::GridLayout::CENTER); | 647 views::GridLayout::CENTER); |
648 layout->AddPaddingRow(1, kPermissionsSectionRowSpacing); | 648 layout->AddPaddingRow(1, kPermissionsSectionRowSpacing); |
649 } | 649 } |
650 | 650 |
651 layout->Layout(permissions_content_); | 651 layout->Layout(permissions_content_); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 } | 925 } |
926 | 926 |
927 void WebsiteSettingsPopupView::StyledLabelLinkClicked(views::StyledLabel* label, | 927 void WebsiteSettingsPopupView::StyledLabelLinkClicked(views::StyledLabel* label, |
928 const gfx::Range& range, | 928 const gfx::Range& range, |
929 int event_flags) { | 929 int event_flags) { |
930 presenter_->RecordWebsiteSettingsAction( | 930 presenter_->RecordWebsiteSettingsAction( |
931 WebsiteSettings::WEBSITE_SETTINGS_SECURITY_DETAILS_OPENED); | 931 WebsiteSettings::WEBSITE_SETTINGS_SECURITY_DETAILS_OPENED); |
932 DevToolsWindow::OpenDevToolsWindow(web_contents_, | 932 DevToolsWindow::OpenDevToolsWindow(web_contents_, |
933 DevToolsToggleAction::ShowSecurityPanel()); | 933 DevToolsToggleAction::ShowSecurityPanel()); |
934 } | 934 } |
OLD | NEW |