Commit 65427246 authored by kochi@chromium.org's avatar kochi@chromium.org

Set default text input type to NONE for NaCl apps on OSX

This is a temporary solution for Lion key-repeat + popup issue.
When Pepper IME API is exposed to NaCl apps, each apps should
set the text input type apporpriately.

BUG=chromium:102808
TEST=Run any NaCl app on Lion and hold 'a' key for a while to see the variant selector popup will not show up.


Review URL: http://codereview.chromium.org/8815008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113571 0039d316-1c4b-4281-b951-d872f2087c98
parent de97f62a
......@@ -67,6 +67,7 @@
#include "ppapi/cpp/dev/printing_dev.h"
#include "ppapi/cpp/dev/scrollbar_dev.h"
#include "ppapi/cpp/dev/selection_dev.h"
#include "ppapi/cpp/dev/text_input_dev.h"
#include "ppapi/cpp/dev/url_util_dev.h"
#include "ppapi/cpp/dev/widget_client_dev.h"
#include "ppapi/cpp/dev/zoom_dev.h"
......@@ -579,6 +580,16 @@ bool Plugin::Init(BrowserInterface* browser_interface,
char* argv[]) {
PLUGIN_PRINTF(("Plugin::Init (instance=%p)\n", static_cast<void*>(this)));
#ifdef NACL_OSX
// TODO(kochi): For crbug.com/102808, this is a stopgap solution for Lion
// until we expose IME API to .nexe. This disables any IME interference
// against key inputs, so you cannot use off-the-spot IME input for NaCl apps.
// This makes discrepancy among platforms and therefore we should remove
// this hack when IME API is made available.
// The default for non-Mac platforms is still off-the-spot IME mode.
pp::TextInput_Dev(this).SetTextInputType(PP_TEXTINPUT_TYPE_NONE);
#endif
browser_interface_ = browser_interface;
// Remember the embed/object argn/argv pairs.
argn_ = new(std::nothrow) char*[argc];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment