Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(683)

Side by Side Diff: chrome/browser/ui/gtk/task_manager_gtk.cc

Issue 12712018: Fixing problem with incomplete browser windows showing up after task manager was used (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed again. Done. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/views/browser_dialogs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/views/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698