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

Side by Side Diff: ppapi/c/dev/ppb_ime_control_dev.h

Issue 7621010: Never submit: tentative Pepper IME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: snapshot Created 9 years, 3 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) 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_C_DEV_PPB_IME_CONTROL_DEV_H_
6 #define PPAPI_C_DEV_PPB_IME_CONTROL_DEV_H_
7
8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_rect.h"
12
13 // Intentionally keep sync with WebKit::WebTextInputType defined in:
14 // third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h
15 typedef enum {
16 // Input caret is not in an editable node, no input method shall be used.
17 PP_TEXTINPUT_TYPE_NONE,
18 // Input caret is in a normal editable node, any input method can be used.
19 PP_TEXTINPUT_TYPE_TEXT,
20 // Input caret is in a password box, an input method may be used only if
21 // it's suitable for password input.
22 PP_TEXTINPUT_TYPE_PASSWORD,
23 PP_TEXTINPUT_TYPE_SEARCH,
24 PP_TEXTINPUT_TYPE_EMAIL,
25 PP_TEXTINPUT_TYPE_NUMBER,
26 PP_TEXTINPUT_TYPE_TELEPHONE,
27 PP_TEXTINPUT_TYPE_URL
28 } PP_TextInput_Type;
29 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TextInput_Type, 4);
30
31 #define PPB_IMECONTROL_DEV_INTERFACE_0_1 "PPB_IMEControl(Dev);0.1"
32 #define PPB_IMECONTROL_DEV_INTERFACE \
33 PPB_IMECONTROL_DEV_INTERFACE_0_1
34
35 struct PPB_IMEControl_Dev {
36 void (*SetTextInputType)(PP_Instance instance, PP_TextInput_Type type);
37 void (*UpdateCaretPosition)(PP_Instance instance,
38 PP_Rect caret,
39 PP_Rect boundingBox);
40 void (*ConfirmCompositionText)(PP_Instance instance);
41 void (*CancelCompositionText)(PP_Instance instance);
42 };
43
44 #endif /* PPAPI_C_DEV_PPB_IME_CONTROL_DEV_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698