summaryrefslogtreecommitdiffstats
path: root/views/controls/menu/native_menu_host_delegate.h
blob: 8baf7144f46d0ee31df551385e532bae1b6cbe94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2011 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 VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_

namespace views {
class MenuHost;
class RootView;
namespace internal {
class NativeWidgetDelegate;

class NativeMenuHostDelegate {
 public:
  virtual ~NativeMenuHostDelegate() {}

  // Called when the NativeMenuHost is being destroyed.
  virtual void OnNativeMenuHostDestroy() = 0;

  // Called when the NativeMenuHost is losing input capture.
  virtual void OnNativeMenuHostCancelCapture() = 0;

  virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0;
};

}  // namespace internal
}  // namespace views

#endif  // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_