Commit 5f966630 authored by Trent Apted's avatar Trent Apted Committed by Commit Bot

Mac: Make the Cocoa blocked plugins bubble shorter.

Now that flash is the only plugin, this dialog has a lot less to say,
and has too much unwanted white space.

The height of the Cocoa bubble is a hardcoded magic number specific to
this dialog. Make it smaller. The dialog will be replaced with
a toolkit-views version soon.

Bug: 773218
Change-Id: Ie828c7d88415c3e1d42c7e280fdd5bae60e8cb71
Reviewed-on: https://chromium-review.googlesource.com/746461Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512964}
parent 9423f2de
...@@ -45,7 +45,7 @@ void SetControlSize(NSControl* control, NSControlSize control_size) { ...@@ -45,7 +45,7 @@ void SetControlSize(NSControl* control, NSControlSize control_size) {
// The size of this bubble, and the other layout constants elsewhere in this // The size of this bubble, and the other layout constants elsewhere in this
// file, were lifted from ContentBlockedPlugins.xib // file, were lifted from ContentBlockedPlugins.xib
base::scoped_nsobject<InfoBubbleWindow> window([[InfoBubbleWindow alloc] base::scoped_nsobject<InfoBubbleWindow> window([[InfoBubbleWindow alloc]
initWithContentRect:NSMakeRect(0, 0, 314, 179) initWithContentRect:NSMakeRect(0, 0, 314, 145)
styleMask:NSBorderlessWindowMask styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered backing:NSBackingStoreBuffered
defer:NO]); defer:NO]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment