| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BOOKMARKS_BOOKMARK_UTILS_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 BookmarkNode* new_parent, | 156 BookmarkNode* new_parent, |
| 157 BookmarkNode* node, | 157 BookmarkNode* node, |
| 158 const std::wstring& new_title, | 158 const std::wstring& new_title, |
| 159 const GURL& new_url, | 159 const GURL& new_url, |
| 160 BookmarkEditor::Handler* handler); | 160 BookmarkEditor::Handler* handler); |
| 161 | 161 |
| 162 // Toggles whether the bookmark bar is shown only on the new tab page or on | 162 // Toggles whether the bookmark bar is shown only on the new tab page or on |
| 163 // all tabs. This is a preference modifier, not a visual modifier. | 163 // all tabs. This is a preference modifier, not a visual modifier. |
| 164 void ToggleWhenVisible(Profile* profile); | 164 void ToggleWhenVisible(Profile* profile); |
| 165 | 165 |
| 166 // Register local state prefs for bookmark bar view. |
| 167 void RegisterPrefs(PrefService* prefs); |
| 168 |
| 166 // Register user prefs for BookmarkBar, BookmarkView, ... | 169 // Register user prefs for BookmarkBar, BookmarkView, ... |
| 167 void RegisterUserPrefs(PrefService* prefs); | 170 void RegisterUserPrefs(PrefService* prefs); |
| 168 | 171 |
| 169 // Number of bookmarks we'll open before prompting the user to see if they | 172 // Number of bookmarks we'll open before prompting the user to see if they |
| 170 // really want to open all. | 173 // really want to open all. |
| 171 // | 174 // |
| 172 // NOTE: treat this as a const. It is not const as various tests change the | 175 // NOTE: treat this as a const. It is not const as various tests change the |
| 173 // value. | 176 // value. |
| 174 extern int num_urls_before_prompting; | 177 extern int num_urls_before_prompting; |
| 175 | 178 |
| 176 } // namespace bookmark_utils | 179 } // namespace bookmark_utils |
| 177 | 180 |
| 178 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 181 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |