| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/bookmarks/bookmark_bar_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/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> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
| 24 #include "chrome/browser/sync/sync_ui_util.h" | 24 #include "chrome/browser/sync/sync_ui_util.h" |
| 25 #include "chrome/browser/themes/browser_theme_provider.h" | 25 #include "chrome/browser/themes/browser_theme_provider.h" |
| 26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
| 27 #include "chrome/browser/ui/view_ids.h" | 27 #include "chrome/browser/ui/view_ids.h" |
| 28 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h" | 28 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h" |
| 29 #include "chrome/browser/ui/views/event_utils.h" | 29 #include "chrome/browser/ui/views/event_utils.h" |
| 30 #include "chrome/browser/ui/views/frame/browser_view.h" | 30 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 31 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 31 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 32 #include "chrome/common/extensions/extension_constants.h" | 32 #include "chrome/common/extensions/extension_constants.h" |
| 33 #include "chrome/common/page_transition_types.h" | |
| 34 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
| 35 #include "content/browser/renderer_host/render_view_host.h" | 34 #include "content/browser/renderer_host/render_view_host.h" |
| 36 #include "content/browser/renderer_host/render_widget_host_view.h" | 35 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 37 #include "content/browser/tab_contents/page_navigator.h" | 36 #include "content/browser/tab_contents/page_navigator.h" |
| 38 #include "content/browser/tab_contents/tab_contents.h" | 37 #include "content/browser/tab_contents/tab_contents.h" |
| 39 #include "content/common/notification_service.h" | 38 #include "content/common/notification_service.h" |
| 39 #include "content/common/page_transition_types.h" |
| 40 #include "grit/app_resources.h" | 40 #include "grit/app_resources.h" |
| 41 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
| 42 #include "grit/theme_resources.h" | 42 #include "grit/theme_resources.h" |
| 43 #include "ui/base/accessibility/accessible_view_state.h" | 43 #include "ui/base/accessibility/accessible_view_state.h" |
| 44 #include "ui/base/animation/slide_animation.h" | 44 #include "ui/base/animation/slide_animation.h" |
| 45 #include "ui/base/dragdrop/os_exchange_data.h" | 45 #include "ui/base/dragdrop/os_exchange_data.h" |
| 46 #include "ui/base/l10n/l10n_util.h" | 46 #include "ui/base/l10n/l10n_util.h" |
| 47 #include "ui/base/resource/resource_bundle.h" | 47 #include "ui/base/resource/resource_bundle.h" |
| 48 #include "ui/base/text/text_elider.h" | 48 #include "ui/base/text/text_elider.h" |
| 49 #include "ui/gfx/canvas_skia.h" | 49 #include "ui/gfx/canvas_skia.h" |
| (...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1747 // The tooltip is the only way we have to display text explaining the error | 1747 // The tooltip is the only way we have to display text explaining the error |
| 1748 // to the user. | 1748 // to the user. |
| 1749 sync_error_button->SetTooltipText( | 1749 sync_error_button->SetTooltipText( |
| 1750 UTF16ToWide(l10n_util::GetStringUTF16(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC))); | 1750 UTF16ToWide(l10n_util::GetStringUTF16(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC))); |
| 1751 sync_error_button->SetAccessibleName( | 1751 sync_error_button->SetAccessibleName( |
| 1752 l10n_util::GetStringUTF16(IDS_ACCNAME_SYNC_ERROR_BUTTON)); | 1752 l10n_util::GetStringUTF16(IDS_ACCNAME_SYNC_ERROR_BUTTON)); |
| 1753 sync_error_button->SetIcon( | 1753 sync_error_button->SetIcon( |
| 1754 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); | 1754 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); |
| 1755 return sync_error_button; | 1755 return sync_error_button; |
| 1756 } | 1756 } |
| OLD | NEW |