| 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/gtk/options/content_exceptions_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/options/content_exceptions_window_gtk.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/gtk/gtk_util.h" | 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 13 #include "chrome/browser/gtk/options/content_exception_editor.h" | 13 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" |
| 14 #include "gfx/gtk_util.h" | 14 #include "gfx/gtk_util.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Singletons for each possible exception window. | 20 // Singletons for each possible exception window. |
| 21 ContentExceptionsWindowGtk* instances[CONTENT_SETTINGS_NUM_TYPES] = { NULL }; | 21 ContentExceptionsWindowGtk* instances[CONTENT_SETTINGS_NUM_TYPES] = { NULL }; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 void ContentExceptionsWindowGtk::OnWindowDestroy(GtkWidget* widget) { | 328 void ContentExceptionsWindowGtk::OnWindowDestroy(GtkWidget* widget) { |
| 329 instances[model_->content_type()] = NULL; | 329 instances[model_->content_type()] = NULL; |
| 330 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 330 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void ContentExceptionsWindowGtk::OnTreeSelectionChanged( | 333 void ContentExceptionsWindowGtk::OnTreeSelectionChanged( |
| 334 GtkWidget* selection) { | 334 GtkWidget* selection) { |
| 335 UpdateButtonState(); | 335 UpdateButtonState(); |
| 336 } | 336 } |
| OLD | NEW |