OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_text_input_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_text_input_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/base/ime/text_input_type.h" | 8 #include "ui/base/ime/text_input_type.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 gfx::Rect(caret.point.x, caret.point.y, | 54 gfx::Rect(caret.point.x, caret.point.y, |
55 caret.size.width, caret.size.height), | 55 caret.size.width, caret.size.height), |
56 gfx::Rect(bounding_box.point.x, bounding_box.point.y, | 56 gfx::Rect(bounding_box.point.x, bounding_box.point.y, |
57 bounding_box.size.width, bounding_box.size.height)); | 57 bounding_box.size.width, bounding_box.size.height)); |
58 } | 58 } |
59 | 59 |
60 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) { | 60 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) { |
61 instance_->delegate()->PluginRequestedCancelComposition(instance_); | 61 instance_->delegate()->PluginRequestedCancelComposition(instance_); |
62 } | 62 } |
63 | 63 |
| 64 void PPB_TextInput_Impl::SelectionChanged(PP_Instance instance) { |
| 65 instance_->SelectionChanged(); |
| 66 } |
| 67 |
| 68 void PPB_TextInput_Impl::UpdateSurroundingText(PP_Instance instance, |
| 69 const char* text, |
| 70 uint32_t caret, |
| 71 uint32_t anchor) { |
| 72 instance_->UpdateSurroundingText(text, caret, anchor); |
| 73 } |
| 74 |
| 75 |
64 } // namespace ppapi | 76 } // namespace ppapi |
65 } // namespace webkit | 77 } // namespace webkit |
OLD | NEW |