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

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

Issue 6811025: Change status button menu implementation from Menu2 to MenuItemView. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixes for merge with trunk. Created 9 years, 8 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 "views/controls/menu/menu_delegate.h" 5 #include "views/controls/menu/menu_delegate.h"
6 6
7 namespace views { 7 namespace views {
8 8
9 bool MenuDelegate::IsItemChecked(int id) const { 9 bool MenuDelegate::IsItemChecked(int id) const {
10 return false; 10 return false;
11 } 11 }
12 12
13 std::wstring MenuDelegate::GetLabel(int id) const { 13 std::wstring MenuDelegate::GetLabel(int id) const {
14 return std::wstring(); 14 return std::wstring();
15 } 15 }
16 16
17 const gfx::Font* MenuDelegate::GetLabelFont(int id) const {
18 return NULL;
19 }
20
17 std::wstring MenuDelegate::GetTooltipText(int id, 21 std::wstring MenuDelegate::GetTooltipText(int id,
18 const gfx::Point& screen_loc) { 22 const gfx::Point& screen_loc) {
19 return std::wstring(); 23 return std::wstring();
20 } 24 }
21 25
22 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) { 26 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) {
23 return false; 27 return false;
24 } 28 }
25 29
26 bool MenuDelegate::ShowContextMenu(MenuItemView* source, 30 bool MenuDelegate::ShowContextMenu(MenuItemView* source,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return NULL; 108 return NULL;
105 } 109 }
106 110
107 int MenuDelegate::GetMaxWidthForMenu() { 111 int MenuDelegate::GetMaxWidthForMenu() {
108 // NOTE: this needs to be large enough to accommodate the wrench menu with 112 // NOTE: this needs to be large enough to accommodate the wrench menu with
109 // big fonts. 113 // big fonts.
110 return 800; 114 return 800;
111 } 115 }
112 116
113 } // namespace views 117 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698