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

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

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 #include "base/utf_string_conversions.h"
8
7 namespace ui { 9 namespace ui {
8 10
11 const string16 MenuModel::NORMAL_SEPARATOR(ASCIIToUTF16(""));
12 const string16 MenuModel::UPPER_SEPARATOR(ASCIIToUTF16("u"));
13 const string16 MenuModel::LOWER_SEPARATOR(ASCIIToUTF16("l"));
14 const string16 MenuModel::SPACING_SEPARATOR(ASCIIToUTF16("s"));
15
9 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const { 16 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const {
10 return 0; 17 return 0;
11 } 18 }
12 19
13 bool MenuModel::IsVisibleAt(int index) const { 20 bool MenuModel::IsVisibleAt(int index) const {
14 return true; 21 return true;
15 } 22 }
16 23
17 bool MenuModel::GetModelAndIndexForCommandId(int command_id, 24 bool MenuModel::GetModelAndIndexForCommandId(int command_id,
18 MenuModel** model, int* index) { 25 MenuModel** model, int* index) {
(...skipping 19 matching lines...) Expand all
38 const gfx::Font* MenuModel::GetLabelFontAt(int index) const { 45 const gfx::Font* MenuModel::GetLabelFontAt(int index) const {
39 return NULL; 46 return NULL;
40 } 47 }
41 48
42 // Default implementation ignores the event flags. 49 // Default implementation ignores the event flags.
43 void MenuModel::ActivatedAt(int index, int event_flags) { 50 void MenuModel::ActivatedAt(int index, int event_flags) {
44 ActivatedAt(index); 51 ActivatedAt(index);
45 } 52 }
46 53
47 } // namespace ui 54 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698