OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <limits> | 10 #include <limits> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "components/browser_sync/profile_sync_service.h" | 61 #include "components/browser_sync/profile_sync_service.h" |
62 #include "components/metrics/metrics_service.h" | 62 #include "components/metrics/metrics_service.h" |
63 #include "components/omnibox/browser/omnibox_popup_model.h" | 63 #include "components/omnibox/browser/omnibox_popup_model.h" |
64 #include "components/omnibox/browser/omnibox_view.h" | 64 #include "components/omnibox/browser/omnibox_view.h" |
65 #include "components/prefs/pref_service.h" | 65 #include "components/prefs/pref_service.h" |
66 #include "components/url_formatter/elide_url.h" | 66 #include "components/url_formatter/elide_url.h" |
67 #include "extensions/browser/extension_registry.h" | 67 #include "extensions/browser/extension_registry.h" |
68 #include "extensions/common/extension.h" | 68 #include "extensions/common/extension.h" |
69 #include "extensions/common/extension_set.h" | 69 #include "extensions/common/extension_set.h" |
70 #include "ui/accessibility/ax_node_data.h" | 70 #include "ui/accessibility/ax_node_data.h" |
71 #include "ui/base/dragdrop/drag_utils.h" | |
72 #include "ui/base/dragdrop/os_exchange_data.h" | 71 #include "ui/base/dragdrop/os_exchange_data.h" |
73 #include "ui/base/l10n/l10n_util.h" | 72 #include "ui/base/l10n/l10n_util.h" |
74 #include "ui/base/page_transition_types.h" | 73 #include "ui/base/page_transition_types.h" |
75 #include "ui/base/resource/resource_bundle.h" | 74 #include "ui/base/resource/resource_bundle.h" |
76 #include "ui/base/theme_provider.h" | 75 #include "ui/base/theme_provider.h" |
77 #include "ui/base/window_open_disposition.h" | 76 #include "ui/base/window_open_disposition.h" |
78 #include "ui/compositor/paint_recorder.h" | 77 #include "ui/compositor/paint_recorder.h" |
79 #include "ui/gfx/animation/slide_animation.h" | 78 #include "ui/gfx/animation/slide_animation.h" |
80 #include "ui/gfx/canvas.h" | 79 #include "ui/gfx/canvas.h" |
81 #include "ui/gfx/color_utils.h" | 80 #include "ui/gfx/color_utils.h" |
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2151 return; | 2150 return; |
2152 apps_page_shortcut_->SetVisible(visible); | 2151 apps_page_shortcut_->SetVisible(visible); |
2153 UpdateBookmarksSeparatorVisibility(); | 2152 UpdateBookmarksSeparatorVisibility(); |
2154 LayoutAndPaint(); | 2153 LayoutAndPaint(); |
2155 } | 2154 } |
2156 | 2155 |
2157 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { | 2156 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { |
2158 if (UpdateOtherAndManagedButtonsVisibility()) | 2157 if (UpdateOtherAndManagedButtonsVisibility()) |
2159 LayoutAndPaint(); | 2158 LayoutAndPaint(); |
2160 } | 2159 } |
OLD | NEW |