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

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

Issue 6798006: Makes the other bookmark folder menu close if you delete the last item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 private: 61 private:
62 scoped_ptr<BookmarkContextMenuControllerViews> controller_; 62 scoped_ptr<BookmarkContextMenuControllerViews> controller_;
63 63
64 // The parent of dialog boxes opened from the context menu. 64 // The parent of dialog boxes opened from the context menu.
65 gfx::NativeWindow parent_window_; 65 gfx::NativeWindow parent_window_;
66 66
67 // The menu itself. 67 // The menu itself.
68 scoped_ptr<views::MenuItemView> menu_; 68 scoped_ptr<views::MenuItemView> menu_;
69 69
70 // The node we're showing the menu for.
71 const BookmarkNode* parent_node_;
72
70 BookmarkContextMenuObserver* observer_; 73 BookmarkContextMenuObserver* observer_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu); 75 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu);
73 }; 76 };
74 77
75 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_ 78 #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