| 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 NULL; | 131 return Border::CreateEmptyBorder( |
| 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); |
| 132 } | 136 } |
| 133 | 137 |
| 134 Background* MenuDelegate::CreateMenuBackground() { | 138 Background* MenuDelegate::CreateMenuBackground() { |
| 135 return NULL; | 139 return NULL; |
| 136 } | 140 } |
| 137 | 141 |
| 138 } // namespace views | 142 } // namespace views |
| OLD | NEW |