| 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 #include "webkit/plugins/ppapi/ppb_text_input_impl.h" | 
 |   6  | 
 |   7 #include "base/logging.h" | 
 |   8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" | 
 |   9 #include "webkit/plugins/ppapi/ppapi_plugin_instance.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); | 
 |  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& bounding_box) { | 
 |  49   // TODO(kinaba) the implementation is split to another CL for reviewing. | 
 |  50   NOTIMPLEMENTED(); | 
 |  51 } | 
 |  52  | 
 |  53 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) { | 
 |  54   // TODO(kinaba) the implementation is split to another CL for reviewing. | 
 |  55   NOTIMPLEMENTED(); | 
 |  56 } | 
 |  57  | 
 |  58 }  // namespace ppapi | 
 |  59 }  // namespace webkit | 
| OLD | NEW |