Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: ppapi/cpp/text_input_controller.h

Issue 18671004: PPAPI: Move IMEInputEvent and TextInput to stable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nitpick Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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.
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_TEXT_INPUT_CONTROLLER_H_
6 #define PPAPI_CPP_TEXT_INPUT_CONTROLLER_H_
7
8 #include <string>
9
10 #include "ppapi/c/ppb_text_input_controller.h"
11 #include "ppapi/cpp/instance_handle.h"
12
13 namespace pp {
14
15 class Rect;
16 class Instance;
17
18 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
19 public:
20 explicit TextInputController(const InstanceHandle& instance);
21 ~TextInputController();
22
23 void SetTextInputType(PP_TextInput_Type type);
24 void UpdateCaretPosition(const Rect& caret);
25 void CancelCompositionText();
26 void UpdateSurroundingText(const std::string& text,
27 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.
28
29 private:
30 InstanceHandle instance_;
31 };
32
33 } // namespace pp
34
35 #endif // PPAPI_CPP_TEXT_INPUT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698