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

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

Issue 8769003: Pepper IME API for surrounding text retrieval. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge master. Created 8 years, 9 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_text_input_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/plugins/ppapi/ppb_text_input_impl.h" 5 #include "webkit/plugins/ppapi/ppb_text_input_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/ime/text_input_type.h" 8 #include "ui/base/ime/text_input_type.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 gfx::Rect(caret.point.x, caret.point.y, 54 gfx::Rect(caret.point.x, caret.point.y,
55 caret.size.width, caret.size.height), 55 caret.size.width, caret.size.height),
56 gfx::Rect(bounding_box.point.x, bounding_box.point.y, 56 gfx::Rect(bounding_box.point.x, bounding_box.point.y,
57 bounding_box.size.width, bounding_box.size.height)); 57 bounding_box.size.width, bounding_box.size.height));
58 } 58 }
59 59
60 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) { 60 void PPB_TextInput_Impl::CancelCompositionText(PP_Instance instance) {
61 instance_->delegate()->PluginRequestedCancelComposition(instance_); 61 instance_->delegate()->PluginRequestedCancelComposition(instance_);
62 } 62 }
63 63
64 void PPB_TextInput_Impl::SelectionChanged(PP_Instance instance) {
65 instance_->SelectionChanged();
66 }
67
68 void PPB_TextInput_Impl::UpdateSurroundingText(PP_Instance instance,
69 const char* text,
70 uint32_t caret,
71 uint32_t anchor) {
72 instance_->UpdateSurroundingText(text, caret, anchor);
73 }
74
75
64 } // namespace ppapi 76 } // namespace ppapi
65 } // namespace webkit 77 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_text_input_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698