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

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

Issue 117903006: Refactor: Makes menus use gfx::FontList instead of gfx::Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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() {}
11 11
12 bool MenuDelegate::IsItemChecked(int id) const { 12 bool MenuDelegate::IsItemChecked(int id) const {
13 return false; 13 return false;
14 } 14 }
15 15
16 base::string16 MenuDelegate::GetLabel(int id) const { 16 base::string16 MenuDelegate::GetLabel(int id) const {
17 return base::string16(); 17 return base::string16();
18 } 18 }
19 19
20 const gfx::Font* MenuDelegate::GetLabelFont(int id) const { 20 const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const {
21 return NULL; 21 return NULL;
22 } 22 }
23 23
24 bool MenuDelegate::GetBackgroundColor(int command_id, 24 bool MenuDelegate::GetBackgroundColor(int command_id,
25 bool is_hovered, 25 bool is_hovered,
26 SkColor* override_color) const { 26 SkColor* override_color) const {
27 return false; 27 return false;
28 } 28 }
29 29
30 bool MenuDelegate::GetForegroundColor(int command_id, 30 bool MenuDelegate::GetForegroundColor(int command_id,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int* right_margin) const { 150 int* right_margin) const {
151 *left_margin = 0; 151 *left_margin = 0;
152 *right_margin = 0; 152 *right_margin = 0;
153 } 153 }
154 154
155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { 155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const {
156 return true; 156 return true;
157 } 157 }
158 158
159 } // namespace views 159 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698