diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 18:59:15 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 18:59:15 +0000 |
commit | 877c69eca972ab2c9ce2022e9987c9e7956a5c94 (patch) | |
tree | c01054374195aecfde5f06f7fa747845e64bcc09 /ppapi/shared_impl | |
parent | e24b60976bba788e40c3227efb25f08b5ad7ead3 (diff) | |
download | chromium_src-877c69eca972ab2c9ce2022e9987c9e7956a5c94.zip chromium_src-877c69eca972ab2c9ce2022e9987c9e7956a5c94.tar.gz chromium_src-877c69eca972ab2c9ce2022e9987c9e7956a5c94.tar.bz2 |
Make the text input not require round-trips when the text is updated.
In the proxied version, this requests the text in-process avoiding the round trip. This also makes the requesting not reenter the plugin for in-process plugins.
TEST=
BUG=123020
Review URL: https://chromiumcodereview.appspot.com/10053017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl')
-rw-r--r-- | ppapi/shared_impl/ppb_instance_shared.cc | 3 | ||||
-rw-r--r-- | ppapi/shared_impl/ppb_instance_shared.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/shared_impl/ppb_instance_shared.cc b/ppapi/shared_impl/ppb_instance_shared.cc index 22e263a..5a29a99 100644 --- a/ppapi/shared_impl/ppb_instance_shared.cc +++ b/ppapi/shared_impl/ppb_instance_shared.cc @@ -16,6 +16,9 @@ namespace ppapi { +// static +const int PPB_Instance_Shared::kExtraCharsForTextInput = 100; + PPB_Instance_Shared::~PPB_Instance_Shared() { } diff --git a/ppapi/shared_impl/ppb_instance_shared.h b/ppapi/shared_impl/ppb_instance_shared.h index 385d805..eed82e1 100644 --- a/ppapi/shared_impl/ppb_instance_shared.h +++ b/ppapi/shared_impl/ppb_instance_shared.h @@ -33,6 +33,11 @@ class PPAPI_SHARED_EXPORT PPB_Instance_Shared bool ValidateSetCursorParams(PP_MouseCursor_Type type, PP_Resource image, const PP_Point* hot_spot); + + // The length of text to request as a surrounding context of selection. + // For now, the value is copied from the one with render_view_impl.cc. + // TODO(kinaba) implement a way to dynamically sync the requirement. + static const int kExtraCharsForTextInput; }; } // namespace ppapi |