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

Issue 173030: Port more browser focus tests to linux.... (Closed)

Created:
11 years, 4 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony, jcampan, Evan Martin
CC:
chromium-reviews_googlegroups.com, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Port more browser focus tests to linux. Added a new test to make sure clicking sets focus, since I changed a lot of tests to programatically set focus instead of using clicking. Also set the actual time on our synthetic key events. I'm still not sure this is necessary but would like to avoid subtle bugs. Also get rid of the NineBox constructor that takes a theme provider and convert its callers to use cairo directly or the other NineBox constructor. This change was necessary because theme providers could go stale and then the NineBox would cause seg faults. Also, it was only being used for single images... and UniBox just sounds wrong. Also fix extension shelf to paint its image with the correct x/y (noticeable only with certain themes). Remove the notification observer stuff from the extension shelf, as I don't think there is any action to be taken when the theme changes. BUG=19076 BUG=19659 TEST=all the ported interactive ui tests (as well as all the already-working tests) pass. TEST=(Linux) things still render correctly (frame image, drop shadows, find box, extension shelf) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23732

Patch Set 1 #

Total comments: 7

Patch Set 2 : working on windows #

Patch Set 3 : working on windows #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -285 lines) Patch
M base/keyboard_codes_linux.h View 1 chunk +26 lines, -26 lines 0 comments Download
M chrome/browser/automation/ui_controls_linux.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/browser_focus_uitest.cc View 1 18 chunks +118 lines, -105 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 3 chunks +29 lines, -35 lines 1 comment Download
M chrome/browser/gtk/extension_shelf_gtk.h View 2 4 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/gtk/extension_shelf_gtk.cc View 2 4 chunks +13 lines, -27 lines 0 comments Download
M chrome/browser/gtk/find_bar_gtk.cc View 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/gtk/nine_box.h View 1 3 chunks +1 line, -25 lines 0 comments Download
M chrome/browser/gtk/nine_box.cc View 1 3 chunks +0 lines, -38 lines 0 comments Download
M chrome/browser/gtk/tab_contents_container_gtk.h View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/gtk/tab_contents_container_gtk.cc View 1 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/view_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container_win.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Evan Stade
testing this on windows now.
11 years, 4 months ago (2009-08-19 00:00:22 UTC) #1
Evan Stade
Adding more reviewers (I have been picking on Tony a lot lately, and Jay should ...
11 years, 4 months ago (2009-08-19 00:05:23 UTC) #2
tony
http://codereview.chromium.org/173030/diff/1/2 File base/keyboard_codes_linux.h (right): http://codereview.chromium.org/173030/diff/1/2#newcode88 Line 88: VKEY_A = GDK_a, This looked scary, but upon ...
11 years, 4 months ago (2009-08-19 00:46:41 UTC) #3
Evan Stade
removing NineBox stuff as per offline convo with Tony. http://codereview.chromium.org/173030/diff/1/2 File base/keyboard_codes_linux.h (right): http://codereview.chromium.org/173030/diff/1/2#newcode88 Line ...
11 years, 4 months ago (2009-08-19 01:01:10 UTC) #4
Evan Stade
updated
11 years, 4 months ago (2009-08-19 04:42:12 UTC) #5
tony
11 years, 4 months ago (2009-08-19 17:47:26 UTC) #6
yay, LGTM!

http://codereview.chromium.org/173030/diff/1028/1036
File chrome/browser/gtk/browser_window_gtk.cc (right):

http://codereview.chromium.org/173030/diff/1028/1036#newcode555
Line 555: GdkPixbuf* top_center =
theme_provider->GetPixbufNamed(IDR_CONTENT_TOP_CENTER);
Nit: 80 cols.

Powered by Google App Engine
This is Rietveld 408576698