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 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // Returns a formatted version of |url| appropriate to display to a user with | 57 // Returns a formatted version of |url| appropriate to display to a user with |
58 // the given |prefs|, which may be NULL. When re-parsing this URL, clients | 58 // the given |prefs|, which may be NULL. When re-parsing this URL, clients |
59 // should call url_formatter::FixupURL(). | 59 // should call url_formatter::FixupURL(). |
60 base::string16 FormatBookmarkURLForDisplay(const GURL& url, | 60 base::string16 FormatBookmarkURLForDisplay(const GURL& url, |
61 const PrefService* prefs); | 61 const PrefService* prefs); |
62 | 62 |
63 // Returns whether the Apps shortcut is enabled. If true, then the visibility | 63 // Returns whether the Apps shortcut is enabled. If true, then the visibility |
64 // of the Apps shortcut should be controllable via an item in the bookmark | 64 // of the Apps shortcut should be controllable via an item in the bookmark |
65 // context menu. | 65 // context menu. |
66 bool IsAppsShortcutEnabled(Profile* profile, | 66 bool IsAppsShortcutEnabled(Profile* profile); |
67 chrome::HostDesktopType host_desktop_type); | |
68 | 67 |
69 // Returns true if the Apps shortcut should be displayed in the bookmark bar. | 68 // Returns true if the Apps shortcut should be displayed in the bookmark bar. |
70 bool ShouldShowAppsShortcutInBookmarkBar( | 69 bool ShouldShowAppsShortcutInBookmarkBar(Profile* profile); |
71 Profile* profile, | |
72 chrome::HostDesktopType host_desktop_type); | |
73 | 70 |
74 // Whether the menu item and shortcut to bookmark a page should be removed from | 71 // Whether the menu item and shortcut to bookmark a page should be removed from |
75 // the user interface. | 72 // the user interface. |
76 bool ShouldRemoveBookmarkThisPageUI(Profile* profile); | 73 bool ShouldRemoveBookmarkThisPageUI(Profile* profile); |
77 | 74 |
78 // Whether the menu item and shortcut to bookmark open pages should be removed | 75 // Whether the menu item and shortcut to bookmark open pages should be removed |
79 // from the user interface. | 76 // from the user interface. |
80 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile); | 77 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile); |
81 | 78 |
82 // Returns the drag operations for the specified node. | 79 // Returns the drag operations for the specified node. |
(...skipping 29 matching lines...) Expand all Loading... |
112 // color. | 109 // color. |
113 // TODO(estade): If Mac wants to use these, return gfx::Image instead. | 110 // TODO(estade): If Mac wants to use these, return gfx::Image instead. |
114 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color); | 111 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color); |
115 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color); | 112 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color); |
116 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color); | 113 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color); |
117 #endif | 114 #endif |
118 | 115 |
119 } // namespace chrome | 116 } // namespace chrome |
120 | 117 |
121 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 118 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
OLD | NEW |