| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 int type = -1; | 506 int type = -1; |
| 507 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1); | 507 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1); |
| 508 | 508 |
| 509 if (presenter_.get()) | 509 if (presenter_.get()) |
| 510 presenter_->OnSitePermissionChanged(ContentSettingsType(type), | 510 presenter_->OnSitePermissionChanged(ContentSettingsType(type), |
| 511 ContentSetting(value)); | 511 ContentSetting(value)); |
| 512 } | 512 } |
| 513 | 513 |
| 514 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { | 514 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { |
| 515 DCHECK_NE(cert_id_, 0); | 515 DCHECK_NE(cert_id_, 0); |
| 516 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_); | 516 ShowCertificateViewerByID( |
| 517 tab_contents_->web_contents(), GTK_WINDOW(parent_), cert_id_); |
| 517 bubble_->Close(); | 518 bubble_->Close(); |
| 518 } | 519 } |
| OLD | NEW |