| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| 11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
| 12 | 12 |
| 13 class BookmarkTabHelperDelegate; | 13 class BookmarkTabHelperDelegate; |
| 14 class TabContentsWrapper; | 14 class TabContents; |
| 15 typedef TabContents TabContentsWrapper; |
| 15 struct BookmarkNodeData; | 16 struct BookmarkNodeData; |
| 16 | 17 |
| 17 // Per-tab class to manage bookmarks. | 18 // Per-tab class to manage bookmarks. |
| 18 class BookmarkTabHelper : public content::NotificationObserver, | 19 class BookmarkTabHelper : public content::NotificationObserver, |
| 19 public content::WebContentsObserver { | 20 public content::WebContentsObserver { |
| 20 public: | 21 public: |
| 21 // BookmarkDrag -------------------------------------------------------------- | 22 // BookmarkDrag -------------------------------------------------------------- |
| 22 // Interface for forwarding bookmark drag and drop to extenstions. | 23 // Interface for forwarding bookmark drag and drop to extenstions. |
| 23 class BookmarkDrag { | 24 class BookmarkDrag { |
| 24 public: | 25 public: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // by us. | 80 // by us. |
| 80 BookmarkTabHelperDelegate* delegate_; | 81 BookmarkTabHelperDelegate* delegate_; |
| 81 | 82 |
| 82 // Handles drag and drop event forwarding to extensions. | 83 // Handles drag and drop event forwarding to extensions. |
| 83 BookmarkDrag* bookmark_drag_; | 84 BookmarkDrag* bookmark_drag_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); | 86 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 89 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
| OLD | NEW |