| OLD | NEW |
| 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
| 6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "gfx/native_widget_types.h" | 9 #include "gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // item was selected, the user navigated to a next or previous menu, or | 57 // item was selected, the user navigated to a next or previous menu, or |
| 58 // nothing. | 58 // nothing. |
| 59 virtual MenuAction GetMenuAction() const = 0; | 59 virtual MenuAction GetMenuAction() const = 0; |
| 60 | 60 |
| 61 // Add a listener to receive a callback when the menu opens. | 61 // Add a listener to receive a callback when the menu opens. |
| 62 virtual void AddMenuListener(MenuListener* listener) = 0; | 62 virtual void AddMenuListener(MenuListener* listener) = 0; |
| 63 | 63 |
| 64 // Remove a menu listener. | 64 // Remove a menu listener. |
| 65 virtual void RemoveMenuListener(MenuListener* listener) = 0; | 65 virtual void RemoveMenuListener(MenuListener* listener) = 0; |
| 66 | 66 |
| 67 // Sets the minimum width of the menu. |
| 68 virtual void SetMinimumWidth(int width) = 0; |
| 69 |
| 67 // Creates the appropriate instance of this wrapper for the current platform. | 70 // Creates the appropriate instance of this wrapper for the current platform. |
| 68 static MenuWrapper* CreateWrapper(Menu2* menu); | 71 static MenuWrapper* CreateWrapper(Menu2* menu); |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 } // namespace views | 74 } // namespace views |
| 72 | 75 |
| 73 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ | 76 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
| OLD | NEW |