OLD | NEW |
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 #include "ui/base/ime/dummy_text_input_client.h" | 5 #include "ui/base/ime/dummy_text_input_client.h" |
6 #include "ui/events/event.h" | 6 #include "ui/events/event.h" |
7 #include "ui/gfx/geometry/rect.h" | 7 #include "ui/gfx/geometry/rect.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 int DummyTextInputClient::GetTextInputFlags() const { | 60 int DummyTextInputClient::GetTextInputFlags() const { |
61 return 0; | 61 return 0; |
62 } | 62 } |
63 | 63 |
64 bool DummyTextInputClient::CanComposeInline() const { | 64 bool DummyTextInputClient::CanComposeInline() const { |
65 return false; | 65 return false; |
66 } | 66 } |
67 | 67 |
| 68 float DummyTextInputClient::GetScaleFactor() const { |
| 69 return 1.0f; |
| 70 } |
| 71 |
68 gfx::Rect DummyTextInputClient::GetCaretBounds() const { | 72 gfx::Rect DummyTextInputClient::GetCaretBounds() const { |
69 return gfx::Rect(); | 73 return gfx::Rect(); |
70 } | 74 } |
71 | 75 |
72 bool DummyTextInputClient::GetCompositionCharacterBounds( | 76 bool DummyTextInputClient::GetCompositionCharacterBounds( |
73 uint32_t index, | 77 uint32_t index, |
74 gfx::Rect* rect) const { | 78 gfx::Rect* rect) const { |
75 return false; | 79 return false; |
76 } | 80 } |
77 | 81 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 124 |
121 bool DummyTextInputClient::IsTextEditCommandEnabled( | 125 bool DummyTextInputClient::IsTextEditCommandEnabled( |
122 TextEditCommand command) const { | 126 TextEditCommand command) const { |
123 return false; | 127 return false; |
124 } | 128 } |
125 | 129 |
126 void DummyTextInputClient::SetTextEditCommandForNextKeyEvent( | 130 void DummyTextInputClient::SetTextEditCommandForNextKeyEvent( |
127 TextEditCommand command) {} | 131 TextEditCommand command) {} |
128 | 132 |
129 } // namespace ui | 133 } // namespace ui |
OLD | NEW |