Remove the RenderProcessHost observer and attach the WebContentsObserver earlier...
[chromium-blink-merge.git] / mojo / examples / keyboard / keyboard_delegate.h
blobbf35fc6ad92dae59a60380f65bdfa8fcfa0884dd
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_
6 #define MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_
8 #include "base/basictypes.h"
10 namespace mojo {
11 namespace examples {
13 class KeyboardDelegate {
14 public:
15 KeyboardDelegate() {}
17 virtual void OnKeyPressed(int key_code, int event_flags) = 0;
19 protected:
20 virtual ~KeyboardDelegate() {}
23 } // namespace examples
24 } // namespace mojo
26 #endif // MOJO_EXAMPLES_KEYBOARD_KEYBOARD_DELEGATE_H_