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

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

Issue 12096094: Finalizing the 'OnClick' behavior of the Launcher items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 10 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 string16 MenuDelegate::GetLabel(int id) const { 16 string16 MenuDelegate::GetLabel(int id) const {
17 return string16(); 17 return string16();
18 } 18 }
19 19
20 const gfx::Font* MenuDelegate::GetLabelFont(int id) const { 20 const gfx::Font* MenuDelegate::GetLabelFont(int id) const {
21 return NULL; 21 return NULL;
22 } 22 }
23 23
24 bool MenuDelegate::GetBackgroundColor(int command_id,
25 bool is_hovered,
26 SkColor* override_color) const {
27 return false;
28 }
29
24 string16 MenuDelegate::GetTooltipText(int id, 30 string16 MenuDelegate::GetTooltipText(int id,
25 const gfx::Point& screen_loc) const { 31 const gfx::Point& screen_loc) const {
26 return string16(); 32 return string16();
27 } 33 }
28 34
29 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { 35 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) {
30 return false; 36 return false;
31 } 37 }
32 38
33 bool MenuDelegate::ShowContextMenu(MenuItemView* source, 39 bool MenuDelegate::ShowContextMenu(MenuItemView* source,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 140
135 void MenuDelegate::GetHorizontalIconMargins(int command_id, 141 void MenuDelegate::GetHorizontalIconMargins(int command_id,
136 int icon_size, 142 int icon_size,
137 int* left_margin, 143 int* left_margin,
138 int* right_margin) const { 144 int* right_margin) const {
139 *left_margin = 0; 145 *left_margin = 0;
140 *right_margin = 0; 146 *right_margin = 0;
141 } 147 }
142 148
143 } // namespace views 149 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698