Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / base / ime / dummy_input_method.cc
blob700e793dd81f66e0fcf392ad9ebc4cdfe42c0528
1 // Copyright 2013 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 #include "ui/base/ime/dummy_input_method.h"
7 namespace ui {
9 DummyInputMethod::DummyInputMethod() {
12 DummyInputMethod::~DummyInputMethod() {
15 void DummyInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {
18 void DummyInputMethod::Init(bool focused) {
21 void DummyInputMethod::OnFocus() {
24 void DummyInputMethod::OnBlur() {
27 bool DummyInputMethod::OnUntranslatedIMEMessage(const base::NativeEvent& event,
28 NativeEventResult* result) {
29 return false;
32 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
35 void DummyInputMethod::DetachTextInputClient(TextInputClient* client) {
38 TextInputClient* DummyInputMethod::GetTextInputClient() const {
39 return NULL;
42 bool DummyInputMethod::DispatchKeyEvent(const ui::KeyEvent& event) {
43 return false;
46 void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) {
49 void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) {
52 void DummyInputMethod::CancelComposition(const TextInputClient* client) {
55 void DummyInputMethod::OnInputLocaleChanged() {
58 std::string DummyInputMethod::GetInputLocale() {
59 return std::string();
62 bool DummyInputMethod::IsActive() {
63 return true;
66 TextInputType DummyInputMethod::GetTextInputType() const {
67 return TEXT_INPUT_TYPE_NONE;
70 TextInputMode DummyInputMethod::GetTextInputMode() const {
71 return TEXT_INPUT_MODE_DEFAULT;
74 int DummyInputMethod::GetTextInputFlags() const {
75 return 0;
78 bool DummyInputMethod::CanComposeInline() const {
79 return true;
82 bool DummyInputMethod::IsCandidatePopupOpen() const {
83 return false;
86 void DummyInputMethod::ShowImeIfNeeded() {
89 void DummyInputMethod::AddObserver(InputMethodObserver* observer) {
92 void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) {
95 } // namespace ui