OLD | NEW |
1 // Copyright (c) 2010 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/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 "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_util.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 "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 void SetDialogTitle(GtkWidget* dialog, const string16& title) { | 21 void SetDialogTitle(GtkWidget* dialog, const string16& title) { |
22 gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); | 22 gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); |
23 | 23 |
24 #if !defined(OS_CHROMEOS) | 24 #if !defined(OS_CHROMEOS) |
25 // The following code requires the dialog to be realized. However, we host | 25 // The following code requires the dialog to be realized. However, we host |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // do nothing. | 128 // do nothing. |
129 } else { | 129 } else { |
130 modifier = "unknown"; | 130 modifier = "unknown"; |
131 } | 131 } |
132 #endif | 132 #endif |
133 | 133 |
134 return modifier; | 134 return modifier; |
135 } | 135 } |
136 | 136 |
137 } // namespace platform_util | 137 } // namespace platform_util |
OLD | NEW |