| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/content_setting_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/content_setting_bubble_gtk.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/blocked_content_container.h" | |
| 14 #include "chrome/browser/content_setting_bubble_model.h" | |
| 15 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 17 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 16 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 17 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
| 19 #include "chrome/browser/ui/gtk/gtk_util.h" | 18 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 20 #include "chrome/common/content_settings.h" | 19 #include "chrome/common/content_settings.h" |
| 21 #include "content/browser/tab_contents/tab_contents.h" | 20 #include "content/browser/tab_contents/tab_contents.h" |
| 22 #include "content/common/notification_source.h" | 21 #include "content/common/notification_source.h" |
| 23 #include "content/common/notification_type.h" | 22 #include "content/common/notification_type.h" |
| 24 #include "grit/app_resources.h" | 23 #include "grit/app_resources.h" |
| 25 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 305 |
| 307 void ContentSettingBubbleGtk::OnCustomLinkClicked(GtkWidget* button) { | 306 void ContentSettingBubbleGtk::OnCustomLinkClicked(GtkWidget* button) { |
| 308 content_setting_bubble_model_->OnCustomLinkClicked(); | 307 content_setting_bubble_model_->OnCustomLinkClicked(); |
| 309 Close(); | 308 Close(); |
| 310 } | 309 } |
| 311 | 310 |
| 312 void ContentSettingBubbleGtk::OnManageLinkClicked(GtkWidget* button) { | 311 void ContentSettingBubbleGtk::OnManageLinkClicked(GtkWidget* button) { |
| 313 content_setting_bubble_model_->OnManageLinkClicked(); | 312 content_setting_bubble_model_->OnManageLinkClicked(); |
| 314 Close(); | 313 Close(); |
| 315 } | 314 } |
| OLD | NEW |