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

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: Addressed second review 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"
sky 2012/08/21 19:36:29 Remove this include.
Mr4D (OOO till 08-26) 2012/08/21 21:34:54 Done.
8
7 namespace ui { 9 namespace ui {
8 10
9 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const { 11 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const {
10 return 0; 12 return 0;
11 } 13 }
12 14
13 bool MenuModel::IsVisibleAt(int index) const { 15 bool MenuModel::IsVisibleAt(int index) const {
14 return true; 16 return true;
15 } 17 }
16 18
(...skipping 21 matching lines...) Expand all
38 const gfx::Font* MenuModel::GetLabelFontAt(int index) const { 40 const gfx::Font* MenuModel::GetLabelFontAt(int index) const {
39 return NULL; 41 return NULL;
40 } 42 }
41 43
42 // Default implementation ignores the event flags. 44 // Default implementation ignores the event flags.
43 void MenuModel::ActivatedAt(int index, int event_flags) { 45 void MenuModel::ActivatedAt(int index, int event_flags) {
44 ActivatedAt(index); 46 ActivatedAt(index);
45 } 47 }
46 48
47 } // namespace ui 49 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698