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/about_chrome_dialog.h" | 5 #include "chrome/browser/ui/gtk/about_chrome_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/google/google_util.h" | 13 #include "chrome/browser/google/google_util.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
16 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 17 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
17 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_version_info.h" | 19 #include "chrome/common/chrome_version_info.h" |
19 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "content/public/browser/page_navigator.h" |
20 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
22 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" |
23 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" |
24 #include "ui/base/gtk/gtk_hig_constants.h" | 26 #include "ui/base/gtk/gtk_hig_constants.h" |
25 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
27 #include "ui/gfx/image/cairo_cached_surface.h" | 29 #include "ui/gfx/image/cairo_cached_surface.h" |
28 #include "ui/gfx/image/image.h" | 30 #include "ui/gfx/image/image.h" |
29 #include "webkit/glue/webkit_glue.h" | 31 #include "webkit/glue/webkit_glue.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 ui::kContentAreaBorder, 0, | 278 ui::kContentAreaBorder, 0, |
277 ui::kContentAreaBorder, ui::kContentAreaBorder); | 279 ui::kContentAreaBorder, ui::kContentAreaBorder); |
278 gtk_container_add(GTK_CONTAINER(alignment), vbox); | 280 gtk_container_add(GTK_CONTAINER(alignment), vbox); |
279 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0); | 281 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0); |
280 | 282 |
281 g_signal_connect(dialog, "response", G_CALLBACK(OnResponse), NULL); | 283 g_signal_connect(dialog, "response", G_CALLBACK(OnResponse), NULL); |
282 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); | 284 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
283 gtk_widget_show_all(dialog); | 285 gtk_widget_show_all(dialog); |
284 gtk_widget_grab_focus(close_button); | 286 gtk_widget_grab_focus(close_button); |
285 } | 287 } |
OLD | NEW |