| 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/browser/tab_contents/tab_contents_observer.h" | 9 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 10 #include "content/common/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Returns true if the bookmark bar should be shown detached. | 42 // Returns true if the bookmark bar should be shown detached. |
| 43 bool ShouldShowBookmarkBar(); | 43 bool ShouldShowBookmarkBar(); |
| 44 | 44 |
| 45 // TabContentsObserver overrides: | 45 // TabContentsObserver overrides: |
| 46 virtual void DidNavigateMainFramePostCommit( | 46 virtual void DidNavigateMainFramePostCommit( |
| 47 const content::LoadCommittedDetails& details, | 47 const content::LoadCommittedDetails& details, |
| 48 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 48 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
| 49 | 49 |
| 50 // NotificationObserver overrides: | 50 // NotificationObserver overrides: |
| 51 virtual void Observe(NotificationType type, | 51 virtual void Observe(int type, |
| 52 const NotificationSource& source, | 52 const NotificationSource& source, |
| 53 const NotificationDetails& details) OVERRIDE; | 53 const NotificationDetails& details) OVERRIDE; |
| 54 | 54 |
| 55 // It is up to callers to call SetBookmarkDragDelegate(NULL) when | 55 // It is up to callers to call SetBookmarkDragDelegate(NULL) when |
| 56 // |bookmark_drag| is deleted since this class does not take ownership of | 56 // |bookmark_drag| is deleted since this class does not take ownership of |
| 57 // |bookmark_drag|. | 57 // |bookmark_drag|. |
| 58 void SetBookmarkDragDelegate( | 58 void SetBookmarkDragDelegate( |
| 59 BookmarkTabHelper::BookmarkDrag* bookmark_drag); | 59 BookmarkTabHelper::BookmarkDrag* bookmark_drag); |
| 60 // The BookmarkDragDelegate is used to forward bookmark drag and drop events | 60 // The BookmarkDragDelegate is used to forward bookmark drag and drop events |
| 61 // to extensions. | 61 // to extensions. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 79 // by us. | 79 // by us. |
| 80 BookmarkTabHelperDelegate* delegate_; | 80 BookmarkTabHelperDelegate* delegate_; |
| 81 | 81 |
| 82 // Handles drag and drop event forwarding to extensions. | 82 // Handles drag and drop event forwarding to extensions. |
| 83 BookmarkDrag* bookmark_drag_; | 83 BookmarkDrag* bookmark_drag_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); | 85 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 88 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
| OLD | NEW |