| 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_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_OPTIONS_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_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 "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 13 #include "chrome/browser/remove_rows_table_model.h" | 12 #include "chrome/browser/remove_rows_table_model.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_tree.h" | 13 #include "chrome/browser/ui/gtk/gtk_tree.h" |
| 15 #include "chrome/common/content_settings.h" | 14 #include "chrome/common/content_settings.h" |
| 16 #include "chrome/common/content_settings_types.h" | 15 #include "chrome/common/content_settings_types.h" |
| 16 #include "ui/base/gtk/gtk_signal.h" |
| 17 | 17 |
| 18 class SimpleContentExceptionsWindow | 18 class SimpleContentExceptionsWindow |
| 19 : public gtk_tree::TableAdapter::Delegate { | 19 : public gtk_tree::TableAdapter::Delegate { |
| 20 public: | 20 public: |
| 21 // Takes ownership of |model|. | 21 // Takes ownership of |model|. |
| 22 static void ShowExceptionsWindow(GtkWindow* parent, | 22 static void ShowExceptionsWindow(GtkWindow* parent, |
| 23 RemoveRowsTableModel* model, | 23 RemoveRowsTableModel* model, |
| 24 int tile_message_id); | 24 int tile_message_id); |
| 25 | 25 |
| 26 virtual ~SimpleContentExceptionsWindow(); | 26 virtual ~SimpleContentExceptionsWindow(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Whether to ignore selection changes. This is set during model updates, | 71 // Whether to ignore selection changes. This is set during model updates, |
| 72 // when the list store may be inconsistent with the table model. | 72 // when the list store may be inconsistent with the table model. |
| 73 bool ignore_selection_changes_; | 73 bool ignore_selection_changes_; |
| 74 | 74 |
| 75 // Buttons. | 75 // Buttons. |
| 76 GtkWidget* remove_button_; | 76 GtkWidget* remove_button_; |
| 77 GtkWidget* remove_all_button_; | 77 GtkWidget* remove_all_button_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_H_ | 80 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_SIMPLE_CONTENT_EXCEPTIONS_WINDOW_H_ |
| OLD | NEW |