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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 web_contents_->OpenURL(content::OpenURLParams( | 903 web_contents_->OpenURL(content::OpenURLParams( |
904 GURL(chrome::kChromeUIContentSettingsURL), content::Referrer(), | 904 GURL(chrome::kChromeUIContentSettingsURL), content::Referrer(), |
905 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false)); | 905 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false)); |
906 presenter_->RecordWebsiteSettingsAction( | 906 presenter_->RecordWebsiteSettingsAction( |
907 WebsiteSettings::WEBSITE_SETTINGS_SITE_SETTINGS_OPENED); | 907 WebsiteSettings::WEBSITE_SETTINGS_SITE_SETTINGS_OPENED); |
908 } else { | 908 } else { |
909 NOTREACHED(); | 909 NOTREACHED(); |
910 } | 910 } |
911 } | 911 } |
912 | 912 |
913 void WebsiteSettingsPopupView::StyledLabelLinkClicked(const gfx::Range& range, | 913 void WebsiteSettingsPopupView::StyledLabelLinkClicked(views::StyledLabel* label, |
| 914 const gfx::Range& range, |
914 int event_flags) { | 915 int event_flags) { |
915 presenter_->RecordWebsiteSettingsAction( | 916 presenter_->RecordWebsiteSettingsAction( |
916 WebsiteSettings::WEBSITE_SETTINGS_SECURITY_DETAILS_OPENED); | 917 WebsiteSettings::WEBSITE_SETTINGS_SECURITY_DETAILS_OPENED); |
917 DevToolsWindow::OpenDevToolsWindow(web_contents_, | 918 DevToolsWindow::OpenDevToolsWindow(web_contents_, |
918 DevToolsToggleAction::ShowSecurityPanel()); | 919 DevToolsToggleAction::ShowSecurityPanel()); |
919 } | 920 } |
OLD | NEW |