Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_tab_helper.h

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 27 matching lines...) Expand all
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 DidNavigateMainFrame( 46 virtual void DidNavigateMainFrame(
47 const content::LoadCommittedDetails& details, 47 const content::LoadCommittedDetails& details,
48 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 48 const content::FrameNavigateParams& 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
57 // |bookmark_drag|. 57 // |bookmark_drag|.
58 void SetBookmarkDragDelegate( 58 void SetBookmarkDragDelegate(
(...skipping 20 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc ('k') | chrome/browser/ui/bookmarks/bookmark_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698