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 #ifndef CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ |
6 #define CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ | 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "app/gtk_signal.h" | |
12 #include "chrome/browser/content_exceptions_table_model.h" | 11 #include "chrome/browser/content_exceptions_table_model.h" |
13 #include "chrome/browser/content_setting_combo_model.h" | 12 #include "chrome/browser/content_setting_combo_model.h" |
14 #include "chrome/common/content_settings.h" | 13 #include "chrome/common/content_settings.h" |
15 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
| 15 #include "ui/base/gtk/gtk_signal.h" |
16 | 16 |
17 // An editor which lets the user create or edit an individual exception to the | 17 // An editor which lets the user create or edit an individual exception to the |
18 // current content setting policy. (i.e. let www.google.com always show | 18 // current content setting policy. (i.e. let www.google.com always show |
19 // images). Modal to parent. | 19 // images). Modal to parent. |
20 class ContentExceptionEditor { | 20 class ContentExceptionEditor { |
21 public: | 21 public: |
22 class Delegate { | 22 class Delegate { |
23 public: | 23 public: |
24 // Invoked when the user accepts the edit. | 24 // Invoked when the user accepts the edit. |
25 virtual void AcceptExceptionEdit( | 25 virtual void AcceptExceptionEdit( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 GtkWidget* dialog_; | 72 GtkWidget* dialog_; |
73 GtkWidget* entry_; | 73 GtkWidget* entry_; |
74 GtkWidget* pattern_image_; | 74 GtkWidget* pattern_image_; |
75 GtkWidget* action_combo_; | 75 GtkWidget* action_combo_; |
76 GtkWidget* otr_checkbox_; | 76 GtkWidget* otr_checkbox_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ContentExceptionEditor); | 78 DISALLOW_COPY_AND_ASSIGN(ContentExceptionEditor); |
79 }; | 79 }; |
80 | 80 |
81 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ | 81 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_ |
OLD | NEW |