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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.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 // C++ bridge class between Chromium and Cocoa to connect the 5 // C++ bridge class between Chromium and Cocoa to connect the
6 // Bookmarks (model) with the Bookmark Bar (view). 6 // Bookmarks (model) with the Bookmark Bar (view).
7 // 7 //
8 // There is exactly one BookmarkBarBridge per BookmarkBarController / 8 // There is exactly one BookmarkBarBridge per BookmarkBarController /
9 // BrowserWindowController / Browser. 9 // BrowserWindowController / Browser.
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 class BookmarkBarBridge : public BookmarkModelObserver { 22 class BookmarkBarBridge : public BookmarkModelObserver {
23 public: 23 public:
24 BookmarkBarBridge(Profile* profile, 24 BookmarkBarBridge(Profile* profile,
25 BookmarkBarController* controller, 25 BookmarkBarController* controller,
26 BookmarkModel* model); 26 BookmarkModel* model);
27 virtual ~BookmarkBarBridge(); 27 virtual ~BookmarkBarBridge();
28 28
29 // Overridden from BookmarkModelObserver: 29 // Overridden from BookmarkModelObserver:
30 virtual void BookmarkModelLoaded(BookmarkModel* model, 30 virtual void BookmarkModelLoaded(BookmarkModel* model,
31 bool ids_reassigned) OVERRIDE; 31 bool ids_reassigned) override;
32 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; 32 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) override;
33 virtual void BookmarkNodeMoved(BookmarkModel* model, 33 virtual void BookmarkNodeMoved(BookmarkModel* model,
34 const BookmarkNode* old_parent, 34 const BookmarkNode* old_parent,
35 int old_index, 35 int old_index,
36 const BookmarkNode* new_parent, 36 const BookmarkNode* new_parent,
37 int new_index) OVERRIDE; 37 int new_index) override;
38 virtual void BookmarkNodeAdded(BookmarkModel* model, 38 virtual void BookmarkNodeAdded(BookmarkModel* model,
39 const BookmarkNode* parent, 39 const BookmarkNode* parent,
40 int index) OVERRIDE; 40 int index) override;
41 virtual void BookmarkNodeRemoved(BookmarkModel* model, 41 virtual void BookmarkNodeRemoved(BookmarkModel* model,
42 const BookmarkNode* parent, 42 const BookmarkNode* parent,
43 int old_index, 43 int old_index,
44 const BookmarkNode* node, 44 const BookmarkNode* node,
45 const std::set<GURL>& removed_urls) OVERRIDE; 45 const std::set<GURL>& removed_urls) override;
46 virtual void BookmarkAllUserNodesRemoved( 46 virtual void BookmarkAllUserNodesRemoved(
47 BookmarkModel* model, 47 BookmarkModel* model,
48 const std::set<GURL>& removed_urls) OVERRIDE; 48 const std::set<GURL>& removed_urls) override;
49 virtual void BookmarkNodeChanged(BookmarkModel* model, 49 virtual void BookmarkNodeChanged(BookmarkModel* model,
50 const BookmarkNode* node) OVERRIDE; 50 const BookmarkNode* node) override;
51 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, 51 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model,
52 const BookmarkNode* node) OVERRIDE; 52 const BookmarkNode* node) override;
53 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, 53 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model,
54 const BookmarkNode* node) OVERRIDE; 54 const BookmarkNode* node) override;
55 virtual void ExtensiveBookmarkChangesBeginning(BookmarkModel* model) OVERRIDE; 55 virtual void ExtensiveBookmarkChangesBeginning(BookmarkModel* model) override;
56 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) OVERRIDE; 56 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) override;
57 57
58 private: 58 private:
59 BookmarkBarController* controller_; // weak; owns me 59 BookmarkBarController* controller_; // weak; owns me
60 BookmarkModel* model_; // weak; it is owned by a Profile. 60 BookmarkModel* model_; // weak; it is owned by a Profile.
61 bool batch_mode_; 61 bool batch_mode_;
62 62
63 // Needed to react to kShowAppsShortcutInBookmarkBar changes. 63 // Needed to react to kShowAppsShortcutInBookmarkBar changes.
64 PrefChangeRegistrar profile_pref_registrar_; 64 PrefChangeRegistrar profile_pref_registrar_;
65 65
66 // Updates the visibility of the apps shortcut and the managed bookmarks 66 // Updates the visibility of the apps shortcut and the managed bookmarks
67 // folder based on the pref values. 67 // folder based on the pref values.
68 void OnExtraButtonsVisibilityChanged(); 68 void OnExtraButtonsVisibilityChanged();
69 69
70 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge); 70 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge);
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_ 73 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698