Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: chrome/browser/gtk/keyword_editor_view.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/keyword_editor_view.h" 5 #include "chrome/browser/gtk/keyword_editor_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" 12 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
13 #include "chrome/browser/gtk/edit_search_engine_dialog.h" 13 #include "chrome/browser/gtk/edit_search_engine_dialog.h"
14 #include "chrome/browser/gtk/gtk_tree.h" 14 #include "chrome/browser/gtk/gtk_tree.h"
15 #include "chrome/browser/gtk/gtk_util.h" 15 #include "chrome/browser/gtk/gtk_util.h"
16 #include "chrome/browser/metrics/user_metrics.h" 16 #include "chrome/browser/metrics/user_metrics.h"
17 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/search_engines/keyword_editor_controller.h" 18 #include "chrome/browser/search_engines/keyword_editor_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 "chrome/browser/search_engines/template_url_table_model.h" 21 #include "chrome/browser/search_engines/template_url_table_model.h"
22 #include "gfx/gtk_util.h" 22 #include "gfx/gtk_util.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"
25 #include "third_party/skia/include/core/SkBitmap.h" 25 #include "third_party/skia/include/core/SkBitmap.h"
26 26
27 namespace { 27 namespace {
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 int model_row = editor->GetSelectedModelRow(); 493 int model_row = editor->GetSelectedModelRow();
494 if (model_row == -1) { 494 if (model_row == -1) {
495 NOTREACHED(); 495 NOTREACHED();
496 return; 496 return;
497 } 497 }
498 int new_index = editor->controller_->MakeDefaultTemplateURL(model_row); 498 int new_index = editor->controller_->MakeDefaultTemplateURL(model_row);
499 if (new_index > 0) { 499 if (new_index > 0) {
500 editor->SelectModelRow(new_index); 500 editor->SelectModelRow(new_index);
501 } 501 }
502 } 502 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/instant_confirm_dialog_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698