| 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_ACCELERATOR, |
| 237 ENTRY_POINT_STAR_GESTURE, |
| 238 ENTRY_POINT_STAR_KEY, |
| 239 ENTRY_POINT_STAR_MOUSE, |
| 240 |
| 241 ENTRY_POINT_LIMIT // Keep this last. |
| 242 }; |
| 243 |
| 234 // This enum is used for the Bookmarks.LaunchLocation histogram. | 244 // This enum is used for the Bookmarks.LaunchLocation histogram. |
| 235 enum BookmarkLaunchLocation { | 245 enum BookmarkLaunchLocation { |
| 236 LAUNCH_NONE, | 246 LAUNCH_NONE, |
| 237 LAUNCH_ATTACHED_BAR = 0, | 247 LAUNCH_ATTACHED_BAR = 0, |
| 238 LAUNCH_DETACHED_BAR, | 248 LAUNCH_DETACHED_BAR, |
| 239 // These two are kind of sub-categories of the bookmark bar. Generally | 249 // 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 | 250 // 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 | 251 // the other two bar buckets, but doing so is difficult because the menus |
| 242 // don't know of their greater place in Chrome. | 252 // don't know of their greater place in Chrome. |
| 243 LAUNCH_BAR_SUBFOLDER, | 253 LAUNCH_BAR_SUBFOLDER, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 257 void RecordBookmarkLaunch(BookmarkLaunchLocation location); | 267 void RecordBookmarkLaunch(BookmarkLaunchLocation location); |
| 258 | 268 |
| 259 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) | 269 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) |
| 260 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); | 270 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); |
| 261 bool IsBookmarkBarViewAnimationsDisabled(); | 271 bool IsBookmarkBarViewAnimationsDisabled(); |
| 262 #endif | 272 #endif |
| 263 | 273 |
| 264 } // namespace bookmark_utils | 274 } // namespace bookmark_utils |
| 265 | 275 |
| 266 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 276 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |