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/options/content_exception_editor.h" | 5 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/content_exceptions_table_model.h" | 10 #include "chrome/browser/content_exceptions_table_model.h" |
12 #include "chrome/browser/content_settings/host_content_settings_map.h" | 11 #include "chrome/browser/content_settings/host_content_settings_map.h" |
13 #include "chrome/browser/ui/gtk/gtk_util.h" | 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
14 #include "grit/app_resources.h" | 13 #include "grit/app_resources.h" |
15 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
16 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
| 16 #include "ui/base/resource/resource_bundle.h" |
17 | 17 |
18 ContentExceptionEditor::ContentExceptionEditor( | 18 ContentExceptionEditor::ContentExceptionEditor( |
19 GtkWindow* parent, | 19 GtkWindow* parent, |
20 ContentExceptionEditor::Delegate* delegate, | 20 ContentExceptionEditor::Delegate* delegate, |
21 ContentExceptionsTableModel* model, | 21 ContentExceptionsTableModel* model, |
22 bool allow_off_the_record, | 22 bool allow_off_the_record, |
23 int index, | 23 int index, |
24 const ContentSettingsPattern& pattern, | 24 const ContentSettingsPattern& pattern, |
25 ContentSetting setting, | 25 ContentSetting setting, |
26 bool is_off_the_record) | 26 bool is_off_the_record) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 delegate_->AcceptExceptionEdit( | 127 delegate_->AcceptExceptionEdit( |
128 new_pattern, setting, is_off_the_record, index_, is_new()); | 128 new_pattern, setting, is_off_the_record, index_, is_new()); |
129 } | 129 } |
130 | 130 |
131 gtk_widget_destroy(dialog_); | 131 gtk_widget_destroy(dialog_); |
132 } | 132 } |
133 | 133 |
134 void ContentExceptionEditor::OnWindowDestroy(GtkWidget* widget) { | 134 void ContentExceptionEditor::OnWindowDestroy(GtkWidget* widget) { |
135 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 135 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
136 } | 136 } |
OLD | NEW |