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

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

Issue 1514693006: Revert of Use a single views::MenuConfig instance for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase revert on https://codereview.chromium.org/1504743003 Created 5 years 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_config_aura.cc ('k') | ui/views/controls/menu/menu_config_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_config_chromeos.cc
diff --git a/ui/views/controls/menu/menu_config_chromeos.cc b/ui/views/controls/menu/menu_config_chromeos.cc
deleted file mode 100644
index 428b1fdd8963ba8b7b68acabb41e4231ab1d8acc..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/menu_config_chromeos.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/controls/menu/menu_config.h"
-
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/image/image.h"
-#include "ui/gfx/image/image_skia.h"
-#include "ui/resources/grit/ui_resources.h"
-#include "ui/views/controls/menu/menu_image_util.h"
-
-namespace views {
-
-void MenuConfig::Init() {
- submenu_horizontal_inset = 1;
- arrow_to_edge_padding = 20;
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- arrow_width = rb.GetImageNamed(IDR_MENU_HIERARCHY_ARROW).Width();
- gfx::ImageSkia check = GetMenuCheckImage(false);
- check_height = check.height();
- item_min_height = 29;
- separator_spacing_height = 7;
- separator_lower_height = 8;
- separator_upper_height = 8;
- label_to_arrow_padding = 20;
- label_to_minor_text_padding = 20;
- always_use_icon_to_label_padding = true;
- align_arrow_and_shortcut = true;
- offset_context_menus = true;
- corner_radius = 2;
-
- // In Ash, the border is provided by the shadow.
- use_outer_border = false;
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/menu/menu_config_aura.cc ('k') | ui/views/controls/menu/menu_config_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698