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

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

Issue 8508055: Move views::Accelerator to ui in order to use it from aura code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 9 years, 1 month 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
« no previous file with comments | « views/controls/menu/menu_delegate.h ('k') | views/controls/menu/menu_item_view.cc » ('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) 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_config.h" 5 #include "views/controls/menu/menu_config.h"
6 #include "views/controls/menu/menu_delegate.h" 6 #include "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 MenuConfig::instance().font; 21 return MenuConfig::instance().font;
22 } 22 }
23 23
24 string16 MenuDelegate::GetTooltipText(int id, 24 string16 MenuDelegate::GetTooltipText(int id,
25 const gfx::Point& screen_loc) const { 25 const gfx::Point& screen_loc) const {
26 return string16(); 26 return string16();
27 } 27 }
28 28
29 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) { 29 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) {
30 return false; 30 return false;
31 } 31 }
32 32
33 bool MenuDelegate::ShowContextMenu(MenuItemView* source, 33 bool MenuDelegate::ShowContextMenu(MenuItemView* source,
34 int id, 34 int id,
35 const gfx::Point& p, 35 const gfx::Point& p,
36 bool is_mouse_gesture) { 36 bool is_mouse_gesture) {
37 return false; 37 return false;
38 } 38 }
39 39
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return 800; 118 return 800;
119 } 119 }
120 120
121 void MenuDelegate::WillShowMenu(MenuItemView* menu) { 121 void MenuDelegate::WillShowMenu(MenuItemView* menu) {
122 } 122 }
123 123
124 void MenuDelegate::WillHideMenu(MenuItemView* menu) { 124 void MenuDelegate::WillHideMenu(MenuItemView* menu) {
125 } 125 }
126 126
127 } // namespace views 127 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_delegate.h ('k') | views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698