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

Side by Side Diff: ppapi/cpp/dev/text_input_dev.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: 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
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 #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
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
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/text_input_dev.h ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698