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

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

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 GURL* url, 49 GURL* url,
50 base::string16* title); 50 base::string16* title);
51 51
52 // Toggles whether the bookmark bar is shown only on the new tab page or on 52 // Toggles whether the bookmark bar is shown only on the new tab page or on
53 // all tabs. This is a preference modifier, not a visual modifier. 53 // all tabs. This is a preference modifier, not a visual modifier.
54 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context); 54 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context);
55 55
56 // Returns a formatted version of |url| appropriate to display to a user with 56 // Returns a formatted version of |url| appropriate to display to a user with
57 // the given |prefs|, which may be NULL. When re-parsing this URL, clients 57 // the given |prefs|, which may be NULL. When re-parsing this URL, clients
58 // should call url_formatter::FixupURL(). 58 // should call url_formatter::FixupURL().
59 base::string16 FormatBookmarkURLForDisplay(const GURL& url, 59 base::string16 FormatBookmarkURLForDisplay(const GURL& url);
60 const PrefService* prefs);
61 60
62 // Returns whether the Apps shortcut is enabled. If true, then the visibility 61 // Returns whether the Apps shortcut is enabled. If true, then the visibility
63 // of the Apps shortcut should be controllable via an item in the bookmark 62 // of the Apps shortcut should be controllable via an item in the bookmark
64 // context menu. 63 // context menu.
65 bool IsAppsShortcutEnabled(Profile* profile); 64 bool IsAppsShortcutEnabled(Profile* profile);
66 65
67 // Returns true if the Apps shortcut should be displayed in the bookmark bar. 66 // Returns true if the Apps shortcut should be displayed in the bookmark bar.
68 bool ShouldShowAppsShortcutInBookmarkBar(Profile* profile); 67 bool ShouldShowAppsShortcutInBookmarkBar(Profile* profile);
69 68
70 // Whether the menu item and shortcut to bookmark a page should be removed from 69 // Whether the menu item and shortcut to bookmark a page should be removed from
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // color. 107 // color.
109 // TODO(estade): If Mac wants to use these, return gfx::Image instead. 108 // TODO(estade): If Mac wants to use these, return gfx::Image instead.
110 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color); 109 gfx::ImageSkia GetBookmarkFolderIcon(SkColor text_color);
111 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color); 110 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(SkColor text_color);
112 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color); 111 gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color);
113 #endif 112 #endif
114 113
115 } // namespace chrome 114 } // namespace chrome
116 115
117 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 116 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/usb_chooser_dialog_android.cc ('k') | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698