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

Issue 3586005: Aligns the network menu width with combo box width. (Closed)

Created:
10 years, 2 months ago by altimofeev
Modified:
9 years, 7 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Aligns the network menu width with combo box width. BUG=chromium-os:7100 TEST=Boot device. On "Select network" screen click on the network selection combo box. The networks menu that will appear has the same width as combo box itself. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61173

Patch Set 1 #

Total comments: 6

Patch Set 2 : code review iteration #

Total comments: 3

Patch Set 3 : review iteration 2 #

Total comments: 1

Patch Set 4 : iteration 3 #

Patch Set 5 : merged with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M chrome/browser/chromeos/login/network_selection_view.cc View 1 2 3 4 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.h View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
altimofeev
10 years, 2 months ago (2010-10-01 07:48:36 UTC) #1
Nikita (slow)
LGTM http://codereview.chromium.org/3586005/diff/1/2 File chrome/browser/chromeos/login/network_selection_view.cc (right): http://codereview.chromium.org/3586005/diff/1/2#newcode302 chrome/browser/chromeos/login/network_selection_view.cc:302: ((NetworkMenu*)network_dropdown_)->set_menu_offset(kMenuHorizontalOffset, Why do you need casting here? set_menu_offset ...
10 years, 2 months ago (2010-10-01 08:19:11 UTC) #2
altimofeev
http://codereview.chromium.org/3586005/diff/1/2 File chrome/browser/chromeos/login/network_selection_view.cc (right): http://codereview.chromium.org/3586005/diff/1/2#newcode302 chrome/browser/chromeos/login/network_selection_view.cc:302: ((NetworkMenu*)network_dropdown_)->set_menu_offset(kMenuHorizontalOffset, On 2010/10/01 08:19:11, Nikita Kostylev wrote: > Why ...
10 years, 2 months ago (2010-10-01 08:33:22 UTC) #3
Nikita (slow)
http://codereview.chromium.org/3586005/diff/1/2 File chrome/browser/chromeos/login/network_selection_view.cc (right): http://codereview.chromium.org/3586005/diff/1/2#newcode302 chrome/browser/chromeos/login/network_selection_view.cc:302: ((NetworkMenu*)network_dropdown_)->set_menu_offset(kMenuHorizontalOffset, On 2010/10/01 08:33:22, altimofeev wrote: > On 2010/10/01 ...
10 years, 2 months ago (2010-10-01 08:49:09 UTC) #4
altimofeev
http://codereview.chromium.org/3586005/diff/1/2 File chrome/browser/chromeos/login/network_selection_view.cc (right): http://codereview.chromium.org/3586005/diff/1/2#newcode302 chrome/browser/chromeos/login/network_selection_view.cc:302: ((NetworkMenu*)network_dropdown_)->set_menu_offset(kMenuHorizontalOffset, On 2010/10/01 08:49:09, Nikita Kostylev wrote: > On ...
10 years, 2 months ago (2010-10-01 10:05:15 UTC) #5
altimofeev
Deleted 'set_menu_offset' method for NetworkMenu.
10 years, 2 months ago (2010-10-01 12:23:16 UTC) #6
Nikita (slow)
10 years, 2 months ago (2010-10-01 12:37:24 UTC) #7
LGTM

http://codereview.chromium.org/3586005/diff/6001/7002
File chrome/browser/chromeos/status/network_menu.cc (right):

http://codereview.chromium.org/3586005/diff/6001/7002#newcode248
chrome/browser/chromeos/status/network_menu.cc:248: if (min_width_ != -1)
On 2010/10/01 10:05:15, altimofeev wrote:
> On 2010/10/01 08:49:09, Nikita Kostylev wrote:
> > I don't think setting width to negative value makes sense.
> > I wasn't sure whether setting to 0 makes sense either (will it work?).
> > 
> > min_width_ > 0 or
> > mid_width_ >= 0
> 
> It depends on the Menu realization, since we simple pass the value. Current
> situation is that calling SetMinimumWidth(0) brings to 0-width menu (simple
> strip is shown) which is different from the expected behavior (set minimum !=
> set width). So my intention is to delegate decision part to real menu as much
as
> possible. Checking only the value of '-1' looks like the least change to the
> passing pipeline.

Short comment on that will be helpful here.

http://codereview.chromium.org/3586005/diff/12001/13001
File chrome/browser/chromeos/login/network_selection_view.cc (right):

http://codereview.chromium.org/3586005/diff/12001/13001#newcode305
chrome/browser/chromeos/login/network_selection_view.cc:305: const int
kDefaultMenuOffsetX = -2;
Please make those constants public in MenuButton then.

Powered by Google App Engine
This is Rietveld 408576698