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/gtk/edit_search_engine_dialog.h" | 5 #include "chrome/browser/gtk/edit_search_engine_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" | 14 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
15 #include "chrome/browser/gtk/gtk_util.h" | 15 #include "chrome/browser/gtk/gtk_util.h" |
16 #include "chrome/browser/net/url_fixer_upper.h" | 16 #include "chrome/browser/net/url_fixer_upper.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/search_engines/edit_search_engine_controller.h" | 18 #include "chrome/browser/search_engines/edit_search_engine_controller.h" |
19 #include "chrome/browser/search_engines/template_url.h" | 19 #include "chrome/browser/search_engines/template_url.h" |
20 #include "chrome/browser/search_engines/template_url_model.h" | 20 #include "chrome/browser/search_engines/template_url_model.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "grit/app_resources.h" | 22 #include "grit/app_resources.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
(...skipping 254 matching lines...) Loading... |
282 GetURLInput()); | 282 GetURLInput()); |
283 } else { | 283 } else { |
284 controller_->CleanUpCancelledAdd(); | 284 controller_->CleanUpCancelledAdd(); |
285 } | 285 } |
286 gtk_widget_destroy(dialog_); | 286 gtk_widget_destroy(dialog_); |
287 } | 287 } |
288 | 288 |
289 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) { | 289 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) { |
290 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 290 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
291 } | 291 } |
OLD | NEW |