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

Side by Side Diff: ppapi/cpp/dev/text_input_dev.h

Issue 7978019: Additional update on Pepper IME API and boilerplate thunk/proxy implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed PPB_TextInput_Dev::ConfirmCompositionText. Created 9 years, 2 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
« no previous file with comments | « ppapi/cpp/dev/ime_input_event_dev.cc ('k') | ppapi/cpp/dev/text_input_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_
6 #define PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ 6 #define PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_text_input_dev.h" 8 #include "ppapi/c/dev/ppb_text_input_dev.h"
9 9
10 /// @file 10 /// @file
11 /// This file defines the API for controlling text input methods. 11 /// This file defines the API for controlling text input methods.
12 namespace pp { 12 namespace pp {
13 13
14 class Instance; 14 class Instance;
15 class Rect; 15 class Rect;
16 16
17 class TextInput_Dev { 17 class TextInput_Dev {
18 public: 18 public:
19 explicit TextInput_Dev(Instance* instance); 19 explicit TextInput_Dev(Instance* instance);
20 virtual ~TextInput_Dev(); 20 virtual ~TextInput_Dev();
21 21
22 void SetTextInputType(PP_TextInput_Type type); 22 void SetTextInputType(PP_TextInput_Type type);
23 void UpdateCaretPosition(const Rect& caret, const Rect& bounding_box); 23 void UpdateCaretPosition(const Rect& caret, const Rect& bounding_box);
24 void ConfirmCompositionText();
25 void CancelCompositionText(); 24 void CancelCompositionText();
26 25
27 private: 26 private:
28 Instance* instance_; 27 Instance* instance_;
29 }; 28 };
30 29
31 } // namespace pp 30 } // namespace pp
32 31
33 #endif // PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_ 32 #endif // PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/ime_input_event_dev.cc ('k') | ppapi/cpp/dev/text_input_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698