OLD | NEW |
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 Loading... |
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 |
OLD | NEW |