diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 03:27:29 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 03:27:29 +0000 |
commit | c0cbacb7525dfb39b346f597d5c7947fa1f9f63b (patch) | |
tree | 95d16f97e42d0f5ffccc08b701e0e1b2fa1572dc /chrome/browser/automation/ui_controls.h | |
parent | 7bc5f1bb093daa602ac483051bd0071f8064779b (diff) | |
download | chromium_src-c0cbacb7525dfb39b346f597d5c7947fa1f9f63b.zip chromium_src-c0cbacb7525dfb39b346f597d5c7947fa1f9f63b.tar.gz chromium_src-c0cbacb7525dfb39b346f597d5c7947fa1f9f63b.tar.bz2 |
Couple of tweaks to ui_controls_linux:
. Moves listening from DidProcess to WillProcess. This is necessitated
by the bookmark bar (chrome menu) tests that spawn a nested run
loop, which results in DidProcess not getting sent and the test
wedging. This brings the code closer in line with Windows.
. If there is a mouse/keyboard grab, mouse/keyboard events are sent to
the grabbed widget.
. Deals with a NULL widget for sending keyboard events (tries to find
focused widget).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/173392
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/ui_controls.h')
-rw-r--r-- | chrome/browser/automation/ui_controls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/automation/ui_controls.h b/chrome/browser/automation/ui_controls.h index 5f3d9e3..113e012 100644 --- a/chrome/browser/automation/ui_controls.h +++ b/chrome/browser/automation/ui_controls.h @@ -16,9 +16,11 @@ #include "base/gfx/native_widget_types.h" #include "base/gfx/point.h" +#if defined(TOOLKIT_VIEWS) namespace views { class View; } +#endif class Task; @@ -73,7 +75,7 @@ bool SendMouseClick(MouseButton type); // A combination of SendMouseMove to the middle of the view followed by // SendMouseEvents. void MoveMouseToCenterAndPress( -#if defined(OS_WIN) +#if defined(TOOLKIT_VIEWS) views::View* view, #elif defined(OS_LINUX) GtkWidget* widget, |