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

Unified Diff: ui/views/controls/button/menu_button_listener.h

Issue 9693022: views: Rename MenuButtonDelegate::RunMenu to something more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: menu_button_listener.h Created 8 years, 9 months 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 | « ui/views/controls/button/menu_button_delegate.h ('k') | ui/views/examples/menu_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/menu_button_listener.h
diff --git a/ui/views/controls/button/menu_button_listener.h b/ui/views/controls/button/menu_button_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..91d999ab596f69714fb150f3f8d37a8723cf2c72
--- /dev/null
+++ b/ui/views/controls/button/menu_button_listener.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 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 UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_LISTENER_H_
+#define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_LISTENER_H_
+#pragma once
+
+#include "ui/views/views_export.h"
+
+namespace gfx {
+class Point;
+}
+
+namespace views {
+
+class View;
+
+// An interface implemented by an object to let it know that a menu button was
+// clicked.
+class VIEWS_EXPORT MenuButtonListener {
+ public:
+ virtual void OnMenuButtonClicked(View* source, const gfx::Point& point) = 0;
+
+ protected:
+ virtual ~MenuButtonListener() {}
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_LISTENER_H_
« no previous file with comments | « ui/views/controls/button/menu_button_delegate.h ('k') | ui/views/examples/menu_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698