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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "extensions/common/extension_set.h" | 65 #include "extensions/common/extension_set.h" |
66 #include "grit/theme_resources.h" | 66 #include "grit/theme_resources.h" |
67 #include "ui/accessibility/ax_view_state.h" | 67 #include "ui/accessibility/ax_view_state.h" |
68 #include "ui/base/dragdrop/drag_utils.h" | 68 #include "ui/base/dragdrop/drag_utils.h" |
69 #include "ui/base/dragdrop/os_exchange_data.h" | 69 #include "ui/base/dragdrop/os_exchange_data.h" |
70 #include "ui/base/l10n/l10n_util.h" | 70 #include "ui/base/l10n/l10n_util.h" |
71 #include "ui/base/page_transition_types.h" | 71 #include "ui/base/page_transition_types.h" |
72 #include "ui/base/resource/resource_bundle.h" | 72 #include "ui/base/resource/resource_bundle.h" |
73 #include "ui/base/theme_provider.h" | 73 #include "ui/base/theme_provider.h" |
74 #include "ui/base/window_open_disposition.h" | 74 #include "ui/base/window_open_disposition.h" |
75 #include "ui/compositor/paint_context.h" | |
76 #include "ui/compositor/paint_recorder.h" | 75 #include "ui/compositor/paint_recorder.h" |
77 #include "ui/gfx/animation/slide_animation.h" | 76 #include "ui/gfx/animation/slide_animation.h" |
78 #include "ui/gfx/canvas.h" | 77 #include "ui/gfx/canvas.h" |
79 #include "ui/gfx/text_constants.h" | 78 #include "ui/gfx/text_constants.h" |
80 #include "ui/gfx/text_elider.h" | 79 #include "ui/gfx/text_elider.h" |
81 #include "ui/resources/grit/ui_resources.h" | 80 #include "ui/resources/grit/ui_resources.h" |
82 #include "ui/views/button_drag_utils.h" | 81 #include "ui/views/button_drag_utils.h" |
83 #include "ui/views/controls/button/label_button.h" | 82 #include "ui/views/controls/button/label_button.h" |
84 #include "ui/views/controls/button/label_button_border.h" | 83 #include "ui/views/controls/button/label_button_border.h" |
85 #include "ui/views/controls/button/menu_button.h" | 84 #include "ui/views/controls/button/menu_button.h" |
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2073 return; | 2072 return; |
2074 apps_page_shortcut_->SetVisible(visible); | 2073 apps_page_shortcut_->SetVisible(visible); |
2075 UpdateBookmarksSeparatorVisibility(); | 2074 UpdateBookmarksSeparatorVisibility(); |
2076 LayoutAndPaint(); | 2075 LayoutAndPaint(); |
2077 } | 2076 } |
2078 | 2077 |
2079 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { | 2078 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { |
2080 if (UpdateOtherAndManagedButtonsVisibility()) | 2079 if (UpdateOtherAndManagedButtonsVisibility()) |
2081 LayoutAndPaint(); | 2080 LayoutAndPaint(); |
2082 } | 2081 } |
OLD | NEW |