summaryrefslogtreecommitdiffstats
path: root/mojo/examples/keyboard/keyboard_delegate.h
blob: bf35fc6ad92dae59a60380f65bdfa8fcfa0884dd (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
// Copyright 2014 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 MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_
#define MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_

#include "base/basictypes.h"

namespace mojo {
namespace examples {

class KeyboardDelegate {
 public:
  KeyboardDelegate() {}

  virtual void OnKeyPressed(int key_code, int event_flags) = 0;

 protected:
  virtual ~KeyboardDelegate() {}
};

}  // namespace examples
}  // namespace mojo

#endif  // MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_