summaryrefslogtreecommitdiffstats
path: root/views/widget
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes painting regression in classic mode. This makes the code matchsky@chromium.org2011-07-191-11/+11
| | | | | | | | | | | | | what it was earlier on (around 11ish). I think Ben ended up putting this code in the wrong place. BUG=74604 TEST=best way to reproduce on current build is run in classic mode and alt-tab between chrome and desktop windows window. Review URL: http://codereview.chromium.org/7421004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93123 0039d316-1c4b-4281-b951-d872f2087c98
* Makes sure widget is created at right size before showingsky@chromium.org2011-07-199-41/+90
| | | | | | | | | | | | | | it. Previously if we were going to maximize the window we would first create it at the restored size, then maximize it. On slower machines this could result in a noticeable relayout of the web page. BUG=11229 TEST=see bug. R=ben@chromium.org Review URL: http://codereview.chromium.org/7358005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93067 0039d316-1c4b-4281-b951-d872f2087c98
* Move debug paint flag to Widget so native widget can use the same flag.oshima@google.com2011-07-164-8/+19
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7398014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92779 0039d316-1c4b-4281-b951-d872f2087c98
* Rename InActiveChagned to OnActiveChanged to follow standard naming scheme.oshima@google.com2011-07-152-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7384017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92769 0039d316-1c4b-4281-b951-d872f2087c98
* Convert some more view methods to the ui/views style.ben@chromium.org2011-07-151-1/+1
| | | | | | | | BUG=72040 TEST=none Review URL: http://codereview.chromium.org/7349021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92705 0039d316-1c4b-4281-b951-d872f2087c98
* Add const to HasKeyboardCaptureoshima@google.com2011-07-147-7/+7
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7374006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92622 0039d316-1c4b-4281-b951-d872f2087c98
* Removes Widget from two of ViewsDelegate methods. I would have likedsky@chromium.org2011-07-142-4/+3
| | | | | | | | | | | | | | | | to remove it from all, but it's needed for the save. The reason I'm doing this is I'm changing the calling order so that the delegate won't know it's widget at the time GetSavedXXX is invoked. Turns out we really only need the widget during the save calls anyway, so this all still works. BUG=none TEST=none R=ben@chromium.org,mirandac@chromium.org Review URL: http://codereview.chromium.org/7377004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92619 0039d316-1c4b-4281-b951-d872f2087c98
* Set minimum window size on Windows.asvitkine@chromium.org2011-07-142-2/+18
| | | | | | | | | | | This involves having the GlassBrowserFrameView calculate its minimum size based on its sub-components as well as a change to NativeWidgetWin to adjust the reported minimum size by the native frame size to be consistent with the logic in NativeWidgetWin::ClientAreaSizeChanged(). BUG=9885 TEST=manual Review URL: http://codereview.chromium.org/7277093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92600 0039d316-1c4b-4281-b951-d872f2087c98
* views-desktop: Fix a couple of crashes.sadrul@chromium.org2011-07-142-4/+7
| | | | | | | | | | | | | * Setup hosting_widget_ before creating the View, because some of the steps (e.g. SetBoundsRect) expect that there is a hosting widget. * Unset capture_view_ when the captured view is destroyed. BUG=none TEST=run views-desktop, close a window, and there should be no crash. Review URL: http://codereview.chromium.org/7358007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92552 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in header file name.oshima@google.com2011-07-141-1/+1
| | | | | | | | | | TBR=nkostylev@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7372004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92544 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up FocusManageroshima@google.com2011-07-149-0/+26
| | | | | | | | | | | | | | Use Widget API to get FocusManager for native_view/window. Move FocusNatieView to native widget impl. This is necessary for NativeWidgetX BUG=none TEST=none Review URL: http://codereview.chromium.org/7351008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92497 0039d316-1c4b-4281-b951-d872f2087c98
* Move SetInitialFocus to Widgetoshima@google.com2011-07-148-55/+93
| | | | | | | | | | | | | | Create InputMethod object per Top level NativeWidgetView - use MockInputMethod when IBUS is not available for now. Call OnNativeWidgetActivationChanged when activation changed. Handle InputFocus change when activation changed. This is temp solution until we have WM in place. BUG=none TEST=none Review URL: http://codereview.chromium.org/7353009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92495 0039d316-1c4b-4281-b951-d872f2087c98
* Allow different kinds of 'desktops'.sadrul@chromium.org2011-07-131-2/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7315007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92447 0039d316-1c4b-4281-b951-d872f2087c98
* Add Widget::Observer for observing Widgets.sadrul@chromium.org2011-07-1311-15/+169
| | | | | | | | | | | | Use this new observation technique to avoid a crash in views-desktop when the active widget is closed. BUG=none TEST=Run views_desktop, close a window, click, it doesn't crash! Review URL: http://codereview.chromium.org/7342015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92415 0039d316-1c4b-4281-b951-d872f2087c98
* Skip NativeWidgetWin::LockUpdates when in aero mode to fix Gpu rendering freeze.nduca@chromium.org2011-07-131-3/+13
| | | | | | | | | BUG=85417 TEST=Open webgl sample as indicated in bug, move mouse over tab strip and confirm that the tab contents do not freeze. Review URL: http://codereview.chromium.org/7329031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92397 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt 2 at:sky@chromium.org2011-07-1310-6/+181
| | | | | | | | | | | | | | | Gets mouse capture to work for menus with pure views. As part of this I moved what was in menu_host_gtk into native_widget_gtk. Gtk supports two grab types, both mouse and key. We only want key grab when showing menus. BUG=none TEST=none TBR=ben@chromium.org Review URL: http://codereview.chromium.org/7354006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92311 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused ContainsNativeView methods.ben@chromium.org2011-07-139-34/+0
| | | | | | | | | | BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/7352001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92305 0039d316-1c4b-4281-b951-d872f2087c98
* ClearNativeFocus: Do it from widget, with appropriate native-widget ↵sadrul@chromium.org2011-07-139-12/+28
| | | | | | | | | | | implementation. BUG=none TEST=none Review URL: http://codereview.chromium.org/7353007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92303 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92252 - Gets mouse capture to work for menus with pure views. As part ↵sky@chromium.org2011-07-1210-180/+6
| | | | | | | | | | | | | | | | | | of this I moved what was in menu_host_gtk into native_widget_gtk. Gtk supports two grab types, both mouse and key. We only want key grab when showing menus. BUG=none TEST=none Review URL: http://codereview.chromium.org/7346003 TBR=sky@chromium.org Review URL: http://codereview.chromium.org/7350008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92254 0039d316-1c4b-4281-b951-d872f2087c98
* Gets mouse capture to work for menus with pure views. As part of thissky@chromium.org2011-07-1210-6/+180
| | | | | | | | | | | | | I moved what was in menu_host_gtk into native_widget_gtk. Gtk supports two grab types, both mouse and key. We only want key grab when showing menus. BUG=none TEST=none Review URL: http://codereview.chromium.org/7346003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92252 0039d316-1c4b-4281-b951-d872f2087c98
* Correct issues with NativeWidgetViews ownership.ben@chromium.org2011-07-125-46/+89
| | | | | | | | | | | | | | NativeWidgetView was owned by the view hierarchy which complicated the ownership of NativeWidgetViews since it would try to delete NativeWidgetViews from its destructor. NativeWidgetView has been changed to schedule a close when it is removed from its containing hierarchy. This may be problematic for reparenting but should do for now. We will need to finesse the add/remove API to correct this type of issue. NativeWidgetViews has been hardened in a few places that assumed they could reach up to a parent widget, even after the widget had been removed from its parent. BUG=none TEST=attached unittests should all pass for realz (verified in debugger, can be verified on linux views trybots too). Review URL: http://codereview.chromium.org/7348011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92246 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding this with the compile fixes for Linux viewsananta@chromium.org2011-07-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | | Revert 92074 - Revert 92071 - Fix a chrome browser crash which occurs when displaying the page info bubble in a ChromeFrame page. The crash occurs while dereferencing a NULL NonClientView member in the widget code. This member is only instantiated if the widget is of type InitParams::TYPE_WINDOW. ChromeFrame always instantiates as a popup window and hence this member is always NULL. Fix is to add a NULL check at the relevant places in the widget code. Fixes bug http://code.google.com/p/chromium/issues/detail?id=88960 BUG=88960 Review URL: http://codereview.chromium.org/7301028 TBR=ananta@chromium.org Review URL: http://codereview.chromium.org/7258008 TBR=ananta@chromium.org Review URL: http://codereview.chromium.org/7340007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92078 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92071 - Fix a chrome browser crash which occurs when displaying the ↵ananta@chromium.org2011-07-111-8/+4
| | | | | | | | | | | | | | | | | | | | | page info bubble in a ChromeFrame page. The crash occurs while dereferencing a NULL NonClientView member in the widget code. This member is only instantiated if the widget is of type InitParams::TYPE_WINDOW. ChromeFrame always instantiates as a popup window and hence this member is always NULL. Fix is to add a NULL check at the relevant places in the widget code. Fixes bug http://code.google.com/p/chromium/issues/detail?id=88960 BUG=88960 Review URL: http://codereview.chromium.org/7301028 TBR=ananta@chromium.org Review URL: http://codereview.chromium.org/7258008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92074 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a chrome browser crash which occurs when displaying the page info bubble ↵ananta@chromium.org2011-07-111-4/+8
| | | | | | | | | | | | | | | | | | in a ChromeFrame page. The crash occurs while dereferencing a NULL NonClientView member in the widget code. This member is only instantiated if the widget is of type InitParams::TYPE_WINDOW. ChromeFrame always instantiates as a popup window and hence this member is always NULL. Fix is to add a NULL check at the relevant places in the widget code. Fixes bug http://code.google.com/p/chromium/issues/detail?id=88960 BUG=88960 Review URL: http://codereview.chromium.org/7301028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92071 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92059 - Adds a test for parented synthetic widgets.ben@chromium.org2011-07-111-32/+6
| | | | | | | | | | | BUG=88716 TEST=none Review URL: http://codereview.chromium.org/7331021 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/7340002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92063 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a test for parented synthetic widgets.ben@chromium.org2011-07-111-6/+32
| | | | | | | | BUG=88716 TEST=none Review URL: http://codereview.chromium.org/7331021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92059 0039d316-1c4b-4281-b951-d872f2087c98
* Revert clear removal from last week. It turns out the window is green in ↵ben@chromium.org2011-07-112-2/+7
| | | | | | | | | | | | | debug builds only if the clear is not done. Weird, since I was able to see glass when I tested this earlier. Also converts one GetNativeView() check to native_widget() since they are now equivalent. BUG=none TEST=win7, glass mode, debug build, browser frame should not be green TBR=sky Review URL: http://codereview.chromium.org/7338002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92041 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NativeWidgetViews enough to run views_examples without segfaulting.rhashimoto@google.com2011-07-113-9/+19
| | | | | | | | | BUG=chromium:85585 TEST=run views_examples Review URL: http://codereview.chromium.org/7237064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92039 0039d316-1c4b-4281-b951-d872f2087c98
* Correct implementation of View::ConvertPointToScreen for the views-desktop ↵ben@chromium.org2011-07-084-6/+2
| | | | | | | | | | | | environment. Also removes the unnecessary clear from RootView since this is interfering with transparent Widgets. BUG=none TEST=none Review URL: http://codereview.chromium.org/7237040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91890 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes crash in views desktop. The problem wassky@chromium.org2011-07-084-0/+10
| | | | | | | | | | | | | CreateRenderWidgetHostView would delete the old RenderWidgetHostView. Also fixes compile error in views_unittests. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7329027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91888 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the bug of the hide key on Omnibox.mazda@chromium.org2011-07-081-2/+0
| | | | | | | | | | | | | | | | | | Fix a bug of hide key where the keyboard does now show up after the hide key is pressed while Omnibox has the focus and Omnibox is touched. I changed the way of retrieving the text input type to use InputMethod::GetTextInputType rather than TextInputClient::GetTextInputType because NULL is always set to touch_pressed_handler when omnibox is touched. I also added code to check the touch event type so that the notification is sent only when text element is touched. BUG=none TEST=manually Review URL: http://codereview.chromium.org/7324029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91854 0039d316-1c4b-4281-b951-d872f2087c98
* Changes wrench menu button to show system menu on space. This matchessky@chromium.org2011-07-081-7/+1
| | | | | | | | | | | | | what windows does. BUG=56650 TEST=press alt and release, focus should be on the wrench. press space, make sure the window menu appears, not the wrench menu. R=ben@chromium.org Review URL: http://codereview.chromium.org/7237032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91805 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crashes in EnterpriseEnrollmentScreenTest.TestCancel. This is ↵ben@chromium.org2011-07-073-5/+8
| | | | | | | | | | | independent of any tfarina-induced bustage. BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/7313027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91738 0039d316-1c4b-4281-b951-d872f2087c98
* Change the meaning of "Widget::GetTopLevelWidget()" to mean the logical top ↵ben@chromium.org2011-07-0711-9/+435
| | | | | | | | | | | | | | level Window in the views desktop world. Adds the beginning of a set of tests for this behavior. Also fixes the leaks associated with destruction of NativeWidgetViews, and adds a moderately comprehensive set of tests for Widget ownership. BUG=none TEST=none Review URL: http://codereview.chromium.org/7273084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91706 0039d316-1c4b-4281-b951-d872f2087c98
* Push (not pull) window geometry for the compositor.backer@chromium.org2011-07-062-5/+22
| | | | | | | | | | | The previous implementation used to poll the environment for the window size every drawing cycle. On Linux this is an expensive operation because it requires a round trip to the X server. This CL pushes window size change to the compositor. BUG=none TEST=none Review URL: http://codereview.chromium.org/7212028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91572 0039d316-1c4b-4281-b951-d872f2087c98
* Gets compositor working for embedded widgets.sky@chromium.org2011-07-0113-71/+230
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7280002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91312 0039d316-1c4b-4281-b951-d872f2087c98
* Reverted 7285007 now that r91197 has landedsaintlou@chromium.org2011-06-301-2/+4
| | | | | | | | | | | | Basically having TOUCH_UI => pure-views exposed an issue when pure-views are enabled and deskop is not. Not that this last issue is fixed we can revert that workaround. TBR=sky@chromium.org BUG=none TEST=TouchUi tests Review URL: http://codereview.chromium.org/7294008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91203 0039d316-1c4b-4281-b951-d872f2087c98
* Handle fake GTK events gracefully.oshima@google.com2011-06-301-1/+6
| | | | | | | | | | | | | | | | GTK sends fake enter/leave event when window activation changes. This event has (0,0) coordinates, which confuses NativeWidgetGtk::TransformEvent and ViewportWidget::OnMouseExited. This is a dirty hack to deal with gtk's fake events. This will be solved properly in NativeWidgetX + pure views. BUG=none TEST=click menu on notification. menu button on the notification shouldn't disappar and does not cause gtk warning. Review URL: http://codereview.chromium.org/7282020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91189 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed for touch buildsaintlou@chromium.org2011-06-301-4/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7285007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91172 0039d316-1c4b-4281-b951-d872f2087c98
* As per oshima:saintlou@chromium.org2011-06-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | The ultimate goal is to eliminate TOOLKIT_USES_GTK. Once that migration is completed, TOOLKIT_VIEWS + OS_LINUX should be enough. Until this happens, we need a binary that: 1) has both gtk and pure-views 2) can enable pure views components with --use-pure-views when possible (this is default in touchui=1). If we could switch everything with --use-pure-views, that'd be nice, but the world is not perfect and there are things that cannot co-exist (such as message pump). For such component, we'll use GYP_DEFINES to switch. 1) TOOLKIT_USES_PURE_VIEWS is defined with toolkit_pure_views=1. 2) all (or most of) chrome features must be functional with toolkit_pure_views=1 3) both TOOLKIT_USES_GTK and TOOLKIT_USES_PURE_VIEWS are defined. The latter has higher priority (that is, if implementation can't co-exists, TOOLKIT_USE_PURE_VIEWS will take precedence). 4) As the migration proceeds, there will be less TOOLKIT_USES_GTK and more TOOLKIT_USES_PURE_VIEWS. 5) Once the migration is complete (that is, there is no TOOKIT_USES_GTK), we can remove TOOLKIT_USES_PURE_VIEWS or replace it with OS_LINUX when necessary. BUG=none TEST=none Review URL: http://codereview.chromium.org/7273079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91164 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug where NativeWidgetViews wasn't setting bounds ofsky@chromium.org2011-06-291-0/+1
| | | | | | | | | | | | NativeWidgetView. This is why menu wasn't showing. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7248032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91000 0039d316-1c4b-4281-b951-d872f2087c98
* Make cursor a bit more visible a bit more oftensaintlou@chromium.org2011-06-291-2/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7282001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90983 0039d316-1c4b-4281-b951-d872f2087c98
* Views views_unittests native widget tests leakdhollowa@chromium.org2011-06-294-36/+38
| | | | | | | | | | | Eliminates leaks from NativeWidgetTest.*. Adds additional test target to valgrind wrapper script. Refactors native_widget_test_utils_{gtk|win}.cc to avoid duplication. BUG=87805 TEST=tools/valgrind/chrome_tests.sh views --gtest_filter=NativeWidgetTest.* Review URL: http://codereview.chromium.org/7272044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90979 0039d316-1c4b-4281-b951-d872f2087c98
* Removed a couple of #ifdef TOUCH_UI and replaced with Widget::IsPureViews()saintlou@chromium.org2011-06-292-3/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7253058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90978 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SetTooltipText in RWHVVvarunjain@chromium.org2011-06-282-0/+10
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6982062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90835 0039d316-1c4b-4281-b951-d872f2087c98
* Menus in the views desktop. Adds MenuHostViews. This is buggy due to ↵ben@chromium.org2011-06-288-32/+30
| | | | | | | | | | | | rendering issues I believe. Moves IsMouseButtonDown to a static method on Widget that is implemented by each platform. It needs to be static as it can be called before the NativeWidget is fully initialized, and does not depend on any NativeWidget state. BUG=none TEST=none Review URL: http://codereview.chromium.org/7253018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90793 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ifdef's for touchui stuff from events code.sadrul@chromium.org2011-06-287-38/+3
| | | | | | | | | | | Also, make sure the touch_pressed_handler_ is the view being removed before resetting it to NULL. BUG=none TEST=things compile and existing tests continue to pass Review URL: http://codereview.chromium.org/7276002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90762 0039d316-1c4b-4281-b951-d872f2087c98
* Always show keyboard when an editable element is touched.mazda@chromium.org2011-06-281-0/+6
| | | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/7244002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90684 0039d316-1c4b-4281-b951-d872f2087c98
* A views only implementation of tooltips. In the views world, tooltips are drawnvarunjain@chromium.org2011-06-275-4/+299
| | | | | | | | | | | on top of the RootView using a transient decorator. BUG=none. TEST=none. Review URL: http://codereview.chromium.org/7115001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90675 0039d316-1c4b-4281-b951-d872f2087c98
* Fix virtual keyboard issue with login screen.penghuang@chromium.org2011-06-271-0/+2
| | | | | | | | | | | | | | | | http://codereview.chromium.org/7170018/ causes this problem. In CL 7170018, it will not create the input method until it is requested by a child view. So in that time, a child view may already be focused. So we need sync focus state with input method. BUG=Virtual keyboard does not work on Login screen TEST=Seaboard Review URL: http://codereview.chromium.org/7222007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90540 0039d316-1c4b-4281-b951-d872f2087c98