| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 #include "ui/views/controls/label.h" | 83 #include "ui/views/controls/label.h" |
| 84 #include "ui/views/drag_utils.h" | 84 #include "ui/views/drag_utils.h" |
| 85 #include "ui/views/metrics.h" | 85 #include "ui/views/metrics.h" |
| 86 #include "ui/views/view_constants.h" | 86 #include "ui/views/view_constants.h" |
| 87 #include "ui/views/widget/tooltip_manager.h" | 87 #include "ui/views/widget/tooltip_manager.h" |
| 88 #include "ui/views/widget/widget.h" | 88 #include "ui/views/widget/widget.h" |
| 89 #include "ui/views/window/non_client_view.h" | 89 #include "ui/views/window/non_client_view.h" |
| 90 | 90 |
| 91 using base::UserMetricsAction; | 91 using base::UserMetricsAction; |
| 92 using bookmarks::BookmarkModel; | 92 using bookmarks::BookmarkModel; |
| 93 using bookmarks::BookmarkNode; |
| 93 using bookmarks::BookmarkNodeData; | 94 using bookmarks::BookmarkNodeData; |
| 94 using content::OpenURLParams; | 95 using content::OpenURLParams; |
| 95 using content::PageNavigator; | 96 using content::PageNavigator; |
| 96 using content::Referrer; | 97 using content::Referrer; |
| 97 using ui::DropTargetEvent; | 98 using ui::DropTargetEvent; |
| 98 using views::CustomButton; | 99 using views::CustomButton; |
| 99 using views::LabelButtonBorder; | 100 using views::LabelButtonBorder; |
| 100 using views::MenuButton; | 101 using views::MenuButton; |
| 101 using views::View; | 102 using views::View; |
| 102 | 103 |
| (...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1997 return; | 1998 return; |
| 1998 apps_page_shortcut_->SetVisible(visible); | 1999 apps_page_shortcut_->SetVisible(visible); |
| 1999 UpdateBookmarksSeparatorVisibility(); | 2000 UpdateBookmarksSeparatorVisibility(); |
| 2000 LayoutAndPaint(); | 2001 LayoutAndPaint(); |
| 2001 } | 2002 } |
| 2002 | 2003 |
| 2003 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { | 2004 void BookmarkBarView::OnShowManagedBookmarksPrefChanged() { |
| 2004 if (UpdateOtherAndManagedButtonsVisibility()) | 2005 if (UpdateOtherAndManagedButtonsVisibility()) |
| 2005 LayoutAndPaint(); | 2006 LayoutAndPaint(); |
| 2006 } | 2007 } |
| OLD | NEW |