Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ui/base/ime/dummy_text_input_client.h

Issue 1177503003: Remove the 2-level input method system & InputMethodBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted changes for MockInputMethod. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 5 #ifndef UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
7 7
8 #include "ui/base/ime/text_input_client.h" 8 #include "ui/base/ime/text_input_client.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // Dummy implementation of TextInputClient. All functions do nothing. 12 // Dummy implementation of TextInputClient. All functions do nothing.
13 class DummyTextInputClient : public TextInputClient { 13 class DummyTextInputClient : public TextInputClient {
14 public: 14 public:
15 DummyTextInputClient(); 15 DummyTextInputClient();
16 explicit DummyTextInputClient(TextInputType text_input_type); 16 explicit DummyTextInputClient(TextInputType text_input_type);
17 ~DummyTextInputClient() override; 17 ~DummyTextInputClient() override;
18 18
19 // Overriden from TextInputClient. 19 // Overriden from TextInputClient.
20 void SetCompositionText(const CompositionText& composition) override; 20 void SetCompositionText(const CompositionText& composition) override;
21 void ConfirmCompositionText() override; 21 void ConfirmCompositionText() override;
22 void ClearCompositionText() override; 22 void ClearCompositionText() override;
23 void InsertText(const base::string16& text) override; 23 void InsertText(const base::string16& text) override;
24 void InsertChar(base::char16 ch, int flags) override; 24 void InsertChar(base::char16 ch, int flags) override;
25 gfx::NativeWindow GetAttachedWindow() const override;
26 TextInputType GetTextInputType() const override; 25 TextInputType GetTextInputType() const override;
27 TextInputMode GetTextInputMode() const override; 26 TextInputMode GetTextInputMode() const override;
28 int GetTextInputFlags() const override; 27 int GetTextInputFlags() const override;
29 bool CanComposeInline() const override; 28 bool CanComposeInline() const override;
30 gfx::Rect GetCaretBounds() const override; 29 gfx::Rect GetCaretBounds() const override;
31 bool GetCompositionCharacterBounds(uint32 index, 30 bool GetCompositionCharacterBounds(uint32 index,
32 gfx::Rect* rect) const override; 31 gfx::Rect* rect) const override;
33 bool HasCompositionText() const override; 32 bool HasCompositionText() const override;
34 bool GetTextRange(gfx::Range* range) const override; 33 bool GetTextRange(gfx::Range* range) const override;
35 bool GetCompositionTextRange(gfx::Range* range) const override; 34 bool GetCompositionTextRange(gfx::Range* range) const override;
(...skipping 11 matching lines...) Expand all
47 void SetEditCommandForNextKeyEvent(int command_id) override; 46 void SetEditCommandForNextKeyEvent(int command_id) override;
48 47
49 TextInputType text_input_type_; 48 TextInputType text_input_type_;
50 49
51 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); 50 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
52 }; 51 };
53 52
54 } // namespace ui 53 } // namespace ui
55 54
56 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 55 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698