| 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/bookmark_bar_view.h" | 5 #include "chrome/browser/views/bookmark_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
| 13 #include "app/os_exchange_data.h" | 13 #include "app/os_exchange_data.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "app/text_elider.h" | 15 #include "app/text_elider.h" |
| 16 #include "base/i18n/rtl.h" | 16 #include "base/i18n/rtl.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "chrome/browser/bookmarks/bookmark_model.h" | 18 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 19 #include "chrome/browser/bookmarks/bookmark_utils.h" | 19 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 20 #include "chrome/browser/browser.h" | 20 #include "chrome/browser/browser.h" |
| 21 #include "chrome/browser/browser_theme_provider.h" | 21 #include "chrome/browser/browser_theme_provider.h" |
| 22 #include "chrome/browser/importer/importer_data_types.h" | 22 #include "chrome/common/importer_data_types.h" |
| 23 #include "chrome/browser/metrics/user_metrics.h" | 23 #include "chrome/browser/metrics/user_metrics.h" |
| 24 #include "chrome/browser/pref_service.h" | 24 #include "chrome/browser/pref_service.h" |
| 25 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
| 26 #include "chrome/browser/renderer_host/render_view_host.h" | 26 #include "chrome/browser/renderer_host/render_view_host.h" |
| 27 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 27 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 28 #include "chrome/browser/sync/sync_ui_util.h" | 28 #include "chrome/browser/sync/sync_ui_util.h" |
| 29 #include "chrome/browser/tab_contents/page_navigator.h" | 29 #include "chrome/browser/tab_contents/page_navigator.h" |
| 30 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
| 31 #include "chrome/browser/view_ids.h" | 31 #include "chrome/browser/view_ids.h" |
| 32 #include "chrome/browser/views/bookmark_context_menu.h" | 32 #include "chrome/browser/views/bookmark_context_menu.h" |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 // The tooltip is the only way we have to display text explaining the error | 1721 // The tooltip is the only way we have to display text explaining the error |
| 1722 // to the user. | 1722 // to the user. |
| 1723 sync_error_button->SetTooltipText( | 1723 sync_error_button->SetTooltipText( |
| 1724 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); | 1724 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); |
| 1725 sync_error_button->SetAccessibleName( | 1725 sync_error_button->SetAccessibleName( |
| 1726 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); | 1726 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); |
| 1727 sync_error_button->SetIcon( | 1727 sync_error_button->SetIcon( |
| 1728 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); | 1728 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); |
| 1729 return sync_error_button; | 1729 return sync_error_button; |
| 1730 } | 1730 } |
| OLD | NEW |