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

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

Issue 1697223002: Remove HostDesktopType from c/b/ui/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-21
Patch Set: #else and mac Created 4 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Returns a formatted version of |url| appropriate to display to a user with 57 // Returns a formatted version of |url| appropriate to display to a user with
58 // the given |prefs|, which may be NULL. When re-parsing this URL, clients 58 // the given |prefs|, which may be NULL. When re-parsing this URL, clients
59 // should call url_formatter::FixupURL(). 59 // should call url_formatter::FixupURL().
60 base::string16 FormatBookmarkURLForDisplay(const GURL& url, 60 base::string16 FormatBookmarkURLForDisplay(const GURL& url,
61 const PrefService* prefs); 61 const PrefService* prefs);
62 62
63 // Returns whether the Apps shortcut is enabled. If true, then the visibility 63 // Returns whether the Apps shortcut is enabled. If true, then the visibility
64 // of the Apps shortcut should be controllable via an item in the bookmark 64 // of the Apps shortcut should be controllable via an item in the bookmark
65 // context menu. 65 // context menu.
66 bool IsAppsShortcutEnabled(Profile* profile, 66 bool IsAppsShortcutEnabled(Profile* profile);
67 chrome::HostDesktopType host_desktop_type);
68 67
69 // Returns true if the Apps shortcut should be displayed in the bookmark bar. 68 // Returns true if the Apps shortcut should be displayed in the bookmark bar.
70 bool ShouldShowAppsShortcutInBookmarkBar( 69 bool ShouldShowAppsShortcutInBookmarkBar(Profile* profile);
71 Profile* profile,
72 chrome::HostDesktopType host_desktop_type);
73 70
74 // Whether the menu item and shortcut to bookmark a page should be removed from 71 // Whether the menu item and shortcut to bookmark a page should be removed from
75 // the user interface. 72 // the user interface.
76 bool ShouldRemoveBookmarkThisPageUI(Profile* profile); 73 bool ShouldRemoveBookmarkThisPageUI(Profile* profile);
77 74
78 // Whether the menu item and shortcut to bookmark open pages should be removed 75 // Whether the menu item and shortcut to bookmark open pages should be removed
79 // from the user interface. 76 // from the user interface.
80 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile); 77 bool ShouldRemoveBookmarkOpenPagesUI(Profile* profile);
81 78
82 // Returns the drag operations for the specified node. 79 // Returns the drag operations for the specified node.
(...skipping 29 matching lines...) Expand all
112 // color. 109 // color.
113 // TODO(estade): If Mac wants to use these, return gfx::Image instead. 110 // TODO(estade): If Mac wants to use these, return gfx::Image instead.
114 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color); 111 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color);
115 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color); 112 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color);
116 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color); 113 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color);
117 #endif 114 #endif
118 115
119 } // namespace chrome 116 } // namespace chrome
120 117
121 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 118 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698