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

Unified Diff: ui/views/controls/menu/menu_item_view.h

Issue 11088037: Revert 160886 - Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuCo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/menu_delegate.cc ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_item_view.h
===================================================================
--- ui/views/controls/menu/menu_item_view.h (revision 160892)
+++ ui/views/controls/menu/menu_item_view.h (working copy)
@@ -14,7 +14,6 @@
#include "build/build_config.h"
#include "ui/base/models/menu_separator_types.h"
#include "ui/gfx/image/image_skia.h"
-#include "ui/views/controls/menu/menu_config.h"
#include "ui/views/view.h"
#if defined(OS_WIN)
@@ -37,6 +36,7 @@
class MenuRunnerImpl;
}
+struct MenuConfig;
class MenuController;
class MenuDelegate;
class SubmenuView;
@@ -320,15 +320,6 @@
use_right_margin_ = use_right_margin;
}
- // Sets MenuConfig to be used instead of default one.
- // Setting |menu_config_| to NULL will make menu to use a default MenuConfig.
- void set_menu_config(const MenuConfig* menu_config) {
- menu_config_.reset(menu_config);
- }
-
- // Returns a reference to MenuConfig to be used with this menu.
- const MenuConfig& GetMenuConfig() const;
-
protected:
// Creates a MenuItemView. This is used by the various AddXXX methods.
MenuItemView(MenuItemView* parent, int command, Type type);
@@ -509,10 +500,6 @@
// containing other elements.
bool use_right_margin_;
- // |menu_config_| to replace default one, could be NULL,
- // applies to root menu item only.
- scoped_ptr<const MenuConfig> menu_config_;
-
DISALLOW_COPY_AND_ASSIGN(MenuItemView);
};
« no previous file with comments | « ui/views/controls/menu/menu_delegate.cc ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698