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

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

Issue 10532171: Added support for icon views (view used instead of icon in a menu item). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added support for icon views (view used instead of icon in a menu item). Created 8 years, 5 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
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // big fonts. 120 // big fonts.
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() {
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);
136 }
137
138 Background* MenuDelegate::CreateMenuBackground() {
139 return NULL;
140 }
141
130 } // namespace views 142 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698