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

Issue 454019: Addition of optional giveFocus parameter to experimental.popup.show(...) (Closed)

Created:
11 years ago by Jeff Timanus
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, jam, Aaron Boodman, pam+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Addition of a new parameter to the popup.show(...) Chrome extension API that allows the caller to specify the behaviour of the window focus when the pop-up is displayed. I added a test for the new parameter in the ExtensionApiTest.FLAKY_Popup test. I also corrected a truncated string in the unit-test. Because the pop-up actually uses two windows, I had to change the WidgetWin::Show() routine to also reposition the window at the top. If a window is shown and activated, it is automatically brought to the front. Because we don't activate the pop-up when we want to keep the focus in the current extension view, I had to bring it to the front so that it wouldn't be hidden behind the 'chrome-bubble' window. BUG=none TEST=ExtensionApiTest.FLAKY_Popup Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34037

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -28 lines) Patch
M chrome/browser/extensions/extension_popup_api.cc View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_popup_apitest.cc View 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/extensions/extension_popup.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/views/extensions/extension_popup.cc View 1 2 7 chunks +15 lines, -8 lines 2 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 1 chunk +18 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/popup_api/toolband.html View 2 5 chunks +40 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jeff Timanus
Hi Guys, Please review this CL when you have a moment. Jeff
11 years ago (2009-12-02 20:24:49 UTC) #1
rafaelw
[+pkasting] Peter, please review change in WidgetWin. http://codereview.chromium.org/454019/diff/1001/1005 File chrome/browser/views/extensions/extension_popup.h (right): http://codereview.chromium.org/454019/diff/1001/1005#newcode40 chrome/browser/views/extensions/extension_popup.h:40: bool activate_on_show); ...
11 years ago (2009-12-03 21:16:36 UTC) #2
Peter Kasting
http://codereview.chromium.org/454019/diff/1001/1002 File views/widget/widget_win.cc (right): http://codereview.chromium.org/454019/diff/1001/1002#newcode203 views/widget/widget_win.cc:203: SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE); You cannot do this. ...
11 years ago (2009-12-03 21:43:25 UTC) #3
Peter Kasting
http://codereview.chromium.org/454019/diff/1001/1005 File chrome/browser/views/extensions/extension_popup.h (right): http://codereview.chromium.org/454019/diff/1001/1005#newcode40 chrome/browser/views/extensions/extension_popup.h:40: bool activate_on_show); On 2009/12/03 21:16:36, rafaelw wrote: > I ...
11 years ago (2009-12-03 21:46:13 UTC) #4
rafaelw
http://codereview.chromium.org/454019/diff/1001/1005 File chrome/browser/views/extensions/extension_popup.h (right): http://codereview.chromium.org/454019/diff/1001/1005#newcode40 chrome/browser/views/extensions/extension_popup.h:40: bool activate_on_show); Peter is the expert. Nevermind me. http://codereview.chromium.org/454019/diff/1001/1005#newcode46 ...
11 years ago (2009-12-03 22:49:36 UTC) #5
Jeff Timanus
Hi Guys, I addressed all of your remarks. Please have another look. Jeff
11 years ago (2009-12-05 01:38:01 UTC) #6
Erik does not do reviews
one drive-by nit. I'll defer to Raf and Peter on the rest. http://codereview.chromium.org/454019/diff/7001/8004 File chrome/browser/views/browser_actions_container.cc ...
11 years ago (2009-12-05 15:38:23 UTC) #7
Jeff Timanus
Added comments, as you suggest, Erik. Please review again. http://codereview.chromium.org/454019/diff/7001/8004 File chrome/browser/views/browser_actions_container.cc (right): http://codereview.chromium.org/454019/diff/7001/8004#newcode383 chrome/browser/views/browser_actions_container.cc:383: ...
11 years ago (2009-12-07 18:22:00 UTC) #8
rafaelw
Also, you removed the changes to WidgetWin, but I don't see any new code that ...
11 years ago (2009-12-08 00:25:54 UTC) #9
Jeff Timanus
http://codereview.chromium.org/454019/diff/8013/7003 File chrome/browser/views/extensions/extension_popup.cc (right): http://codereview.chromium.org/454019/diff/8013/7003#newcode64 chrome/browser/views/extensions/extension_popup.cc:64: border_widget_->MoveAbove(popup_); On 2009/12/08 00:25:54, rafaelw wrote: > Can you ...
11 years ago (2009-12-08 01:05:38 UTC) #10
rafaelw
11 years ago (2009-12-08 02:24:35 UTC) #11
ok. thanks for the explanation. lgtm

Powered by Google App Engine
This is Rietveld 408576698