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/edit_search_engine_dialog.h" | 5 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 controller_->AcceptAddOrEdit(GetTitleInput(), | 265 controller_->AcceptAddOrEdit(GetTitleInput(), |
266 GetKeywordInput(), | 266 GetKeywordInput(), |
267 GetURLInput()); | 267 GetURLInput()); |
268 } else { | 268 } else { |
269 controller_->CleanUpCancelledAdd(); | 269 controller_->CleanUpCancelledAdd(); |
270 } | 270 } |
271 gtk_widget_destroy(dialog_); | 271 gtk_widget_destroy(dialog_); |
272 } | 272 } |
273 | 273 |
274 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) { | 274 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) { |
275 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 275 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
276 } | 276 } |
OLD | NEW |