| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/bookmark_editor_gtk.h" | 5 #include "chrome/browser/gtk/bookmark_editor_gtk.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" |
| 9 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 10 #include "base/gfx/gtk_util.h" | 11 #include "base/gfx/gtk_util.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 13 #include "chrome/browser/gtk/bookmark_tree_model.h" | 14 #include "chrome/browser/gtk/bookmark_tree_model.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_utils.h" | 15 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 15 #include "chrome/browser/history/history.h" | 16 #include "chrome/browser/history/history.h" |
| 16 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
| 17 #include "chrome/browser/net/url_fixer_upper.h" | 18 #include "chrome/browser/net/url_fixer_upper.h" |
| 18 #include "chrome/common/l10n_util.h" | |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
| 21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 22 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Background color of text field when URL is invalid. | 26 // Background color of text field when URL is invalid. |
| 27 const GdkColor kErrorColor = GDK_COLOR_RGB(0xFF, 0xBC, 0xBC); | 27 const GdkColor kErrorColor = GDK_COLOR_RGB(0xFF, 0xBC, 0xBC); |
| 28 | 28 |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 GtkTreeIter new_item_iter; | 388 GtkTreeIter new_item_iter; |
| 389 dialog->AddNewGroup(&iter, &new_item_iter); | 389 dialog->AddNewGroup(&iter, &new_item_iter); |
| 390 | 390 |
| 391 GtkTreePath* path = gtk_tree_model_get_path( | 391 GtkTreePath* path = gtk_tree_model_get_path( |
| 392 GTK_TREE_MODEL(dialog->tree_store_), &new_item_iter); | 392 GTK_TREE_MODEL(dialog->tree_store_), &new_item_iter); |
| 393 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(dialog->tree_view_), path); | 393 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(dialog->tree_view_), path); |
| 394 gtk_tree_selection_select_path(dialog->tree_selection_, path); | 394 gtk_tree_selection_select_path(dialog->tree_selection_, path); |
| 395 gtk_tree_path_free(path); | 395 gtk_tree_path_free(path); |
| 396 } | 396 } |
| OLD | NEW |