| OLD | NEW | 
|   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 #include "ppapi/cpp/dev/text_input_dev.h" |   5 #include "ppapi/cpp/dev/text_input_dev.h" | 
|   6  |   6  | 
|   7 #include "ppapi/cpp/instance.h" |   7 #include "ppapi/cpp/instance.h" | 
|   8 #include "ppapi/cpp/module_impl.h" |   8 #include "ppapi/cpp/module_impl.h" | 
|   9 #include "ppapi/cpp/rect.h" |   9 #include "ppapi/cpp/rect.h" | 
|  10  |  10  | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
|  33 } |  33 } | 
|  34  |  34  | 
|  35 void TextInput_Dev::UpdateCaretPosition(const Rect& caret, |  35 void TextInput_Dev::UpdateCaretPosition(const Rect& caret, | 
|  36                                         const Rect& bounding_box) { |  36                                         const Rect& bounding_box) { | 
|  37   if (!has_interface<PPB_TextInput_Dev>()) |  37   if (!has_interface<PPB_TextInput_Dev>()) | 
|  38     return; |  38     return; | 
|  39   get_interface<PPB_TextInput_Dev>()->UpdateCaretPosition( |  39   get_interface<PPB_TextInput_Dev>()->UpdateCaretPosition( | 
|  40       instance_->pp_instance(), &caret.pp_rect(), &bounding_box.pp_rect()); |  40       instance_->pp_instance(), &caret.pp_rect(), &bounding_box.pp_rect()); | 
|  41 } |  41 } | 
|  42  |  42  | 
|  43 void TextInput_Dev::ConfirmCompositionText() { |  | 
|  44   if (!has_interface<PPB_TextInput_Dev>()) |  | 
|  45     return; |  | 
|  46   get_interface<PPB_TextInput_Dev>()->ConfirmCompositionText( |  | 
|  47       instance_->pp_instance()); |  | 
|  48 } |  | 
|  49  |  | 
|  50 void TextInput_Dev::CancelCompositionText() { |  43 void TextInput_Dev::CancelCompositionText() { | 
|  51   if (!has_interface<PPB_TextInput_Dev>()) |  44   if (!has_interface<PPB_TextInput_Dev>()) | 
|  52     return; |  45     return; | 
|  53   get_interface<PPB_TextInput_Dev>()->CancelCompositionText( |  46   get_interface<PPB_TextInput_Dev>()->CancelCompositionText( | 
|  54       instance_->pp_instance()); |  47       instance_->pp_instance()); | 
|  55 } |  48 } | 
|  56  |  49  | 
|  57 }  // namespace pp |  50 }  // namespace pp | 
| OLD | NEW |