| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/platform_util.h" | 5 #include "chrome/browser/platform_util.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "app/gtk_util.h" | 9 #include "app/gtk_util.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/common/process_watcher.h" | 15 #include "chrome/common/process_watcher.h" |
| 15 #include "chrome/browser/gtk/gtk_util.h" | 16 #include "chrome/browser/gtk/gtk_util.h" |
| 16 #include "gfx/native_widget_types.h" | 17 #include "gfx/native_widget_types.h" |
| 17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 void SetDialogTitle(GtkWidget* dialog, const string16& title) { | 22 void SetDialogTitle(GtkWidget* dialog, const string16& title) { |
| 22 gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); | 23 gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // do nothing. | 125 // do nothing. |
| 125 } else { | 126 } else { |
| 126 modifier = "unknown"; | 127 modifier = "unknown"; |
| 127 } | 128 } |
| 128 #endif | 129 #endif |
| 129 | 130 |
| 130 return ASCIIToUTF16(modifier); | 131 return ASCIIToUTF16(modifier); |
| 131 } | 132 } |
| 132 | 133 |
| 133 } // namespace platform_util | 134 } // namespace platform_util |
| OLD | NEW |