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

Side by Side Diff: chrome/browser/bookmark_bar_context_menu_controller.h

Issue 1912: Renames BoomarkBarModel to BookmarkModel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_
6 #define CHROME_BROWSER_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_ 6 #define CHROME_BROWSER_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_
7 7
8 #include "chrome/views/chrome_menu.h" 8 #include "chrome/views/chrome_menu.h"
9 #include "chrome/browser/views/bookmark_bar_view.h" 9 #include "chrome/browser/views/bookmark_bar_view.h"
10 10
11 class BookmarkBarNode; 11 class BookmarkNode;
12 class PageNavigator; 12 class PageNavigator;
13 13
14 // BookmarkBarContextMenuController manages the context menus shown for the 14 // BookmarkBarContextMenuController manages the context menus shown for the
15 // bookmark bar, items on the bookmark bar, and submens of folders on the 15 // bookmark bar, items on the bookmark bar, and submens of folders on the
16 // bookmark bar. 16 // bookmark bar.
17 class BookmarkBarContextMenuController : public ChromeViews::MenuDelegate, 17 class BookmarkBarContextMenuController : public ChromeViews::MenuDelegate,
18 public BookmarkBarView::ModelChangedListener { 18 public BookmarkBarView::ModelChangedListener {
19 public: 19 public:
20 BookmarkBarContextMenuController(BookmarkBarView* view, 20 BookmarkBarContextMenuController(BookmarkBarView* view,
21 BookmarkBarNode* node); 21 BookmarkNode* node);
22 22
23 // Shows the menu at the specified place. 23 // Shows the menu at the specified place.
24 void RunMenuAt(int x, int y); 24 void RunMenuAt(int x, int y);
25 25
26 // ModelChangedListener method, cancels the menu. 26 // ModelChangedListener method, cancels the menu.
27 virtual void ModelChanged(); 27 virtual void ModelChanged();
28 28
29 // Returns the menu. 29 // Returns the menu.
30 ChromeViews::MenuItemView* menu() { return &menu_; } 30 ChromeViews::MenuItemView* menu() { return &menu_; }
31 31
(...skipping 10 matching lines...) Expand all
42 static const int open_all_bookmarks_id; 42 static const int open_all_bookmarks_id;
43 static const int open_all_bookmarks_in_new_window_id; 43 static const int open_all_bookmarks_in_new_window_id;
44 static const int edit_bookmark_id; 44 static const int edit_bookmark_id;
45 static const int delete_bookmark_id; 45 static const int delete_bookmark_id;
46 static const int add_bookmark_id; 46 static const int add_bookmark_id;
47 static const int new_folder_id; 47 static const int new_folder_id;
48 48
49 private: 49 private:
50 // Returns the parent node and visual_order to use when adding new 50 // Returns the parent node and visual_order to use when adding new
51 // bookmarks/folders. 51 // bookmarks/folders.
52 BookmarkBarNode* GetParentAndVisualOrderForNewNode(int* visual_order); 52 BookmarkNode* GetParentAndVisualOrderForNewNode(int* visual_order);
53 53
54 ChromeViews::MenuItemView menu_; 54 ChromeViews::MenuItemView menu_;
55 BookmarkBarView* view_; 55 BookmarkBarView* view_;
56 BookmarkBarNode* node_; 56 BookmarkNode* node_;
57 57
58 DISALLOW_EVIL_CONSTRUCTORS(BookmarkBarContextMenuController); 58 DISALLOW_EVIL_CONSTRUCTORS(BookmarkBarContextMenuController);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_ 61 #endif // CHROME_BROWSER_BOOKMARK_BAR_CONTEXT_MENU_CONTROLLER_H_
62 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698