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

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

Issue 122027: Remove the Menu object, converting all the remaining callers to use Menu2. I'... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_BOOKMARK_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
7 7
8 #include "app/slide_animation.h" 8 #include "app/slide_animation.h"
9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/extensions/extensions_service.h" 11 #include "chrome/browser/extensions/extensions_service.h"
12 #include "chrome/browser/views/bookmark_menu_controller_views.h" 12 #include "chrome/browser/views/bookmark_menu_controller_views.h"
13 #include "chrome/common/notification_registrar.h" 13 #include "chrome/common/notification_registrar.h"
14 #include "views/controls/button/menu_button.h" 14 #include "views/controls/button/menu_button.h"
15 #include "views/controls/label.h" 15 #include "views/controls/label.h"
16 #include "views/controls/menu/menu.h"
17 #include "views/controls/menu/view_menu_delegate.h" 16 #include "views/controls/menu/view_menu_delegate.h"
18 #include "views/view.h" 17 #include "views/view.h"
19 #include "third_party/skia/include/core/SkRect.h" 18 #include "third_party/skia/include/core/SkRect.h"
20 19
21 class Browser; 20 class Browser;
22 class PageNavigator; 21 class PageNavigator;
23 class PrefService; 22 class PrefService;
24 23
25 namespace views { 24 namespace views {
26 class MenuItemView; 25 class MenuItemView;
27 } 26 }
28 27
29 // BookmarkBarView renders the BookmarkModel. Each starred entry on the 28 // BookmarkBarView renders the BookmarkModel. Each starred entry on the
30 // BookmarkBar is rendered as a MenuButton. An additional MenuButton aligned to 29 // BookmarkBar is rendered as a MenuButton. An additional MenuButton aligned to
31 // the right allows the user to quickly see recently starred entries. 30 // the right allows the user to quickly see recently starred entries.
32 // 31 //
33 // BookmarkBarView shows the bookmarks from a specific Profile. BookmarkBarView 32 // BookmarkBarView shows the bookmarks from a specific Profile. BookmarkBarView
34 // waits until the HistoryService for the profile has been loaded before 33 // waits until the HistoryService for the profile has been loaded before
35 // creating the BookmarkModel. 34 // creating the BookmarkModel.
36 class BookmarkBarView : public views::View, 35 class BookmarkBarView : public views::View,
37 public BookmarkModelObserver, 36 public BookmarkModelObserver,
38 public views::ViewMenuDelegate, 37 public views::ViewMenuDelegate,
39 public views::ButtonListener, 38 public views::ButtonListener,
40 public views::Menu::Delegate,
41 public NotificationObserver, 39 public NotificationObserver,
42 public views::ContextMenuController, 40 public views::ContextMenuController,
43 public views::DragController, 41 public views::DragController,
44 public AnimationDelegate, 42 public AnimationDelegate,
45 public BookmarkMenuController::Observer { 43 public BookmarkMenuController::Observer {
46 friend class ShowFolderMenuTask; 44 friend class ShowFolderMenuTask;
47 45
48 public: 46 public:
49 // Interface implemented by controllers/views that need to be notified any 47 // Interface implemented by controllers/views that need to be notified any
50 // time the model changes, typically to cancel an operation that is showing 48 // time the model changes, typically to cancel an operation that is showing
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // overflow_button_ or a button on the bar. 421 // overflow_button_ or a button on the bar.
424 views::CustomButton* throbbing_view_; 422 views::CustomButton* throbbing_view_;
425 423
426 // Background for extension toolstrips. 424 // Background for extension toolstrips.
427 SkBitmap toolstrip_background_; 425 SkBitmap toolstrip_background_;
428 426
429 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 427 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
430 }; 428 };
431 429
432 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 430 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_win.cc ('k') | chrome/browser/views/bookmark_editor_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698