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_MENU_MENU_LISTENER_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_LISTENER_H_ 7 8 #include "ui/views/views_export.h" 9 10 namespace views { 11 12 // An interface for clients that want a notification when a menu is opened. 13 class VIEWS_EXPORT MenuListener { 14 public: 15 MenuListener(); 16 17 // This will be called after the menu has actually opened. 18 virtual void OnMenuOpened() = 0; 19 20 protected: 21 virtual ~MenuListener(); 22 }; 23 24 } // namespace views 25 26 #endif // UI_VIEWS_CONTROLS_MENU_MENU_LISTENER_H_ 27