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

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

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another merge! Created 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/menu/menu_separator.h
diff --git a/ui/views/controls/menu/menu_separator.h b/ui/views/controls/menu/menu_separator.h
index f3eabb29a3c705641f52b0f8803ba098b1996d52..cb48e04d5842043125f5edb463ae9740bbbd994d 100644
--- a/ui/views/controls/menu/menu_separator.h
+++ b/ui/views/controls/menu/menu_separator.h
@@ -6,19 +6,23 @@
#define UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_
#include "base/compiler_specific.h"
+#include "ui/base/models/menu_separator_types.h"
#include "ui/views/view.h"
namespace views {
class MenuSeparator : public View {
public:
- MenuSeparator() {}
+ explicit MenuSeparator(ui::MenuSeparatorType type) : type_(type) {}
// View overrides.
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual gfx::Size GetPreferredSize() OVERRIDE;
private:
+ // The type of the separator.
+ const ui::MenuSeparatorType type_;
+
DISALLOW_COPY_AND_ASSIGN(MenuSeparator);
};
« no previous file with comments | « ui/views/controls/menu/menu_model_adapter_unittest.cc ('k') | ui/views/controls/menu/menu_separator_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698