| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 bool IsAppsShortcutEnabled(Profile* profile, | 108 bool IsAppsShortcutEnabled(Profile* profile, |
| 109 chrome::HostDesktopType host_desktop_type); | 109 chrome::HostDesktopType host_desktop_type); |
| 110 | 110 |
| 111 // Returns true if the Apps shortcut should be displayed in the bookmark bar. | 111 // Returns true if the Apps shortcut should be displayed in the bookmark bar. |
| 112 bool ShouldShowAppsShortcutInBookmarkBar( | 112 bool ShouldShowAppsShortcutInBookmarkBar( |
| 113 Profile* profile, | 113 Profile* profile, |
| 114 chrome::HostDesktopType host_desktop_type); | 114 chrome::HostDesktopType host_desktop_type); |
| 115 | 115 |
| 116 // Indicates how the bookmark shortcut has been changed by |extension|, if at | 116 // Indicates how the bookmark shortcut has been changed by |extension|, if at |
| 117 // all. | 117 // all. |
| 118 BookmarkShortcutDisposition GetBookmarkShortcutDisposition( | 118 BookmarkShortcutDisposition GetBookmarkShortcutDisposition(Profile* profile); |
| 119 const extensions::CommandService* command_service, | 119 |
| 120 const extensions::Extension* extension); | 120 // Whether the menu item to bookmark a page should be shown. |
| 121 bool ShouldShowBookmarkPageMenuItem(Profile* profile); |
| 121 | 122 |
| 122 } // namespace chrome | 123 } // namespace chrome |
| 123 | 124 |
| 124 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 125 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |