summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window_host_mac.h
blob: e7c26c3548295e149cdd2a6cf4d2815f4fee1035 (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
// 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_AURA_ROOT_WINDOW_HOST_MAC_H_
#define UI_AURA_ROOT_WINDOW_HOST_MAC_H_

#include "base/basictypes.h"
#include "base/event_types.h"

namespace aura {

// An interface establishing event dispatch from the Mac native window and the
// Aura host.
class RootWindowHostMacDelegate {
 public:
  RootWindowHostMacDelegate();
  virtual ~RootWindowHostMacDelegate();

  // Route events from platform code to the RootWindowHost.
  virtual void SendEvent(const base::NativeEvent& native_event) = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(RootWindowHostMacDelegate);
};

}  // namespace aura

#endif  // UI_AURA_ROOT_WINDOW_HOST_MAC_H_