root/ui/views/controls/menu/menu_listener.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// 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_MENU_MENU_LISTENER_H_
#define UI_VIEWS_CONTROLS_MENU_MENU_LISTENER_H_

#include "ui/views/views_export.h"

namespace views {

// An interface for clients that want a notification when a menu is opened.
class VIEWS_EXPORT MenuListener {
 public:
  MenuListener();

  // This will be called after the menu has actually opened.
  virtual void OnMenuOpened() = 0;

 protected:
  virtual ~MenuListener();
};

}  // namespace views

#endif  // UI_VIEWS_CONTROLS_MENU_MENU_LISTENER_H_

/* [<][>][^][v][top][bottom][index][help] */