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_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 "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/ui/gtk/gtk_util.h" | 11 #include "chrome/browser/ui/gtk/gtk_util.h" |
12 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" | 12 #include "chrome/browser/ui/gtk/options/content_exception_editor.h" |
13 #include "gfx/gtk_util.h" | |
14 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
15 #include "grit/locale_settings.h" | 14 #include "grit/locale_settings.h" |
16 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/gfx/gtk_util.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 |
24 | 24 |
25 // static | 25 // static |
26 void ContentExceptionsWindowGtk::ShowExceptionsWindow( | 26 void ContentExceptionsWindowGtk::ShowExceptionsWindow( |
(...skipping 300 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 |