| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |