Chromium Code Reviews| Index: chrome/renderer/custommenulistener.h |
| =================================================================== |
| --- chrome/renderer/custommenulistener.h (revision 0) |
| +++ chrome/renderer/custommenulistener.h (revision 0) |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_RENDERER_CUSTOMMENULISTENER_H_ |
|
brettw
2010/12/08 07:20:13
We would normally name this file (and the define)
Chris Evans
2010/12/08 16:33:52
Done.
|
| +#define CHROME_RENDERER_CUSTOMMENULISTENER_H_ |
| +#pragma once |
| + |
| +// CustomMenuListener is an interface that can be registered with RenderView by |
| +// classes that wish to use custom context menus. There is a single callback, |
| +// MenuItemSelected(), which fires when a custom menu item was chosen by the |
| +// user. |
| +class CustomMenuListener { |
| + public: |
| + virtual void MenuItemSelected(unsigned id) = 0; |
| + |
| + protected: |
| + virtual ~CustomMenuListener() {} |
| +}; |
| + |
| +#endif // CHROME_RENDERER_CUSTOMMENULISTENER_H_ |
| + |
| Property changes on: chrome/renderer/custommenulistener.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |