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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h

Issue 2747693003: Add missing include guards in Cocoa code. (Closed)
Patch Set: Fix nit Created 3 years, 9 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
6 // Bookmarks (model) with the Bookmark Bar (view).
7 //
8 // There is exactly one BookmarkBarBridge per BookmarkBarController /
9 // BrowserWindowController / Browser.
10
11 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_
12 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_
13 7
14 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
15 #include "base/macros.h" 9 #include "base/macros.h"
16 #include "components/bookmarks/browser/bookmark_model_observer.h" 10 #include "components/bookmarks/browser/bookmark_model_observer.h"
17 #include "components/prefs/pref_change_registrar.h" 11 #include "components/prefs/pref_change_registrar.h"
18 12
19 class Profile; 13 class Profile;
20 @class BookmarkBarController; 14 @class BookmarkBarController;
21 15
16 // C++ bridge class between Chromium and Cocoa to connect the
17 // Bookmarks (model) with the Bookmark Bar (view).
18 //
19 // There is exactly one BookmarkBarBridge per BookmarkBarController /
20 // BrowserWindowController / Browser.
22 class BookmarkBarBridge : public bookmarks::BookmarkModelObserver { 21 class BookmarkBarBridge : public bookmarks::BookmarkModelObserver {
23 public: 22 public:
24 BookmarkBarBridge(Profile* profile, 23 BookmarkBarBridge(Profile* profile,
25 BookmarkBarController* controller, 24 BookmarkBarController* controller,
26 bookmarks::BookmarkModel* model); 25 bookmarks::BookmarkModel* model);
27 ~BookmarkBarBridge() override; 26 ~BookmarkBarBridge() override;
28 27
29 // bookmarks::BookmarkModelObserver: 28 // bookmarks::BookmarkModelObserver:
30 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, 29 void BookmarkModelLoaded(bookmarks::BookmarkModel* model,
31 bool ids_reassigned) override; 30 bool ids_reassigned) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 PrefChangeRegistrar profile_pref_registrar_; 64 PrefChangeRegistrar profile_pref_registrar_;
66 65
67 // Updates the visibility of the apps shortcut and the managed bookmarks 66 // Updates the visibility of the apps shortcut and the managed bookmarks
68 // folder based on the pref values. 67 // folder based on the pref values.
69 void OnExtraButtonsVisibilityChanged(); 68 void OnExtraButtonsVisibilityChanged();
70 69
71 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge); 70 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge);
72 }; 71 };
73 72
74 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_ 73 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/base_bubble_controller.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698