Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Issue 173392: Couple of tweaks to ui_controls_linux:... (Closed)

Created:
11 years, 4 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24420

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -13 lines) Patch
M chrome/browser/automation/ui_controls.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/automation/ui_controls_linux.cc View 1 2 3 8 chunks +73 lines, -10 lines 0 comments Download
M chrome/browser/browser_focus_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
sky
11 years, 4 months ago (2009-08-25 20:40:29 UTC) #1
Evan Stade
won't the event be sent to the grab widget automagically? http://codereview.chromium.org/173392/diff/1/4 File chrome/browser/automation/ui_controls_linux.cc (right): http://codereview.chromium.org/173392/diff/1/4#newcode48 ...
11 years, 4 months ago (2009-08-25 21:24:33 UTC) #2
sky
On 2009/08/25 21:24:33, Evan Stade wrote: > won't the event be sent to the grab ...
11 years, 4 months ago (2009-08-25 21:32:52 UTC) #3
Evan Stade
http://codereview.chromium.org/173392/diff/1002/16 File chrome/browser/automation/ui_controls_linux.cc (right): http://codereview.chromium.org/173392/diff/1002/16#newcode108 Line 108: if (gtk_window_get_focus(window)) why do we check for a ...
11 years, 4 months ago (2009-08-25 21:43:44 UTC) #4
sky
New snapshot uploaded. http://codereview.chromium.org/173392/diff/1002/16 File chrome/browser/automation/ui_controls_linux.cc (right): http://codereview.chromium.org/173392/diff/1002/16#newcode108 Line 108: if (gtk_window_get_focus(window)) On 2009/08/25 21:43:46, ...
11 years, 4 months ago (2009-08-25 21:54:06 UTC) #5
Evan Stade
right, I've been changing all the tests to pass in an actual browser window, but ...
11 years, 4 months ago (2009-08-25 22:03:27 UTC) #6
sky
11 years, 4 months ago (2009-08-25 22:36:00 UTC) #7
You're right. Looking for the focused widget is not needed.

Thanks,

  -Scott

Powered by Google App Engine
This is Rietveld 408576698