Chromium Code Reviews| Index: ppapi/cpp/text_input_controller.h |
| diff --git a/ppapi/cpp/text_input_controller.h b/ppapi/cpp/text_input_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0f4724da6af86ecea99f34463da54417ae8995f3 |
| --- /dev/null |
| +++ b/ppapi/cpp/text_input_controller.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
dmichael (off chromium)
2013/07/25 22:08:14
nit: 2013 on new files
Seigo Nonaka
2013/07/26 17:40:41
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef PPAPI_CPP_TEXT_INPUT_CONTROLLER_H_ |
| +#define PPAPI_CPP_TEXT_INPUT_CONTROLLER_H_ |
| + |
| +#include <string> |
| + |
| +#include "ppapi/c/ppb_text_input_controller.h" |
| +#include "ppapi/cpp/instance_handle.h" |
| + |
| +namespace pp { |
| + |
| +class Rect; |
| +class Instance; |
| + |
| +class TextInputController { |
|
dmichael (off chromium)
2013/07/25 22:08:14
Please document this class with appropriate doxyge
Seigo Nonaka
2013/07/26 17:40:41
Sure, roughly added in this CL and will follow up
|
| + public: |
| + explicit TextInputController(const InstanceHandle& instance); |
| + ~TextInputController(); |
| + |
| + void SetTextInputType(PP_TextInput_Type type); |
| + void UpdateCaretPosition(const Rect& caret); |
| + void CancelCompositionText(); |
| + void UpdateSurroundingText(const std::string& text, |
| + uint32_t caret, uint32_t anchor); |
|
dmichael (off chromium)
2013/07/25 22:08:14
nit: in declarations, put all the arguments on the
Seigo Nonaka
2013/07/26 17:40:41
Done.
|
| + |
| + private: |
| + InstanceHandle instance_; |
| +}; |
| + |
| +} // namespace pp |
| + |
| +#endif // PPAPI_CPP_TEXT_INPUT_CONTROLLER_H_ |