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

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

Issue 7749011: Plumbs through changing navigator to bookmark menus. This is needed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_vie ws.h" 9 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_vie ws.h"
10 #include "views/controls/menu/menu_delegate.h" 10 #include "views/controls/menu/menu_delegate.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Shows the context menu at the specified point. 43 // Shows the context menu at the specified point.
44 void RunMenuAt(const gfx::Point& point); 44 void RunMenuAt(const gfx::Point& point);
45 45
46 views::MenuItemView* menu() const { return menu_; } 46 views::MenuItemView* menu() const { return menu_; }
47 47
48 void set_observer(BookmarkContextMenuObserver* observer) { 48 void set_observer(BookmarkContextMenuObserver* observer) {
49 observer_ = observer; 49 observer_ = observer;
50 } 50 }
51 51
52 // Sets the PageNavigator.
53 void SetPageNavigator(PageNavigator* navigator);
54
52 // Overridden from views::MenuDelegate: 55 // Overridden from views::MenuDelegate:
53 virtual void ExecuteCommand(int command_id); 56 virtual void ExecuteCommand(int command_id);
54 virtual bool IsItemChecked(int command_id) const; 57 virtual bool IsItemChecked(int command_id) const;
55 virtual bool IsCommandEnabled(int command_id) const; 58 virtual bool IsCommandEnabled(int command_id) const;
56 virtual bool ShouldCloseAllMenusOnExecute(int id); 59 virtual bool ShouldCloseAllMenusOnExecute(int id);
57 60
58 // Overridden from BookmarkContextMenuControllerViewsDelegate: 61 // Overridden from BookmarkContextMenuControllerViewsDelegate:
59 virtual void CloseMenu(); 62 virtual void CloseMenu();
60 virtual void AddItemWithStringId(int command_id, int string_id); 63 virtual void AddItemWithStringId(int command_id, int string_id);
61 virtual void AddSeparator(); 64 virtual void AddSeparator();
(...skipping 19 matching lines...) Expand all
81 84
82 BookmarkContextMenuObserver* observer_; 85 BookmarkContextMenuObserver* observer_;
83 86
84 // Should the menu close when a node is removed. 87 // Should the menu close when a node is removed.
85 bool close_on_remove_; 88 bool close_on_remove_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu); 90 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu);
88 }; 91 };
89 92
90 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_ 93 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698