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

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: Rebase Created 6 years, 10 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
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698