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

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

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« chrome/browser/ui/views/tabs/tab.cc ('K') | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_config.cc
diff --git a/ui/views/controls/menu/menu_config.cc b/ui/views/controls/menu/menu_config.cc
index 089d666eb6e97f36f7d12e850ae385ce28ed099d..9eaba83f6db9d81b5077c5aca3f5a760f32dcaf0 100644
--- a/ui/views/controls/menu/menu_config.cc
+++ b/ui/views/controls/menu/menu_config.cc
@@ -5,8 +5,6 @@
#include "ui/views/controls/menu/menu_config.h"
#include "build/build_config.h"
-#include "ui/base/layout.h"
-#include "ui/native_theme/native_theme.h"
namespace views {
@@ -45,12 +43,6 @@ MenuConfig::MenuConfig(const ui::NativeTheme* theme)
native_theme(theme),
show_delay(400),
corner_radius(0) {
- // Use 40px tall menu items when running in touch optimized mode.
- // For Windows use 40px tall menu items when running in touch optimized mode.
- if (ui::GetDisplayLayout() == ui::LAYOUT_TOUCH) {
- item_top_margin = item_no_icon_top_margin = 12;
- item_bottom_margin = item_no_icon_bottom_margin = 13;
- }
Init(theme);
}
« chrome/browser/ui/views/tabs/tab.cc ('K') | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698