| 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_DROP_INFO_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_DROP_INFO_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DROP_INFO_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DROP_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 11 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 12 #include "gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 class DropTargetEvent; | 15 class DropTargetEvent; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // BookmarkDropInfo is a pure virtual class that provides auto-scrolling | 18 // BookmarkDropInfo is a pure virtual class that provides auto-scrolling |
| 19 // behavior and a handful of fields used for managing a bookmark drop. | 19 // behavior and a handful of fields used for managing a bookmark drop. |
| 20 // BookmarkDropInfo is used by both BookmarkTableView and | 20 // BookmarkDropInfo is used by both BookmarkTableView and |
| 21 // BookmarksFolderTreeView. | 21 // BookmarksFolderTreeView. |
| 22 class BookmarkDropInfo { | 22 class BookmarkDropInfo { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // When autoscrolling this determines if we're scrolling up or down. | 77 // When autoscrolling this determines if we're scrolling up or down. |
| 78 bool scroll_up_; | 78 bool scroll_up_; |
| 79 | 79 |
| 80 // Used when autoscrolling. | 80 // Used when autoscrolling. |
| 81 base::RepeatingTimer<BookmarkDropInfo> scroll_timer_; | 81 base::RepeatingTimer<BookmarkDropInfo> scroll_timer_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(BookmarkDropInfo); | 83 DISALLOW_COPY_AND_ASSIGN(BookmarkDropInfo); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DROP_INFO_H_ | 86 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DROP_INFO_H_ |
| OLD | NEW |