Chromium Code Reviews| 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_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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 // Removes all bookmarks for the given |url|. | 224 // Removes all bookmarks for the given |url|. |
| 225 void RemoveAllBookmarks(BookmarkModel* model, const GURL& url); | 225 void RemoveAllBookmarks(BookmarkModel* model, const GURL& url); |
| 226 | 226 |
| 227 // Number of bookmarks we'll open before prompting the user to see if they | 227 // Number of bookmarks we'll open before prompting the user to see if they |
| 228 // really want to open all. | 228 // really want to open all. |
| 229 // | 229 // |
| 230 // NOTE: treat this as a const. It is not const as various tests change the | 230 // NOTE: treat this as a const. It is not const as various tests change the |
| 231 // value. | 231 // value. |
| 232 extern int num_urls_before_prompting; | 232 extern int num_urls_before_prompting; |
| 233 | 233 |
| 234 // This enum is used for the Bookmarks.EntryPoint histogram. | |
| 235 enum BoomarkEntryPoint { | |
| 236 ENTRY_POINT_NONE, | |
|
sky
2012/09/11 15:49:52
This is never used, can it be removed?
| |
| 237 ENTRY_POINT_ACCELERATOR = 0, | |
| 238 ENTRY_POINT_STAR_GESTURE, | |
| 239 ENTRY_POINT_STAR_KEY, | |
| 240 ENTRY_POINT_STAR_MOUSE, | |
| 241 | |
| 242 ENTRY_POINT_LIMIT // Keep this last. | |
| 243 }; | |
| 244 | |
| 234 // This enum is used for the Bookmarks.LaunchLocation histogram. | 245 // This enum is used for the Bookmarks.LaunchLocation histogram. |
| 235 enum BookmarkLaunchLocation { | 246 enum BookmarkLaunchLocation { |
| 236 LAUNCH_NONE, | 247 LAUNCH_NONE, |
| 237 LAUNCH_ATTACHED_BAR = 0, | 248 LAUNCH_ATTACHED_BAR = 0, |
| 238 LAUNCH_DETACHED_BAR, | 249 LAUNCH_DETACHED_BAR, |
| 239 // These two are kind of sub-categories of the bookmark bar. Generally | 250 // These two are kind of sub-categories of the bookmark bar. Generally |
| 240 // a launch from a context menu or subfolder could be classified in one of | 251 // a launch from a context menu or subfolder could be classified in one of |
| 241 // the other two bar buckets, but doing so is difficult because the menus | 252 // the other two bar buckets, but doing so is difficult because the menus |
| 242 // don't know of their greater place in Chrome. | 253 // don't know of their greater place in Chrome. |
| 243 LAUNCH_BAR_SUBFOLDER, | 254 LAUNCH_BAR_SUBFOLDER, |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 257 void RecordBookmarkLaunch(BookmarkLaunchLocation location); | 268 void RecordBookmarkLaunch(BookmarkLaunchLocation location); |
| 258 | 269 |
| 259 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) | 270 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) |
| 260 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); | 271 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); |
| 261 bool IsBookmarkBarViewAnimationsDisabled(); | 272 bool IsBookmarkBarViewAnimationsDisabled(); |
| 262 #endif | 273 #endif |
| 263 | 274 |
| 264 } // namespace bookmark_utils | 275 } // namespace bookmark_utils |
| 265 | 276 |
| 266 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 277 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |