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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 8 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 private: 59 private:
60 friend class content::WebContentsUserData<BookmarkTabHelper>; 60 friend class content::WebContentsUserData<BookmarkTabHelper>;
61 61
62 explicit BookmarkTabHelper(content::WebContents* web_contents); 62 explicit BookmarkTabHelper(content::WebContents* web_contents);
63 63
64 // Updates the starred state from the BookmarkModel. If the state has changed, 64 // Updates the starred state from the BookmarkModel. If the state has changed,
65 // the delegate is notified. 65 // the delegate is notified.
66 void UpdateStarredStateForCurrentURL(); 66 void UpdateStarredStateForCurrentURL();
67 67
68 // Overridden from BaseBookmarkModelObserver: 68 // Overridden from BaseBookmarkModelObserver:
69 virtual void BookmarkModelChanged() OVERRIDE; 69 virtual void BookmarkModelChanged() override;
70 virtual void BookmarkModelLoaded(BookmarkModel* model, 70 virtual void BookmarkModelLoaded(BookmarkModel* model,
71 bool ids_reassigned) OVERRIDE; 71 bool ids_reassigned) override;
72 virtual void BookmarkNodeAdded(BookmarkModel* model, 72 virtual void BookmarkNodeAdded(BookmarkModel* model,
73 const BookmarkNode* parent, 73 const BookmarkNode* parent,
74 int index) OVERRIDE; 74 int index) override;
75 virtual void BookmarkNodeRemoved(BookmarkModel* model, 75 virtual void BookmarkNodeRemoved(BookmarkModel* model,
76 const BookmarkNode* parent, 76 const BookmarkNode* parent,
77 int old_index, 77 int old_index,
78 const BookmarkNode* node, 78 const BookmarkNode* node,
79 const std::set<GURL>& removed_urls) OVERRIDE; 79 const std::set<GURL>& removed_urls) override;
80 virtual void BookmarkAllUserNodesRemoved( 80 virtual void BookmarkAllUserNodesRemoved(
81 BookmarkModel* model, 81 BookmarkModel* model,
82 const std::set<GURL>& removed_urls) OVERRIDE; 82 const std::set<GURL>& removed_urls) override;
83 83
84 virtual void BookmarkNodeChanged(BookmarkModel* model, 84 virtual void BookmarkNodeChanged(BookmarkModel* model,
85 const BookmarkNode* node) OVERRIDE; 85 const BookmarkNode* node) override;
86 86
87 // Overridden from content::WebContentsObserver: 87 // Overridden from content::WebContentsObserver:
88 virtual void DidNavigateMainFrame( 88 virtual void DidNavigateMainFrame(
89 const content::LoadCommittedDetails& details, 89 const content::LoadCommittedDetails& details,
90 const content::FrameNavigateParams& params) OVERRIDE; 90 const content::FrameNavigateParams& params) override;
91 91
92 // Whether the current URL is starred. 92 // Whether the current URL is starred.
93 bool is_starred_; 93 bool is_starred_;
94 94
95 BookmarkModel* bookmark_model_; 95 BookmarkModel* bookmark_model_;
96 96
97 // Our delegate, to notify when the url starred changed. 97 // Our delegate, to notify when the url starred changed.
98 BookmarkTabHelperDelegate* delegate_; 98 BookmarkTabHelperDelegate* delegate_;
99 99
100 // The BookmarkDrag is used to forward bookmark drag and drop events to 100 // The BookmarkDrag is used to forward bookmark drag and drop events to
101 // extensions. 101 // extensions.
102 BookmarkDrag* bookmark_drag_; 102 BookmarkDrag* bookmark_drag_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); 104 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper);
105 }; 105 };
106 106
107 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ 107 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698