Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_utils.h

Issue 161293002: mac: Allows extensions to hide the bookmark page menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure changes only apply to OSX. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698