Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / base / ime / dummy_text_input_client.h
blob8be329620e3d16dc98a85772b43ff85a8e542788
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 #ifndef UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
8 #include "ui/base/ime/text_input_client.h"
10 namespace ui {
12 // Dummy implementation of TextInputClient. All functions do nothing.
13 class DummyTextInputClient : public TextInputClient {
14 public:
15 DummyTextInputClient();
16 explicit DummyTextInputClient(TextInputType text_input_type);
17 ~DummyTextInputClient() override;
19 // Overriden from TextInputClient.
20 void SetCompositionText(const CompositionText& composition) override;
21 void ConfirmCompositionText() override;
22 void ClearCompositionText() override;
23 void InsertText(const base::string16& text) override;
24 void InsertChar(base::char16 ch, int flags) override;
25 gfx::NativeWindow GetAttachedWindow() const override;
26 TextInputType GetTextInputType() const override;
27 TextInputMode GetTextInputMode() const override;
28 int GetTextInputFlags() const override;
29 bool CanComposeInline() const override;
30 gfx::Rect GetCaretBounds() const override;
31 bool GetCompositionCharacterBounds(uint32 index,
32 gfx::Rect* rect) const override;
33 bool HasCompositionText() const override;
34 bool GetTextRange(gfx::Range* range) const override;
35 bool GetCompositionTextRange(gfx::Range* range) const override;
36 bool GetSelectionRange(gfx::Range* range) const override;
37 bool SetSelectionRange(const gfx::Range& range) override;
38 bool DeleteRange(const gfx::Range& range) override;
39 bool GetTextFromRange(const gfx::Range& range,
40 base::string16* text) const override;
41 void OnInputMethodChanged() override;
42 bool ChangeTextDirectionAndLayoutAlignment(
43 base::i18n::TextDirection direction) override;
44 void ExtendSelectionAndDelete(size_t before, size_t after) override;
45 void EnsureCaretInRect(const gfx::Rect& rect) override;
46 void OnCandidateWindowShown() override;
47 void OnCandidateWindowUpdated() override;
48 void OnCandidateWindowHidden() override;
49 bool IsEditCommandEnabled(int command_id) override;
50 void SetEditCommandForNextKeyEvent(int command_id) override;
52 TextInputType text_input_type_;
54 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
57 } // namespace ui
59 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_