summaryrefslogtreecommitdiff
path: root/chromium/ui/base/ime/linux/fake_input_method_context_factory.h
blob: 12bb7661b1ea88f64c0b292e6a422736a367aee9 (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
// Copyright 2013 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_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_
#define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_

#include "base/macros.h"
#include "ui/base/ime/linux/linux_input_method_context_factory.h"

namespace ui {

// An implementation of LinuxInputMethodContextFactory, which creates and
// returns FakeInputMethodContext's.
class UI_BASE_IME_LINUX_EXPORT FakeInputMethodContextFactory
    : public LinuxInputMethodContextFactory {
 public:
  FakeInputMethodContextFactory();

  // LinuxInputMethodContextFactory:
  std::unique_ptr<LinuxInputMethodContext> CreateInputMethodContext(
      LinuxInputMethodContextDelegate* delegate,
      bool is_simple) const override;

 private:
  DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextFactory);
};

}  // namespace ui

#endif  // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_