| 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/views/keyword_editor_view.h" | 5 #include "chrome/browser/views/keyword_editor_view.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/search_engines/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
| 16 #include "chrome/browser/search_engines/template_url_model.h" | 16 #include "chrome/browser/search_engines/template_url_model.h" |
| 17 #include "chrome/browser/search_engines/template_url_table_model.h" | 17 #include "chrome/browser/search_engines/template_url_table_model.h" |
| 18 #include "chrome/browser/views/browser_dialogs.h" | 18 #include "chrome/browser/views/browser_dialogs.h" |
| 19 #include "chrome/browser/views/first_run_search_engine_view.h" | 19 #include "chrome/browser/views/first_run_search_engine_view.h" |
| 20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 21 #include "gfx/point.h" | 21 #include "gfx/point.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.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" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 add_button_->SetEnabled(controller_->loaded()); | 297 add_button_->SetEnabled(controller_->loaded()); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void KeywordEditorView::MakeDefaultTemplateURL() { | 300 void KeywordEditorView::MakeDefaultTemplateURL() { |
| 301 int new_index = | 301 int new_index = |
| 302 controller_->MakeDefaultTemplateURL(table_view_->FirstSelectedRow()); | 302 controller_->MakeDefaultTemplateURL(table_view_->FirstSelectedRow()); |
| 303 if (new_index >= 0) | 303 if (new_index >= 0) |
| 304 table_view_->Select(new_index); | 304 table_view_->Select(new_index); |
| 305 default_chosen_ = true; | 305 default_chosen_ = true; |
| 306 } | 306 } |
| OLD | NEW |