Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / ui / base / ime / dummy_text_input_client.h
blob39613028744c2e882937ca2e0a8e1c09fa14f009
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 virtual ~DummyTextInputClient();
19 // Overriden from TextInputClient.
20 virtual void SetCompositionText(const CompositionText& composition) OVERRIDE;
21 virtual void ConfirmCompositionText() OVERRIDE;
22 virtual void ClearCompositionText() OVERRIDE;
23 virtual void InsertText(const base::string16& text) OVERRIDE;
24 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE;
25 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE;
26 virtual TextInputType GetTextInputType() const OVERRIDE;
27 virtual TextInputMode GetTextInputMode() const OVERRIDE;
28 virtual bool CanComposeInline() const OVERRIDE;
29 virtual gfx::Rect GetCaretBounds() const OVERRIDE;
30 virtual bool GetCompositionCharacterBounds(uint32 index,
31 gfx::Rect* rect) const OVERRIDE;
32 virtual bool HasCompositionText() const OVERRIDE;
33 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE;
34 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE;
35 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE;
36 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE;
37 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE;
38 virtual bool GetTextFromRange(const gfx::Range& range,
39 base::string16* text) const OVERRIDE;
40 virtual void OnInputMethodChanged() OVERRIDE;
41 virtual bool ChangeTextDirectionAndLayoutAlignment(
42 base::i18n::TextDirection direction) OVERRIDE;
43 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
44 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
45 virtual void OnCandidateWindowShown() OVERRIDE;
46 virtual void OnCandidateWindowUpdated() OVERRIDE;
47 virtual void OnCandidateWindowHidden() OVERRIDE;
49 TextInputType text_input_type_;
51 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
54 } // namespace ui
56 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_