Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ | |
| 6 #define PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ | |
| 7 | |
| 8 #include "ppapi/c/dev/ppb_text_input_dev.h" | |
| 9 | |
| 10 /// @file | |
| 11 /// This file defines the API for controlling event delivery of IME. | |
|
yzshen1
2011/09/13 06:28:34
It seems this comment is not very accurate.
kinaba
2011/09/13 09:29:01
Done.
| |
| 12 namespace pp { | |
| 13 | |
| 14 class Instance; | |
| 15 class Rect; | |
| 16 | |
| 17 class TextInput_Dev { | |
| 18 public: | |
| 19 explicit TextInput_Dev(Instance* instance); | |
| 20 virtual ~TextInput_Dev(); | |
| 21 | |
| 22 void SetTextInputType(PP_TextInput_Type type); | |
| 23 void UpdateCaretPosition(const Rect& caret, const Rect& boundingBox); | |
|
yzshen1
2011/09/13 06:28:34
boundingBox -> bounding_box.
kinaba
2011/09/13 09:29:01
Done.
| |
| 24 void ConfirmCompositionText(); | |
| 25 void CancelCompositionText(); | |
| 26 | |
| 27 private: | |
| 28 Instance* instance_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace pp | |
| 32 | |
| 33 #endif // PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ | |
| OLD | NEW |