| Index: chrome/browser/views/bookmark_editor_view.h
|
| ===================================================================
|
| --- chrome/browser/views/bookmark_editor_view.h (revision 18306)
|
| +++ chrome/browser/views/bookmark_editor_view.h (working copy)
|
| @@ -11,7 +11,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_editor.h"
|
| #include "chrome/browser/bookmarks/bookmark_model.h"
|
| #include "views/controls/button/button.h"
|
| -#include "views/controls/menu/menu.h"
|
| +#include "views/controls/menu/simple_menu_model.h"
|
| #include "views/controls/textfield/textfield.h"
|
| #include "views/controls/tree/tree_view.h"
|
| #include "views/window/dialog_delegate.h"
|
| @@ -40,7 +40,7 @@
|
| public views::DialogDelegate,
|
| public views::Textfield::Controller,
|
| public views::ContextMenuController,
|
| - public views::Menu::Delegate,
|
| + public views::SimpleMenuModel::Delegate,
|
| public BookmarkModelObserver {
|
| FRIEND_TEST(BookmarkEditorViewTest, ChangeParent);
|
| FRIEND_TEST(BookmarkEditorViewTest, ChangeParentAndURL);
|
| @@ -91,13 +91,13 @@
|
| // NativeButton.
|
| virtual void ButtonPressed(views::Button* sender);
|
|
|
| - // Menu::Delegate method.
|
| - virtual void ExecuteCommand(int id);
|
| + // SimpleMenuModel::Delegate.
|
| + virtual bool IsCommandIdChecked(int command_id) const;
|
| + virtual bool IsCommandIdEnabled(int command_id) const;
|
| + virtual bool GetAcceleratorForCommandId(int command_id,
|
| + views::Accelerator* accelerator);
|
| + virtual void ExecuteCommand(int command_id);
|
|
|
| - // Menu::Delegate method, return false if id is edit and the bookmark node
|
| - // was selected, true otherwise.
|
| - virtual bool IsCommandEnabled(int id) const;
|
| -
|
| // Creates a Window and adds the BookmarkEditorView to it. When the window is
|
| // closed the BookmarkEditorView is deleted.
|
| void Show(HWND parent_hwnd);
|
| @@ -244,7 +244,8 @@
|
| BookmarkNode* node_;
|
|
|
| // The context menu.
|
| - scoped_ptr<views::Menu> context_menu_;
|
| + scoped_ptr<views::SimpleMenuModel> context_menu_contents_;
|
| + scoped_ptr<views::Menu2> context_menu_;
|
|
|
| // Mode used to create nodes from.
|
| BookmarkModel* bb_model_;
|
|
|