OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gfx/gtk_util.h" |
7 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
8 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
9 #include "base/gfx/gtk_util.h" | |
10 #include "chrome/browser/gtk/options/url_picker_dialog_gtk.h" | 10 #include "chrome/browser/gtk/options/url_picker_dialog_gtk.h" |
11 #include "chrome/browser/net/url_fixer_upper.h" | 11 #include "chrome/browser/net/url_fixer_upper.h" |
12 #include "chrome/browser/possible_url_model.h" | 12 #include "chrome/browser/possible_url_model.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
14 #include "chrome/common/gtk_tree.h" | 14 #include "chrome/common/gtk_tree.h" |
15 #include "chrome/common/gtk_util.h" | 15 #include "chrome/common/gtk_util.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 window->AddURL(); | 274 window->AddURL(); |
275 } | 275 } |
276 gtk_widget_destroy(window->dialog_); | 276 gtk_widget_destroy(window->dialog_); |
277 } | 277 } |
278 | 278 |
279 // static | 279 // static |
280 void UrlPickerDialogGtk::OnWindowDestroy(GtkWidget* widget, | 280 void UrlPickerDialogGtk::OnWindowDestroy(GtkWidget* widget, |
281 UrlPickerDialogGtk* window) { | 281 UrlPickerDialogGtk* window) { |
282 MessageLoop::current()->DeleteSoon(FROM_HERE, window); | 282 MessageLoop::current()->DeleteSoon(FROM_HERE, window); |
283 } | 283 } |
OLD | NEW |