| 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/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 bool is_starred() const { return is_starred_; } | 37 bool is_starred() const { return is_starred_; } |
| 38 | 38 |
| 39 BookmarkTabHelperDelegate* delegate() const { return delegate_; } | 39 BookmarkTabHelperDelegate* delegate() const { return delegate_; } |
| 40 void set_delegate(BookmarkTabHelperDelegate* d) { delegate_ = d; } | 40 void set_delegate(BookmarkTabHelperDelegate* d) { delegate_ = d; } |
| 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 DidNavigateMainFrame( |
| 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 // content::NotificationObserver overrides: | 50 // content::NotificationObserver overrides: |
| 51 virtual void Observe(int type, | 51 virtual void Observe(int type, |
| 52 const content::NotificationSource& source, | 52 const content::NotificationSource& source, |
| 53 const content::NotificationDetails& details) OVERRIDE; | 53 const content::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 |
| (...skipping 22 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 |