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

Issue 150132: First cut at popup blocking for Mac. Remove ifdefs in cross-platform code. Im... (Closed)

Created:
11 years, 5 months ago by pink (ping after 24hrs)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

First cut at popup blocking for Mac. Remove ifdefs in cross-platform code. Implement displaying of notification, menu of popups still to come. BUG=13160 TEST=popup notification should display and popups blocked accordingly. Can close notification widget to prevent more notifications for this tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19735

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -20 lines) Patch
M chrome/browser/blocked_popup_container.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/blocked_popup_container.cc View 1 chunk +0 lines, -6 lines 0 comments Download
A chrome/browser/cocoa/blocked_popup_container_controller.h View 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/blocked_popup_container_controller.mm View 1 chunk +215 lines, -0 lines 10 comments Download
A chrome/browser/cocoa/blocked_popup_container_controller_unittest.mm View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 4 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/chrome.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
pink (ping after 24hrs)
11 years, 5 months ago (2009-06-30 20:19:20 UTC) #1
rohitrao (ping after 24h)
LGTM One concern is that if this is going to make it into a dev ...
11 years, 5 months ago (2009-07-01 15:04:17 UTC) #2
pink (ping after 24hrs)
11 years, 5 months ago (2009-07-01 15:49:15 UTC) #3
http://codereview.chromium.org/150132/diff/32/1017
File chrome/browser/cocoa/blocked_popup_container_controller.mm (right):

http://codereview.chromium.org/150132/diff/32/1017#newcode41
Line 41: // used to represet the "view".
On 2009/07/01 15:04:17, rohitrao wrote:
> Typo: represet

Done.

http://codereview.chromium.org/150132/diff/32/1017#newcode63
Line 63: const float kWidth = 200.0;
On 2009/07/01 15:04:17, rohitrao wrote:
> static?

Done.

http://codereview.chromium.org/150132/diff/32/1017#newcode108
Line 108: // Returns the NSView container of the RWHVMac. We insert our popup
blocker
On 2009/07/01 15:04:17, rohitrao wrote:
> "NSView container" -> "parent", or maybe explicitly mention that it's a
sibling
> of RWHVMac.
> 

Done.

http://codereview.chromium.org/150132/diff/32/1017#newcode121
Line 121: // Position the view at the bottom left corner, always leaving room
for the
On 2009/07/01 15:04:17, rohitrao wrote:
> If it's in the bottom left corner, do we have to worry about the statusbar?

typo, bottom right corner. Directions are hard, let's go shopping.

http://codereview.chromium.org/150132/diff/32/1017#newcode142
Line 142: #if 0
On 2009/07/01 15:04:17, rohitrao wrote:
> Why is this commented out?

todo added.

Powered by Google App Engine
This is Rietveld 408576698