| 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 #ifndef UI_BASE_MODELS_MENU_MODEL_H_ | 5 #ifndef UI_BASE_MODELS_MENU_MODEL_H_ |
| 6 #define UI_BASE_MODELS_MENU_MODEL_H_ | 6 #define UI_BASE_MODELS_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 "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Font; | 16 class Font; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace ui { | 19 namespace ui { |
| 20 | 20 |
| 21 class Accelerator; | 21 class Accelerator; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Retrieves the model and index that contains a specific command id. Returns | 119 // Retrieves the model and index that contains a specific command id. Returns |
| 120 // true if an item with the specified command id is found. |model| is inout, | 120 // true if an item with the specified command id is found. |model| is inout, |
| 121 // and specifies the model to start searching from. | 121 // and specifies the model to start searching from. |
| 122 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model, | 122 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model, |
| 123 int* index); | 123 int* index); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace ui | 126 } // namespace ui |
| 127 | 127 |
| 128 #endif // UI_BASE_MODELS_MENU_MODEL_H_ | 128 #endif // UI_BASE_MODELS_MENU_MODEL_H_ |
| OLD | NEW |