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

Unified Diff: views/controls/menu/menu_config.cc

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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: views/controls/menu/menu_config.cc
diff --git a/views/controls/menu/menu_config.cc b/views/controls/menu/menu_config.cc
index cfdebea99a818ac598760380aaf08814ee9d4f2b..d3c510d942472a5e0e080c262581a49b53650973 100644
--- a/views/controls/menu/menu_config.cc
+++ b/views/controls/menu/menu_config.cc
@@ -10,6 +10,33 @@ namespace views {
static MenuConfig* config_instance = NULL;
+MenuConfig::MenuConfig()
+ : text_color(SK_ColorBLACK),
+ item_top_margin(3),
+ item_bottom_margin(4),
+ item_no_icon_top_margin(1),
+ item_no_icon_bottom_margin(3),
+ item_left_margin(4),
+ label_to_arrow_padding(10),
+ arrow_to_edge_padding(5),
+ icon_to_label_padding(8),
+ gutter_to_label(5),
+ check_width(16),
+ check_height(16),
+ radio_width(16),
+ radio_height(16),
+ arrow_height(9),
+ arrow_width(9),
+ gutter_width(0),
+ separator_height(6),
+ render_gutter(false),
+ show_mnemonics(false),
+ scroll_arrow_height(3),
+ label_to_accelerator_padding(10) {
+}
+
+MenuConfig::~MenuConfig() {}
+
void MenuConfig::Reset() {
delete config_instance;
config_instance = NULL;

Powered by Google App Engine
This is Rietveld 408576698