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 <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
6 | 6 |
7 #include "app/gtk_util.h" | 7 #include "app/gtk_util.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" | 11 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
12 #include "chrome/browser/gtk/gtk_tree.h" | 12 #include "chrome/browser/gtk/gtk_tree.h" |
13 #include "chrome/browser/gtk/gtk_util.h" | 13 #include "chrome/browser/gtk/gtk_util.h" |
14 #include "chrome/browser/gtk/options/url_picker_dialog_gtk.h" | 14 #include "chrome/browser/gtk/options/url_picker_dialog_gtk.h" |
15 #include "chrome/browser/net/url_fixer_upper.h" | 15 #include "chrome/browser/net/url_fixer_upper.h" |
16 #include "chrome/browser/possible_url_model.h" | 16 #include "chrome/browser/possible_url_model.h" |
17 #include "chrome/browser/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "gfx/gtk_util.h" | 20 #include "gfx/gtk_util.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" |
25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
26 #include "third_party/skia/include/core/SkBitmap.h" | 26 #include "third_party/skia/include/core/SkBitmap.h" |
27 | 27 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 void UrlPickerDialogGtk::OnResponse(GtkWidget* dialog, int response_id) { | 270 void UrlPickerDialogGtk::OnResponse(GtkWidget* dialog, int response_id) { |
271 if (response_id == GTK_RESPONSE_OK) | 271 if (response_id == GTK_RESPONSE_OK) |
272 AddURL(); | 272 AddURL(); |
273 gtk_widget_destroy(dialog_); | 273 gtk_widget_destroy(dialog_); |
274 } | 274 } |
275 | 275 |
276 void UrlPickerDialogGtk::OnWindowDestroy(GtkWidget* widget) { | 276 void UrlPickerDialogGtk::OnWindowDestroy(GtkWidget* widget) { |
277 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 277 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
278 } | 278 } |
OLD | NEW |