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 "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/certificate_viewer.h" | 9 #include "chrome/browser/certificate_viewer.h" |
10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 // destruction of the settings view and the base class window still | 744 // destruction of the settings view and the base class window still |
745 // needs to be alive to finish handling the mouse click. | 745 // needs to be alive to finish handling the mouse click. |
746 void WebsiteSettingsPopupView::HandleLinkClickedAsync(views::Link* source) { | 746 void WebsiteSettingsPopupView::HandleLinkClickedAsync(views::Link* source) { |
747 if (source == cookie_dialog_link_) { | 747 if (source == cookie_dialog_link_) { |
748 // Count how often the Collected Cookies dialog is opened. | 748 // Count how often the Collected Cookies dialog is opened. |
749 content::RecordAction( | 749 content::RecordAction( |
750 content::UserMetricsAction("WebsiteSettings_CookiesDialogOpened")); | 750 content::UserMetricsAction("WebsiteSettings_CookiesDialogOpened")); |
751 new CollectedCookiesViews(web_contents_); | 751 new CollectedCookiesViews(web_contents_); |
752 } else if (source == certificate_dialog_link_) { | 752 } else if (source == certificate_dialog_link_) { |
753 gfx::NativeWindow parent = | 753 gfx::NativeWindow parent = |
754 anchor_view() ? anchor_view()->GetWidget()->GetNativeWindow() : NULL; | 754 GetAnchorView() ? GetAnchorView()->GetWidget()->GetNativeWindow() : |
| 755 NULL; |
755 ShowCertificateViewerByID(web_contents_, parent, cert_id_); | 756 ShowCertificateViewerByID(web_contents_, parent, cert_id_); |
756 } else if (source == help_center_link_) { | 757 } else if (source == help_center_link_) { |
757 browser_->OpenURL(content::OpenURLParams( | 758 browser_->OpenURL(content::OpenURLParams( |
758 GURL(chrome::kPageInfoHelpCenterURL), | 759 GURL(chrome::kPageInfoHelpCenterURL), |
759 content::Referrer(), | 760 content::Referrer(), |
760 NEW_FOREGROUND_TAB, | 761 NEW_FOREGROUND_TAB, |
761 content::PAGE_TRANSITION_LINK, | 762 content::PAGE_TRANSITION_LINK, |
762 false)); | 763 false)); |
763 } | 764 } |
764 } | 765 } |
OLD | NEW |