summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/menu/native_menu_host.h
blob: 789f6f6c4c5e46cf5437bf8538deffaac83bd4f8 (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
32
33
34
// 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 UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_
#define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_
#pragma once

#include "ui/gfx/native_widget_types.h"

namespace views {

class NativeWidget;

namespace internal {
class NativeMenuHostDelegate;
}

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

  static NativeMenuHost* CreateNativeMenuHost(
      internal::NativeMenuHostDelegate* delegate);

  // Starts capturing input events.
  virtual void StartCapturing() = 0;

  virtual NativeWidget* AsNativeWidget() = 0;
};

}  // namespace views

#endif  // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_