Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |