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

Issue 10802090: fixed the distorted behavior on the mediastreaminfobar on Mac (Closed)

Created:
8 years, 5 months ago by no longer working on chromium
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This patch makes the "options" drop box a proper size, so that it does not need to be as wide as "Always allow this site to use this camera and this microphone and camera". It guarantees no overlap when the window is resizing. It also corrects the layout by putting the cancelButton on the left of the okButton. BUG=137837, 138447 TEST= try with site: https://apprtc.appspot.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148960

Patch Set 1 #

Patch Set 2 : ready for review. #

Total comments: 27

Patch Set 3 : addressed comments from shess #

Total comments: 9

Patch Set 4 : addressed the comments and don't rebuild the menu in arrangeInfobarLayout #

Total comments: 7

Patch Set 5 : rebased and addressed the comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -58 lines) Patch
M chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm View 1 2 3 4 7 chunks +86 lines, -58 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
no longer working on chromium
Shess, could you please review this CL? Thanks, BR; SX
8 years, 5 months ago (2012-07-25 09:12:52 UTC) #1
Scott Hess - ex-Googler
https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h File chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h (right): https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h#newcode30 chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h:30: // Space between controls in pixels - read from ...
8 years, 5 months ago (2012-07-25 18:28:15 UTC) #2
no longer working on chromium
please take another look. Thanks. https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h File chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h (right): https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h#newcode30 chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h:30: // Space between controls ...
8 years, 5 months ago (2012-07-26 10:17:47 UTC) #3
Scott Hess - ex-Googler
https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm File chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm (right): https://chromiumcodereview.appspot.com/10802090/diff/2001/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm#newcode130 chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm:130: NSMinX(cancelButtonFrame) - NSMaxX(okButtonFrame); On 2012/07/26 10:17:47, xians1 wrote: > ...
8 years, 5 months ago (2012-07-26 19:39:41 UTC) #4
no longer working on chromium
https://chromiumcodereview.appspot.com/10802090/diff/2002/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm File chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm (left): https://chromiumcodereview.appspot.com/10802090/diff/2002/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm#oldcode235 chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm:235: [GTMUILocalizerAndLayoutTweaker sizeToFitView:deviceMenu_]; On 2012/07/26 19:39:41, shess wrote: > It ...
8 years, 4 months ago (2012-07-27 10:09:55 UTC) #5
Scott Hess - ex-Googler
LGTM, with the -setBezelStyle: and -setAutoresizingMask: change indicated, your option on moving the one -sizeToFit ...
8 years, 4 months ago (2012-07-27 16:35:20 UTC) #6
no longer working on chromium
Many thanks to Shess. I am going to land it soon. https://chromiumcodereview.appspot.com/10802090/diff/2002/chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm File chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm (left): ...
8 years, 4 months ago (2012-07-30 11:36:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/10802090/8002
8 years, 4 months ago (2012-07-30 11:36:48 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 16:24:38 UTC) #9
Change committed as 148960

Powered by Google App Engine
This is Rietveld 408576698