OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/common/pref_service.h" | 21 #include "chrome/common/pref_service.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "grit/app_resources.h" | 23 #include "grit/app_resources.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 #include "grit/locale_settings.h" | 25 #include "grit/locale_settings.h" |
26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
28 #include "views/background.h" | 28 #include "views/background.h" |
29 #include "views/grid_layout.h" | 29 #include "views/grid_layout.h" |
30 #include "views/controls/button/native_button.h" | 30 #include "views/controls/button/native_button.h" |
31 #include "views/controls/text_field.h" | 31 #include "views/controls/textfield/textfield.h" |
32 #include "views/standard_layout.h" | 32 #include "views/standard_layout.h" |
33 #include "views/widget/widget.h" | 33 #include "views/widget/widget.h" |
34 #include "views/window/dialog_delegate.h" | 34 #include "views/window/dialog_delegate.h" |
35 #include "views/window/window.h" | 35 #include "views/window/window.h" |
36 | 36 |
37 using views::GridLayout; | 37 using views::GridLayout; |
38 using views::NativeButton; | 38 using views::NativeButton; |
39 using views::TableColumn; | 39 using views::TableColumn; |
40 | 40 |
41 // Group IDs used by TemplateURLTableModel. | 41 // Group IDs used by TemplateURLTableModel. |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 } | 644 } |
645 const int new_index = table_model_->IndexOfTemplateURL(keyword); | 645 const int new_index = table_model_->IndexOfTemplateURL(keyword); |
646 table_model_->NotifyChanged(new_index); | 646 table_model_->NotifyChanged(new_index); |
647 | 647 |
648 // Make sure the new default is in the main group. | 648 // Make sure the new default is in the main group. |
649 table_model_->MoveToMainGroup(index); | 649 table_model_->MoveToMainGroup(index); |
650 | 650 |
651 // And select it. | 651 // And select it. |
652 table_view_->Select(table_model_->IndexOfTemplateURL(keyword)); | 652 table_view_->Select(table_model_->IndexOfTemplateURL(keyword)); |
653 } | 653 } |
OLD | NEW |