OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/task_manager_gtk.h" | 5 #include "chrome/browser/gtk/task_manager_gtk.h" |
6 | 6 |
7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "app/gfx/gtk_util.h" |
12 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
13 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
14 #include "base/gfx/gtk_util.h" | |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "chrome/browser/browser_list.h" | 16 #include "chrome/browser/browser_list.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/browser_window.h" | 18 #include "chrome/browser/browser_window.h" |
19 #include "chrome/browser/gtk/gtk_theme_provider.h" | 19 #include "chrome/browser/gtk/gtk_theme_provider.h" |
20 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 20 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
21 #include "chrome/browser/gtk/gtk_theme_provider.h" | 21 #include "chrome/browser/gtk/gtk_theme_provider.h" |
22 #include "chrome/browser/gtk/menu_gtk.h" | 22 #include "chrome/browser/gtk/menu_gtk.h" |
23 #include "chrome/common/gtk_tree.h" | 23 #include "chrome/common/gtk_tree.h" |
24 #include "chrome/common/gtk_util.h" | 24 #include "chrome/common/gtk_util.h" |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 TaskManagerGtk* task_manager) { | 820 TaskManagerGtk* task_manager) { |
821 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { | 821 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { |
822 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget | 822 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget |
823 // is destroyed. The deleted object will receive gtk signals otherwise. | 823 // is destroyed. The deleted object will receive gtk signals otherwise. |
824 gtk_dialog_response(GTK_DIALOG(task_manager->dialog_), | 824 gtk_dialog_response(GTK_DIALOG(task_manager->dialog_), |
825 GTK_RESPONSE_DELETE_EVENT); | 825 GTK_RESPONSE_DELETE_EVENT); |
826 } | 826 } |
827 | 827 |
828 return TRUE; | 828 return TRUE; |
829 } | 829 } |
OLD | NEW |