OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef APP_MENUS_MENU_MODEL_H_ | 5 #ifndef APP_MENUS_MENU_MODEL_H_ |
6 #define APP_MENUS_MENU_MODEL_H_ | 6 #define APP_MENUS_MENU_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "gfx/native_widget_types.h" | 11 #include "gfx/native_widget_types.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Retrieves the model and index that contains a specific command id. Returns | 117 // Retrieves the model and index that contains a specific command id. Returns |
118 // true if an item with the specified command id is found. |model| is inout, | 118 // true if an item with the specified command id is found. |model| is inout, |
119 // and specifies the model to start searching from. | 119 // and specifies the model to start searching from. |
120 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model, | 120 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model, |
121 int* index); | 121 int* index); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace | 124 } // namespace |
125 | 125 |
126 #endif // APP_MENUS_MENU_MODEL_H_ | 126 #endif // APP_MENUS_MENU_MODEL_H_ |
OLD | NEW |