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

Side by Side Diff: ui/views/controls/menu/menu_delegate.cc

Issue 11026076: Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuConfig if it avail… (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/menu/menu_config.h" 5 #include "ui/views/controls/menu/menu_config.h"
6 #include "ui/views/controls/menu/menu_delegate.h" 6 #include "ui/views/controls/menu/menu_delegate.h"
7 7
8 namespace views { 8 namespace views {
9 9
10 MenuDelegate::~MenuDelegate() {} 10 MenuDelegate::~MenuDelegate() {}
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return 800; 121 return 800;
122 } 122 }
123 123
124 void MenuDelegate::WillShowMenu(MenuItemView* menu) { 124 void MenuDelegate::WillShowMenu(MenuItemView* menu) {
125 } 125 }
126 126
127 void MenuDelegate::WillHideMenu(MenuItemView* menu) { 127 void MenuDelegate::WillHideMenu(MenuItemView* menu) {
128 } 128 }
129 129
130 Border* MenuDelegate::CreateMenuBorder() { 130 Border* MenuDelegate::CreateMenuBorder() {
131 return Border::CreateEmptyBorder( 131 return NULL;
132 MenuConfig::instance().submenu_vertical_margin_size,
133 MenuConfig::instance().submenu_horizontal_margin_size,
134 MenuConfig::instance().submenu_vertical_margin_size,
135 MenuConfig::instance().submenu_horizontal_margin_size);
136 } 132 }
137 133
138 Background* MenuDelegate::CreateMenuBackground() { 134 Background* MenuDelegate::CreateMenuBackground() {
139 return NULL; 135 return NULL;
140 } 136 }
141 137
142 } // namespace views 138 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698