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

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

Issue 1171333003: Move net::FormatUrl and friends outside of //net and into //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again now that CQ is fixed Created 5 years, 4 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 | « chrome/browser/ui/DEPS ('k') | 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void GetURLAndTitleToBookmark(content::WebContents* web_contents, 88 void GetURLAndTitleToBookmark(content::WebContents* web_contents,
89 GURL* url, 89 GURL* url,
90 base::string16* title); 90 base::string16* title);
91 91
92 // Toggles whether the bookmark bar is shown only on the new tab page or on 92 // Toggles whether the bookmark bar is shown only on the new tab page or on
93 // all tabs. This is a preference modifier, not a visual modifier. 93 // all tabs. This is a preference modifier, not a visual modifier.
94 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context); 94 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context);
95 95
96 // Returns a formatted version of |url| appropriate to display to a user with 96 // Returns a formatted version of |url| appropriate to display to a user with
97 // the given |prefs|, which may be NULL. When re-parsing this URL, clients 97 // the given |prefs|, which may be NULL. When re-parsing this URL, clients
98 // should call url_fixer::FixupURL(). 98 // should call url_formatter::FixupURL().
99 base::string16 FormatBookmarkURLForDisplay(const GURL& url, 99 base::string16 FormatBookmarkURLForDisplay(const GURL& url,
100 const PrefService* prefs); 100 const PrefService* prefs);
101 101
102 // Returns whether the Apps shortcut is enabled. If true, then the visibility 102 // Returns whether the Apps shortcut is enabled. If true, then the visibility
103 // of the Apps shortcut should be controllable via an item in the bookmark 103 // of the Apps shortcut should be controllable via an item in the bookmark
104 // context menu. 104 // context menu.
105 bool IsAppsShortcutEnabled(Profile* profile, 105 bool IsAppsShortcutEnabled(Profile* profile,
106 chrome::HostDesktopType host_desktop_type); 106 chrome::HostDesktopType host_desktop_type);
107 107
108 // Returns true if the Apps shortcut should be displayed in the bookmark bar. 108 // Returns true if the Apps shortcut should be displayed in the bookmark bar.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already 142 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already
143 // a child of |drop_parent| at |index|. 143 // a child of |drop_parent| at |index|.
144 bool IsValidBookmarkDropLocation(Profile* profile, 144 bool IsValidBookmarkDropLocation(Profile* profile,
145 const bookmarks::BookmarkNodeData& data, 145 const bookmarks::BookmarkNodeData& data,
146 const bookmarks::BookmarkNode* drop_parent, 146 const bookmarks::BookmarkNode* drop_parent,
147 int index); 147 int index);
148 148
149 } // namespace chrome 149 } // namespace chrome
150 150
151 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 151 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/DEPS ('k') | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698