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

Side by Side Diff: ui/base/models/menu_model.cc

Issue 12755019: Add 2-lines summary to CC/Address for Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DisplayNameLine2 -> DisplayNameDetail. Created 7 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/base/models/menu_model.h" 5 #include "ui/base/models/menu_model.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 bool MenuModel::IsVisibleAt(int index) const { 9 bool MenuModel::IsVisibleAt(int index) const {
10 return true; 10 return true;
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 } 26 }
27 if ((*model)->GetCommandIdAt(candidate_index) == command_id) { 27 if ((*model)->GetCommandIdAt(candidate_index) == command_id) {
28 *index = candidate_index; 28 *index = candidate_index;
29 return true; 29 return true;
30 } 30 }
31 } 31 }
32 return false; 32 return false;
33 } 33 }
34 34
35 string16 MenuModel::GetSubLabelAt(int index) const {
36 return string16();
37 }
38
35 const gfx::Font* MenuModel::GetLabelFontAt(int index) const { 39 const gfx::Font* MenuModel::GetLabelFontAt(int index) const {
36 return NULL; 40 return NULL;
37 } 41 }
38 42
43 const gfx::Font* MenuModel::GetSubLabelFontAt(int index) const {
44 return NULL;
45 }
46
39 // Default implementation ignores the event flags. 47 // Default implementation ignores the event flags.
40 void MenuModel::ActivatedAt(int index, int event_flags) { 48 void MenuModel::ActivatedAt(int index, int event_flags) {
41 ActivatedAt(index); 49 ActivatedAt(index);
42 } 50 }
43 51
44 } // namespace ui 52 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698