| 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/gtk/website_settings_popup_gtk.h" | 5 #include "chrome/browser/ui/gtk/website_settings_popup_gtk.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/certificate_viewer.h" | 10 #include "chrome/browser/certificate_viewer.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 BubbleGtk::GRAB_INPUT, | 87 BubbleGtk::GRAB_INPUT, |
| 88 theme_service_, | 88 theme_service_, |
| 89 this); // |delegate| | 89 this); // |delegate| |
| 90 if (!bubble_) { | 90 if (!bubble_) { |
| 91 NOTREACHED(); | 91 NOTREACHED(); |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 | 94 |
| 95 presenter_.reset(new WebsiteSettings(this, profile, | 95 presenter_.reset(new WebsiteSettings(this, profile, |
| 96 tab_contents->content_settings(), | 96 tab_contents->content_settings(), |
| 97 tab_contents->infobar_tab_helper(), |
| 97 url, ssl, | 98 url, ssl, |
| 98 content::CertStore::GetInstance())); | 99 content::CertStore::GetInstance())); |
| 99 } | 100 } |
| 100 | 101 |
| 101 WebsiteSettingsPopupGtk::~WebsiteSettingsPopupGtk() { | 102 WebsiteSettingsPopupGtk::~WebsiteSettingsPopupGtk() { |
| 102 } | 103 } |
| 103 | 104 |
| 104 void WebsiteSettingsPopupGtk::BubbleClosing(BubbleGtk* bubble, | 105 void WebsiteSettingsPopupGtk::BubbleClosing(BubbleGtk* bubble, |
| 105 bool closed_by_escape) { | 106 bool closed_by_escape) { |
| 106 if (presenter_.get()) | 107 if (presenter_.get()) |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 presenter_->OnSitePermissionChanged(ContentSettingsType(type), | 509 presenter_->OnSitePermissionChanged(ContentSettingsType(type), |
| 509 ContentSetting(value)); | 510 ContentSetting(value)); |
| 510 } | 511 } |
| 511 | 512 |
| 512 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { | 513 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { |
| 513 DCHECK_NE(cert_id_, 0); | 514 DCHECK_NE(cert_id_, 0); |
| 514 ShowCertificateViewerByID( | 515 ShowCertificateViewerByID( |
| 515 tab_contents_->web_contents(), GTK_WINDOW(parent_), cert_id_); | 516 tab_contents_->web_contents(), GTK_WINDOW(parent_), cert_id_); |
| 516 bubble_->Close(); | 517 bubble_->Close(); |
| 517 } | 518 } |
| OLD | NEW |