1 // Copyright (c) 2012 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_BUTTON_MENU_BUTTON_LISTENER_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_LISTENER_H_ 7 8 #include "ui/views/views_export.h" 9 10 namespace gfx { 11 class Point; 12 } 13 14 namespace views { 15 16 class View; 17 18 // An interface implemented by an object to let it know that a menu button was 19 // clicked. 20 class VIEWS_EXPORT MenuButtonListener { 21 public: 22 virtual void OnMenuButtonClicked(View* source, const gfx::Point& point) = 0; 23 24 protected: 25 virtual ~MenuButtonListener() {} 26 }; 27 28 } // namespace views 29 30 #endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_LISTENER_H_ 31