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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.h

Issue 1233673002: Fix componentization of chrome/browser/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "gn check" and compilation on Mac Created 5 years, 5 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_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 #include "ui/views/controls/button/button.h" 26 #include "ui/views/controls/button/button.h"
27 #include "ui/views/controls/button/menu_button_listener.h" 27 #include "ui/views/controls/button/menu_button_listener.h"
28 #include "ui/views/controls/menu/menu_types.h" 28 #include "ui/views/controls/menu/menu_types.h"
29 #include "ui/views/drag_controller.h" 29 #include "ui/views/drag_controller.h"
30 30
31 class BookmarkBarViewObserver; 31 class BookmarkBarViewObserver;
32 class BookmarkBarViewTestHelper; 32 class BookmarkBarViewTestHelper;
33 class BookmarkContextMenu; 33 class BookmarkContextMenu;
34 class Browser; 34 class Browser;
35 class BrowserView; 35 class BrowserView;
36 class ChromeBookmarkClient;
37 class Profile; 36 class Profile;
38 37
39 namespace bookmarks { 38 namespace bookmarks {
40 class BookmarkModel; 39 class BookmarkModel;
40 class ManagedBookmarkService;
41 } 41 }
42 42
43 namespace content { 43 namespace content {
44 class PageNavigator; 44 class PageNavigator;
45 } 45 }
46 46
47 namespace gfx { 47 namespace gfx {
48 class SlideAnimation; 48 class SlideAnimation;
49 } 49 }
50 50
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Needed to react to kShowAppsShortcutInBookmarkBar changes. 395 // Needed to react to kShowAppsShortcutInBookmarkBar changes.
396 PrefChangeRegistrar profile_pref_registrar_; 396 PrefChangeRegistrar profile_pref_registrar_;
397 397
398 // Used for opening urls. 398 // Used for opening urls.
399 content::PageNavigator* page_navigator_; 399 content::PageNavigator* page_navigator_;
400 400
401 // BookmarkModel that owns the entries and folders that are shown in this 401 // BookmarkModel that owns the entries and folders that are shown in this
402 // view. This is owned by the Profile. 402 // view. This is owned by the Profile.
403 bookmarks::BookmarkModel* model_; 403 bookmarks::BookmarkModel* model_;
404 404
405 // ChromeBookmarkClient. This is owned by the Profile. 405 // ManagedBookmarkService. This is owned by the Profile.
406 ChromeBookmarkClient* client_; 406 bookmarks::ManagedBookmarkService* managed_;
407 407
408 // Used to manage showing a Menu, either for the most recently bookmarked 408 // Used to manage showing a Menu, either for the most recently bookmarked
409 // entries, or for the starred folder. 409 // entries, or for the starred folder.
410 BookmarkMenuController* bookmark_menu_; 410 BookmarkMenuController* bookmark_menu_;
411 411
412 // Used when showing a menu for drag and drop. That is, if the user drags 412 // Used when showing a menu for drag and drop. That is, if the user drags
413 // over a folder this becomes non-null and manages the menu showing the 413 // over a folder this becomes non-null and manages the menu showing the
414 // contents of the node. 414 // contents of the node.
415 BookmarkMenuController* bookmark_drop_menu_; 415 BookmarkMenuController* bookmark_drop_menu_;
416 416
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 base::ObserverList<BookmarkBarViewObserver> observers_; 464 base::ObserverList<BookmarkBarViewObserver> observers_;
465 465
466 // Factory used to delay showing of the drop menu. 466 // Factory used to delay showing of the drop menu.
467 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; 467 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_;
468 468
469 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 469 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
470 }; 470 };
471 471
472 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 472 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698