summaryrefslogtreecommitdiffstats
path: root/views/ime/input_method_wayland.h
blob: 60dac30ad5144f26fff039d4ab0a82e923f7e86a (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
35
36
// 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_IME_INPUT_METHOD_WAYLAND_H_
#define VIEWS_IME_INPUT_METHOD_WAYLAND_H_
#pragma once

#include <string>

#include "views/ime/input_method_base.h"

namespace views {

class InputMethodWayland : public InputMethodBase {
 public:
  explicit InputMethodWayland(internal::InputMethodDelegate *delegate);

  virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE;
  virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
  virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
  virtual void CancelComposition(View* view) OVERRIDE;
  virtual std::string GetInputLocale() OVERRIDE;
  virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
  virtual bool IsActive() OVERRIDE;

 private:

  void ProcessKeyPressEvent(const KeyEvent& key);

  DISALLOW_COPY_AND_ASSIGN(InputMethodWayland);
};

}  // namespace views

#endif  // VIEWS_IME_INPUT_METHOD_WAYLAND_H_