summaryrefslogtreecommitdiffstats
path: root/views/ime/input_method_ibus.cc
Commit message (Collapse)AuthorAgeFilesLines
* views: Move ime and test directories to ui/views.tfarina@chromium.org2011-11-171-961/+0
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8581003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110399 0039d316-1c4b-4281-b951-d872f2087c98
* tiny clean-up: Rename functions to make it clear that they don't depend on Viewsyusukes@google.com2011-11-141-8/+10
| | | | | | | | | | | Added some missing #includes as well. BUG=None TEST=None Review URL: http://codereview.chromium.org/8563001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109883 0039d316-1c4b-4281-b951-d872f2087c98
* Remove fake context support.yusukes@google.com2011-11-141-80/+12
| | | | | | | | | | | | | The fake context support in views::InputMethodIBus is no longer necessary because on Chrome OS, all input method hot keys are now handled inside Chrome. On Linux, views::InputMethodIBus might be used in the future, but it will also be okay because on the OS, the panel process for IBus, /usr/share/ibus/ui/gtk/main.py, will handle all input method hot keys. BUG=chromium-os:22905 TEST=manual Review URL: http://codereview.chromium.org/8543002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109842 0039d316-1c4b-4281-b951-d872f2087c98
* Move views/ime/text_input_client.h to ui/base/ime/.yusukes@chromium.org2011-11-111-5/+5
| | | | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109583 Review URL: http://codereview.chromium.org/8509034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109608 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109583 - Move views/ime/text_input_client.h to ui/base/ime/.yusukes@google.com2011-11-111-5/+5
| | | | | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Review URL: http://codereview.chromium.org/8509034 TBR=yusukes@google.com Review URL: http://codereview.chromium.org/8491035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109586 0039d316-1c4b-4281-b951-d872f2087c98
* Move views/ime/text_input_client.h to ui/base/ime/.yusukes@google.com2011-11-111-5/+5
| | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Review URL: http://codereview.chromium.org/8509034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109583 0039d316-1c4b-4281-b951-d872f2087c98
* Add DidChangeFocus to FocusChangeListener.alicet@chromium.org2011-11-101-14/+15
| | | | | | | | | | | | | | | Rename FocusChangeListener interface to OnWillChangeFocus and OnDidChangeFocus Move location bar focus interaction from AccessibilityPaneView to ToolBarView. BUG=101940 TEST=None Review URL: http://codereview.chromium.org/8416058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109482 0039d316-1c4b-4281-b951-d872f2087c98
* Add Aura support to InputMethodIBus.yusukes@google.com2011-11-101-11/+15
| | | | | | | | | | | | | | | - Fix IBusKeyEventFromViewsKeyEvent() so the function could work fine when USE_AURA is defined. - Rename GdkKeyCodeForWindowsKeyCode() to XKeysymForWindowsKeyCode() since the function actually does not depend on Gtk/Gdk. XKeysymForWindowsKeyCode() is called in IBusKeyEventFromViewsKeyEvent() when USE_AURA is defined. - This CL is based on Peng's work at http://codereview.chromium.org/8423037. With this CL, we can use IME on Omnibox since NativeWidgetAura already has some preliminary IME support (http://codereview.chromium.org/8183011/) while RWHVA doesn't. BUG=chromium:97261 TEST=Build Chrome inside Chrome OS chroot with USE=aura, boot the OS, enable a CJK IME, and type something on Omnibox. Verify an IME preedit string appears. Review URL: http://codereview.chromium.org/8502010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109385 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes to build chrome under chroot:saintlou@chromium.org2011-10-241-0/+2
| | | | | | | | | | | | 1) Added missing headers causing compilation errors 2) Added an #ifdef to prevent the case of a dangling else{} without a preceeding if(){}. BUG=none TEST=none Review URL: http://codereview.chromium.org/8387005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106997 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate/cleanup event cracking code; single out GdkEvents; saves ~850 lines.msw@chromium.org2011-09-261-8/+7
| | | | | | | | | | | | | | | | | | | | | Move ui::NativeEvent typdefs and common functions to ui/base/events.h. Remove NativeEvent2 typedef, single out GdkEvent* uses that should be removed. Implement platform specific ui/base/[platform]/events_[platform].cc. Revise views::NativeEvent definitions (to support Aura abstraction). Consolidate Event[Type/Flags/Location]FromNative(), GetMouseWheelOffset(), etc. Remove GetRepeatCount(), GetWindowsFlags(), IsExtendedKey(), etc. Add IsMouseEvent(), KeyboardCodeFromNative(), EF_EXTENDED flag, etc. Localize GetFlagsFromGdkEvent(), move some file locals to new helpers files. Move views/touchui/touch_factory.h|cc to ui/base/touch. Stop mixing Windows mouse events' MK_*BUTTON into their wParams. BUG=93945 TEST=No build breaks (many configs...), no mouse/key behavior changes. Review URL: http://codereview.chromium.org/7942004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102815 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the issue that virtual keyboard does not show up.penghuang@chromium.org2011-08-301-1/+1
| | | | | | | | | | BUG=Virtual keyboard does not shop up on cros device TEST=Test on cros device manually Review URL: http://codereview.chromium.org/7789002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98808 0039d316-1c4b-4281-b951-d872f2087c98
* Add Unicode support to ibus_input_method.cc.yusukes@google.com2011-08-181-0/+8
| | | | | | | | | | | We should copy |character_| and |unmodified_| character values to the PengingKeyEvent object so that we can type Unicode characters (>= 0x80) even when ibus-daemon is running. BUG=None (internal bug) TEST=manually done: login, switch to the French virtual keyboard, press Shift, press More, then press √, ÷, etc. Review URL: http://codereview.chromium.org/7599022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97303 0039d316-1c4b-4281-b951-d872f2087c98
* Use input method to control visibility of virtual keyboard.penghuang@chromium.org2011-07-121-0/+1
| | | | | | | | | | BUG=None TEST=Test in Chrome OS and Linux desktop Review URL: http://codereview.chromium.org/7217008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92146 0039d316-1c4b-4281-b951-d872f2087c98
* CL for readability reviewhashimoto@chromium.org2011-07-081-1/+1
| | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7264015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91808 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize InputMethodBase after initializing the platforms.sadrul@chromium.org2011-06-301-2/+2
| | | | | | | | | | | | | InputMethodBase::Init does things (e.g. FocusedViewDidChange etc.) that can expect that the platform specific code has already been initialized. So initialize the platforms first. BUG=none TEST=none Review URL: http://codereview.chromium.org/7281025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91126 0039d316-1c4b-4281-b951-d872f2087c98
* Add character compositionhashimoto@chromium.org2011-06-221-60/+76
| | | | | | | | | | | Implemented character composition from key strokes starting with dead keys or compose key BUG=chromium-os:13882, chromium-os:15925 TEST= Review URL: http://codereview.chromium.org/6979023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89948 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build error with latest ibus.yusukes@google.com2011-06-211-6/+2
| | | | | | | | | | BUG=build error with latest ibus TEST=Linux desktop Review URL: http://codereview.chromium.org/7206024 Patch from Peng Huang <penghuang@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89801 0039d316-1c4b-4281-b951-d872f2087c98
* Fix to make InputMethodIBus usable on every ChromeOS device (even without ↵hashimoto@chromium.org2011-05-241-0/+23
| | | | | | | | | | | | | | TouchUI) Add switch "--enable-inputmethod-ibus" to enable InputMethodIBus on ChromeOS Modify gyp files to link IBus BUG=chromium-os:15566 TEST=manually Review URL: http://codereview.chromium.org/7004029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86390 0039d316-1c4b-4281-b951-d872f2087c98
* Do not handle Enable and Disable signals of IBusInputContext.penghuang@chromium.org2011-05-181-22/+1
| | | | | | | | | | | | | | | Becasue Enable and Disable are for indicating if an IBusInputContext is associated with an input method engine and the engine is active. So InputMethodIBus should not use them to decide if the input method system is enabled or not. BUG=None TEST=Manually Review URL: http://codereview.chromium.org/6975013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85718 0039d316-1c4b-4281-b951-d872f2087c98
* InputMethodIBus::IsActive should return true, if context_ is not NULL.penghuang@chromium.org2011-05-161-1/+1
| | | | | | | | | | | | | RHWVV will disable inpput method support in webkit by host_->SetInputMethodActive(false), if InputMethodIBus::IsActive() returns false. And then webkit will not notify chrome any change of input (RHWVV::ImeUpdateTextInputState() will not be called), and text_input_type_ will not be changed and the keyboard events will not be sent to ibus too. So ibus will not be enabled by keyboard events for ever. BUG=sometime input method does not work in web page TEST=manually Review URL: http://codereview.chromium.org/7013057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85499 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor RenderWidgetHostViewViews to use the new input method API for Views.suzhe@google.com2011-04-011-0/+998
This CL also fixes some issues related to NULL host_ pointer in the original code. Hope the fixes are correct. Another side effect of this CL is: it converts views::KeyEvent to NativeWebKeyboardEvent by using the conversion table of Views instead of WebInputEventFactory provided by WebKit. See bug 54315. BUG=54315 BUG=75003 TEST=none Review URL: http://codereview.chromium.org/6713083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80238 0039d316-1c4b-4281-b951-d872f2087c98