Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4830)

Unified Diff: chrome/renderer/custom_menu_listener.h

Issue 5639004: Implement a useful context menu for the blocked plug-in frame:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/custom_menu_listener.h
===================================================================
--- chrome/renderer/custom_menu_listener.h (revision 0)
+++ chrome/renderer/custom_menu_listener.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_CUSTOM_MENU_LISTENER_H_
+#define CHROME_RENDERER_CUSTOM_MENU_LISTENER_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_CUSTOM_MENU_LISTENER_H_
+
Property changes on: chrome/renderer/custom_menu_listener.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698