| 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_EXCEPTIONS_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTIONS_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTIONS_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTIONS_WINDOW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "app/gtk_signal.h" | |
| 14 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 15 #include "chrome/browser/content_exceptions_table_model.h" | 14 #include "chrome/browser/content_exceptions_table_model.h" |
| 16 #include "chrome/browser/ui/gtk/gtk_tree.h" | 15 #include "chrome/browser/ui/gtk/gtk_tree.h" |
| 17 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" | 16 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" |
| 18 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
| 19 #include "chrome/common/content_settings_types.h" | 18 #include "chrome/common/content_settings_types.h" |
| 19 #include "ui/base/gtk/gtk_signal.h" |
| 20 | 20 |
| 21 class HostContentSettingsMap; | 21 class HostContentSettingsMap; |
| 22 | 22 |
| 23 // Dialog that lists each of the exceptions to the current content policy, and | 23 // Dialog that lists each of the exceptions to the current content policy, and |
| 24 // has options for adding/editing/removing entries. Modal to parrent. | 24 // has options for adding/editing/removing entries. Modal to parrent. |
| 25 class ContentExceptionsWindowGtk : public gtk_tree::TableAdapter::Delegate, | 25 class ContentExceptionsWindowGtk : public gtk_tree::TableAdapter::Delegate, |
| 26 public ContentExceptionEditor::Delegate { | 26 public ContentExceptionEditor::Delegate { |
| 27 public: | 27 public: |
| 28 static void ShowExceptionsWindow(GtkWindow* window, | 28 static void ShowExceptionsWindow(GtkWindow* window, |
| 29 HostContentSettingsMap* map, | 29 HostContentSettingsMap* map, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Buttons. | 112 // Buttons. |
| 113 GtkWidget* edit_button_; | 113 GtkWidget* edit_button_; |
| 114 GtkWidget* remove_button_; | 114 GtkWidget* remove_button_; |
| 115 GtkWidget* remove_all_button_; | 115 GtkWidget* remove_all_button_; |
| 116 | 116 |
| 117 friend class ContentExceptionsWindowGtkUnittest; | 117 friend class ContentExceptionsWindowGtkUnittest; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTIONS_WINDOW_GTK_H_ | 120 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_CONTENT_EXCEPTIONS_WINDOW_GTK_H_ |
| OLD | NEW |