Chromium Code Reviews| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // of the Apps shortcut should be controllable via an item in the bookmark | 94 // of the Apps shortcut should be controllable via an item in the bookmark |
| 95 // context menu. | 95 // context menu. |
| 96 bool IsAppsShortcutEnabled(Profile* profile, | 96 bool IsAppsShortcutEnabled(Profile* profile, |
| 97 chrome::HostDesktopType host_desktop_type); | 97 chrome::HostDesktopType host_desktop_type); |
| 98 | 98 |
| 99 // Returns true if the Apps shortcut should be displayed in the bookmark bar. | 99 // Returns true if the Apps shortcut should be displayed in the bookmark bar. |
| 100 bool ShouldShowAppsShortcutInBookmarkBar( | 100 bool ShouldShowAppsShortcutInBookmarkBar( |
| 101 Profile* profile, | 101 Profile* profile, |
| 102 chrome::HostDesktopType host_desktop_type); | 102 chrome::HostDesktopType host_desktop_type); |
| 103 | 103 |
| 104 // Returns whether the bookmark page menu item should be shown. | |
|
erikchen
2014/02/12 21:29:33
wittman@ suggested this location for this function
| |
| 105 // If this function returns false, the corresponding accelerator should also | |
| 106 // be disabled. | |
| 107 bool ShouldShowBookmarkPageMenuItem(Profile* profile); | |
| 108 | |
| 104 } // namespace chrome | 109 } // namespace chrome |
| 105 | 110 |
| 106 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 111 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |