OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_RENDERER_CUSTOM_MENU_LISTENER_H_ | |
6 #define CHROME_RENDERER_CUSTOM_MENU_LISTENER_H_ | |
7 #pragma once | |
8 | |
9 // CustomMenuListener is an interface that can be registered with RenderView by | |
10 // classes that wish to use custom context menus. There is a single callback, | |
11 // MenuItemSelected(), which fires when a custom menu item was chosen by the | |
12 // user. | |
13 class CustomMenuListener { | |
14 public: | |
15 virtual void MenuItemSelected(unsigned id) = 0; | |
16 | |
17 protected: | |
18 virtual ~CustomMenuListener() {} | |
19 }; | |
20 | |
21 #endif // CHROME_RENDERER_CUSTOM_MENU_LISTENER_H_ | |
22 | |
OLD | NEW |