| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Returns a formatted version of |url| appropriate to display to a user with | 100 // Returns a formatted version of |url| appropriate to display to a user with |
| 101 // the given |prefs|, which may be NULL. When re-parsing this URL, clients | 101 // the given |prefs|, which may be NULL. When re-parsing this URL, clients |
| 102 // should call url_formatter::FixupURL(). | 102 // should call url_formatter::FixupURL(). |
| 103 base::string16 FormatBookmarkURLForDisplay(const GURL& url, | 103 base::string16 FormatBookmarkURLForDisplay(const GURL& url, |
| 104 const PrefService* prefs); | 104 const PrefService* prefs); |
| 105 | 105 |
| 106 // Returns whether the Apps shortcut is enabled. If true, then the visibility | 106 // Returns whether the Apps shortcut is enabled. If true, then the visibility |
| 107 // of the Apps shortcut should be controllable via an item in the bookmark | 107 // of the Apps shortcut should be controllable via an item in the bookmark |
| 108 // context menu. | 108 // context menu. |
| 109 bool IsAppsShortcutEnabled(Profile* profile, | 109 bool IsAppsShortcutEnabled(Profile* profile, |
| 110 chrome::HostDesktopType host_desktop_type); | 110 ui::HostDesktopType host_desktop_type); |
| 111 | 111 |
| 112 // Returns true if the Apps shortcut should be displayed in the bookmark bar. | 112 // Returns true if the Apps shortcut should be displayed in the bookmark bar. |
| 113 bool ShouldShowAppsShortcutInBookmarkBar( | 113 bool ShouldShowAppsShortcutInBookmarkBar(Profile* profile, |
| 114 Profile* profile, | 114 ui::HostDesktopType host_desktop_type); |
| 115 chrome::HostDesktopType host_desktop_type); | |
| 116 | 115 |
| 117 // Whether the menu item and shortcut to bookmark a page should be removed from | 116 // Whether the menu item and shortcut to bookmark a page should be removed from |
| 118 // the user interface. | 117 // the user interface. |
| 119 bool ShouldRemoveBookmarkThisPageUI(Profile* profile); | 118 bool ShouldRemoveBookmarkThisPageUI(Profile* profile); |
| 120 | 119 |
| 121 // Whether the menu item and shortcut to bookmark open pages should be removed | 120 // Whether the menu item and shortcut to bookmark open pages should be removed |
| 122 // from the user interface. | 121 // from the user interface. |
| 123 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile); | 122 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile); |
| 124 | 123 |
| 125 // Returns the drag operations for the specified node. | 124 // Returns the drag operations for the specified node. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 153 #if defined(TOOLKIT_VIEWS) | 152 #if defined(TOOLKIT_VIEWS) |
| 154 // TODO(estade): If Mac wants to use these, return gfx::Image instead. | 153 // TODO(estade): If Mac wants to use these, return gfx::Image instead. |
| 155 gfx::ImageSkia GetBookmarkFolderIcon(); | 154 gfx::ImageSkia GetBookmarkFolderIcon(); |
| 156 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(); | 155 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(); |
| 157 gfx::ImageSkia GetBookmarkManagedFolderIcon(); | 156 gfx::ImageSkia GetBookmarkManagedFolderIcon(); |
| 158 #endif | 157 #endif |
| 159 | 158 |
| 160 } // namespace chrome | 159 } // namespace chrome |
| 161 | 160 |
| 162 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 161 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |