OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual std::string GetInputLocale() OVERRIDE; | 47 virtual std::string GetInputLocale() OVERRIDE; |
48 virtual bool IsActive() OVERRIDE; | 48 virtual bool IsActive() OVERRIDE; |
49 virtual bool IsCandidatePopupOpen() const OVERRIDE; | 49 virtual bool IsCandidatePopupOpen() const OVERRIDE; |
50 | 50 |
51 // Overridden from TextInputClient: | 51 // Overridden from TextInputClient: |
52 virtual void SetCompositionText( | 52 virtual void SetCompositionText( |
53 const ui::CompositionText& composition) OVERRIDE; | 53 const ui::CompositionText& composition) OVERRIDE; |
54 virtual void ConfirmCompositionText() OVERRIDE; | 54 virtual void ConfirmCompositionText() OVERRIDE; |
55 virtual void ClearCompositionText() OVERRIDE; | 55 virtual void ClearCompositionText() OVERRIDE; |
56 virtual void InsertText(const base::string16& text) OVERRIDE; | 56 virtual void InsertText(const base::string16& text) OVERRIDE; |
57 virtual void InsertChar(char16 ch, int flags) OVERRIDE; | 57 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; |
58 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | 58 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; |
59 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 59 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
60 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; | 60 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; |
61 virtual bool CanComposeInline() const OVERRIDE; | 61 virtual bool CanComposeInline() const OVERRIDE; |
62 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 62 virtual gfx::Rect GetCaretBounds() const OVERRIDE; |
63 virtual bool GetCompositionCharacterBounds(uint32 index, | 63 virtual bool GetCompositionCharacterBounds(uint32 index, |
64 gfx::Rect* rect) const OVERRIDE; | 64 gfx::Rect* rect) const OVERRIDE; |
65 virtual bool HasCompositionText() const OVERRIDE; | 65 virtual bool HasCompositionText() const OVERRIDE; |
66 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; | 66 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; |
67 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; | 67 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; |
(...skipping 29 matching lines...) Expand all Loading... |
97 scoped_ptr<HostObserver> host_observer_; | 97 scoped_ptr<HostObserver> host_observer_; |
98 | 98 |
99 const bool shared_input_method_; | 99 const bool shared_input_method_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); | 101 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace views | 104 } // namespace views |
105 | 105 |
106 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 106 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
OLD | NEW |