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

Issue 347016: Implement page action popups. (Closed)

Created:
11 years, 1 month ago by Erik does not do reviews
Modified:
9 years, 7 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement page action popups. A random side effect of this change is that it changes page action hover from bubble to tool tip. BUG=24645 TEST=ExtensionApiTest.PageActionPopup Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30677

Patch Set 1 #

Patch Set 2 : added test #

Patch Set 3 : merge #

Patch Set 4 : mac-n-linux (it's the cheesiest) #

Total comments: 12

Patch Set 5 : review feedback #

Total comments: 4

Patch Set 6 : fixed failing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -8 lines) Patch
M chrome/browser/browser_list.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/page_action_apitest.cc View 2 3 4 2 chunks +78 lines, -1 line 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/location_bar.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_bubble_win.cc View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/views/location_bar_view.h View 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 3 4 5 7 chunks +97 lines, -5 lines 0 comments Download
M chrome/common/notification_type.h View 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Erik does not do reviews
11 years, 1 month ago (2009-10-30 20:22:05 UTC) #1
Matt Perry
http://codereview.chromium.org/347016/diff/3002/6003 File chrome/browser/extensions/page_action_apitest.cc (right): http://codereview.chromium.org/347016/diff/3002/6003#newcode95 Line 95: IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PageActionPopup) { looks like this test should ...
11 years, 1 month ago (2009-10-30 20:34:42 UTC) #2
Erik does not do reviews
http://codereview.chromium.org/347016/diff/3002/6003 File chrome/browser/extensions/page_action_apitest.cc (right): http://codereview.chromium.org/347016/diff/3002/6003#newcode95 Line 95: IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PageActionPopup) { On 2009/10/30 20:34:42, Matt Perry ...
11 years, 1 month ago (2009-10-30 22:55:31 UTC) #3
Matt Perry
LGTM http://codereview.chromium.org/347016/diff/4011/5006 File chrome/browser/extensions/page_action_apitest.cc (right): http://codereview.chromium.org/347016/diff/4011/5006#newcode157 Line 157: ASSERT_TRUE(last_visibility_); nit: use EXPECT_EQ for failure modes ...
11 years, 1 month ago (2009-10-30 23:11:42 UTC) #4
Erik does not do reviews
11 years, 1 month ago (2009-10-30 23:30:01 UTC) #5
http://codereview.chromium.org/347016/diff/4011/5006
File chrome/browser/extensions/page_action_apitest.cc (right):

http://codereview.chromium.org/347016/diff/4011/5006#newcode157
Line 157: ASSERT_TRUE(last_visibility_);
On 2009/10/30 23:11:42, Matt Perry wrote:
> nit: use EXPECT_EQ for failure modes that don't invalidate the rest of the
test.

Done.

http://codereview.chromium.org/347016/diff/4011/5014
File chrome/test/data/extensions/api_test/page_action_popup/background.html
(right):

http://codereview.chromium.org/347016/diff/4011/5014#newcode3
Line 3: chrome.test.notifyPass();
On 2009/10/30 23:11:42, Matt Perry wrote:
> seems strange that this is first. I guess it doesn't matter what order it
> appears in?

Yeah, agree that it looks weird and that it shouldn't matter.  I guess I was
being overly cautious given that the order on the C++ side is to first wait for
the extension to say that it succeeded loading (notifyPass) and then to wait for
the page action to show.  However, even if somehow the notifications came in in
the opposite order, the code should still work.

Powered by Google App Engine
This is Rietveld 408576698