| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_CONTROLS_MENU_INSERTION_DELEGATE_H_ | |
| 6 #define UI_VIEWS_CONTROLS_MENU_INSERTION_DELEGATE_H_ | |
| 7 | |
| 8 namespace views { | |
| 9 | |
| 10 class MenuInsertionDelegate { | |
| 11 public: | |
| 12 // Returns the index to insert items into the menu at. | |
| 13 virtual int GetInsertionIndex(HMENU native_menu) = 0; | |
| 14 | |
| 15 protected: | |
| 16 virtual ~MenuInsertionDelegate() {} | |
| 17 }; | |
| 18 | |
| 19 } // namespace views | |
| 20 | |
| 21 #endif // UI_VIEWS_CONTROLS_MENU_INSERTION_DELEGATE_H_ | |
| OLD | NEW |