OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/task_manager_gtk.h" | 5 #include "chrome/browser/ui/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 <set> | 10 #include <set> |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 guint keyval, | 958 guint keyval, |
959 GdkModifierType modifier) { | 959 GdkModifierType modifier) { |
960 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { | 960 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { |
961 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget | 961 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget |
962 // is destroyed. The deleted object will receive gtk signals otherwise. | 962 // is destroyed. The deleted object will receive gtk signals otherwise. |
963 gtk_dialog_response(GTK_DIALOG(dialog_), GTK_RESPONSE_DELETE_EVENT); | 963 gtk_dialog_response(GTK_DIALOG(dialog_), GTK_RESPONSE_DELETE_EVENT); |
964 } | 964 } |
965 | 965 |
966 return TRUE; | 966 return TRUE; |
967 } | 967 } |
| 968 |
| 969 namespace chrome { |
| 970 |
| 971 // Declared in browser_dialogs.h. |
| 972 void ShowTaskManager(Browser* browser, bool highlight_background_resources) { |
| 973 TaskManagerGtk::Show(highlight_background_resources); |
| 974 } |
| 975 |
| 976 } // namespace chrome |
OLD | NEW |