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

Side by Side Diff: webkit/plugins/ppapi/ppb_text_input_impl.cc

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: 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 #include "webkit/plugins/ppapi/ppb_text_input_impl.h"
6
7 #include "base/logging.h"
8 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
yzshen1 2011/09/22 19:24:00 Please order the includes.
kinaba 2011/09/27 02:49:27 Done.
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h"
10
11 namespace webkit {
12 namespace ppapi {
13
14 PPB_TextInput_Impl::PPB_TextInput_Impl(PluginInstance* instance)
15 : instance_(instance) {
16 }
17
18 ::ppapi::thunk::PPB_TextInput_FunctionAPI*
19 PPB_TextInput_Impl::AsPPB_TextInput_FunctionAPI() {
20 return this;
21 }
22
23 COMPILE_ASSERT(int(WebKit::WebTextInputTypeNone) == \
24 int(PP_TEXTINPUT_TYPE_NONE), mismatching_enums);
yzshen1 2011/09/22 19:24:00 4 space indent
kinaba 2011/09/27 02:49:27 Done.
25 COMPILE_ASSERT(int(WebKit::WebTextInputTypeText) == \
26 int(PP_TEXTINPUT_TYPE_TEXT), mismatching_enums);
27 COMPILE_ASSERT(int(WebKit::WebTextInputTypePassword) == \
28 int(PP_TEXTINPUT_TYPE_PASSWORD), mismatching_enums);
29 COMPILE_ASSERT(int(WebKit::WebTextInputTypeSearch) == \
30 int(PP_TEXTINPUT_TYPE_SEARCH), mismatching_enums);
31 COMPILE_ASSERT(int(WebKit::WebTextInputTypeEmail) == \
32 int(PP_TEXTINPUT_TYPE_EMAIL), mismatching_enums);
33 COMPILE_ASSERT(int(WebKit::WebTextInputTypeNumber) == \
34 int(PP_TEXTINPUT_TYPE_NUMBER), mismatching_enums);
35 COMPILE_ASSERT(int(WebKit::WebTextInputTypeTelephone) == \
36 int(PP_TEXTINPUT_TYPE_TELEPHONE), mismatching_enums);
37 COMPILE_ASSERT(int(WebKit::WebTextInputTypeURL) == \
38 int(PP_TEXTINPUT_TYPE_URL), mismatching_enums);
39
40 void PPB_TextInput_Impl::SetTextInputType(PP_Instance instance,
41 PP_TextInput_Type type) {
42 // TODO(kinaba) the implementation is split to another CL for reviewing.
43 NOTIMPLEMENTED();
44 }
45
46 void PPB_TextInput_Impl::UpdateCaretPosition(PP_Instance instance,
47 const PP_Rect& caret,
48 const PP_Rect& boundingBox) {
49 // TODO(kinaba) the implementation is split to another CL for reviewing.
50 NOTIMPLEMENTED();
51 }
52
53 void PPB_TextInput_Impl::ConfirmCompositionText(PP_Instance instance) {
54 // TODO(kinaba) the implementation is split to another CL for reviewing.
55 NOTIMPLEMENTED();
56 }
57
58 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) {
59 // TODO(kinaba) the implementation is split to another CL for reviewing.
60 NOTIMPLEMENTED();
61 }
62
63 } // namespace ppapi
64 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698