| 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/bookmarks/bookmark_table_model.h" | 5 #include "chrome/browser/bookmarks/bookmark_table_model.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "base/time_format.h" | 11 #include "base/time_format.h" |
| 12 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_utils.h" | 13 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 14 #include "chrome/common/l10n_util.h" |
| 14 #include "chrome/common/resource_bundle.h" | 15 #include "chrome/common/resource_bundle.h" |
| 15 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 16 | 17 |
| 17 #include "generated_resources.h" | 18 #include "generated_resources.h" |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 // Number of bookmarks shown in recently bookmarked. | 22 // Number of bookmarks shown in recently bookmarked. |
| 22 const int kRecentlyBookmarkedCount = 50; | 23 const int kRecentlyBookmarkedCount = 50; |
| 23 | 24 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 BuildPath(node->GetParent(), path); | 360 BuildPath(node->GetParent(), path); |
| 360 path->append(l10n_util::GetString(IDS_BOOKMARK_TABLE_PATH_SEPARATOR)); | 361 path->append(l10n_util::GetString(IDS_BOOKMARK_TABLE_PATH_SEPARATOR)); |
| 361 // Force path to have LTR directionality. Otherwise, folder path "CBA/FED" | 362 // Force path to have LTR directionality. Otherwise, folder path "CBA/FED" |
| 362 // (in which, "CBA" and "FED" stand for folder names in Hebrew, and "FED" is | 363 // (in which, "CBA" and "FED" stand for folder names in Hebrew, and "FED" is |
| 363 // a subfolder of "CBA") will be displayed as "FED/CBA". | 364 // a subfolder of "CBA") will be displayed as "FED/CBA". |
| 364 if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) { | 365 if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) { |
| 365 path->append(l10n_util::kLeftToRightMark); | 366 path->append(l10n_util::kLeftToRightMark); |
| 366 } | 367 } |
| 367 path->append(node->GetTitle()); | 368 path->append(node->GetTitle()); |
| 368 } | 369 } |
| OLD | NEW |