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/simple_content_exceptions_window.h" | 5 #include "chrome/browser/ui/gtk/options/simple_content_exceptions_window.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/ui/gtk/gtk_util.h" | 9 #include "chrome/browser/ui/gtk/gtk_util.h" |
10 #include "gfx/gtk_util.h" | |
11 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
12 #include "grit/locale_settings.h" | 11 #include "grit/locale_settings.h" |
13 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/gfx/gtk_util.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // Singleton for exception window. | 17 // Singleton for exception window. |
18 SimpleContentExceptionsWindow* instance = NULL; | 18 SimpleContentExceptionsWindow* instance = NULL; |
19 | 19 |
20 enum { | 20 enum { |
21 COL_ACTION = gtk_tree::TableAdapter::COL_LAST_ID, | 21 COL_ACTION = gtk_tree::TableAdapter::COL_LAST_ID, |
22 COL_COUNT | 22 COL_COUNT |
23 }; | 23 }; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void SimpleContentExceptionsWindow::OnWindowDestroy(GtkWidget* widget) { | 203 void SimpleContentExceptionsWindow::OnWindowDestroy(GtkWidget* widget) { |
204 instance = NULL; | 204 instance = NULL; |
205 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 205 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
206 } | 206 } |
207 | 207 |
208 void SimpleContentExceptionsWindow::OnTreeSelectionChanged( | 208 void SimpleContentExceptionsWindow::OnTreeSelectionChanged( |
209 GtkWidget* selection) { | 209 GtkWidget* selection) { |
210 if (!ignore_selection_changes_) | 210 if (!ignore_selection_changes_) |
211 UpdateButtonState(); | 211 UpdateButtonState(); |
212 } | 212 } |
OLD | NEW |