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

Issue 2861873002: Align the base of the shelf's context menu to the top edge of the shelf. (Closed)

Created:
3 years, 7 months ago by minch1
Modified:
3 years, 7 months ago
Reviewers:
msw, sadrul
CC:
chromium-reviews, kalyank, sadrul, tfarina, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Align the base of the shelf's context menu to the top edge of the shelf. The context menu of the shelf will cover part of the icon in the shelf. And the coordinate adjustment from |MENU_ANCHOR_BOTTOMCENTER| is not suit for left and right shelf. changes in this cl, 1.Adjust the position of the context menu opened by shelf icon. Make it align to top edge of the shelf. Context menu of touch events should be put in the middle area. BUG=710601 Review-Url: https://codereview.chromium.org/2861873002 Cr-Commit-Position: refs/heads/master@{#471068} Committed: https://chromium.googlesource.com/chromium/src/+/f6b2be3d685c23dd16fe7878ad8c99ab86267278

Patch Set 1 #

Patch Set 2 : Fix UT. #

Total comments: 16

Patch Set 3 : Rebased and adressed comments. #

Total comments: 3

Patch Set 4 : Fixed comments. #

Patch Set 5 : Align the base of the shelf's context menu to the top edge of the shelf. #

Total comments: 12

Patch Set 6 : Fixed comments. #

Total comments: 2

Patch Set 7 : nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -10 lines) Patch
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 6 chunks +35 lines, -5 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_runner.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_runner.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_types.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 68 (48 generated)
minch1
Hi, msw@, could you help review? Thanks. https://codereview.chromium.org/2861873002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (left): https://codereview.chromium.org/2861873002/diff/20001/ui/views/controls/menu/menu_controller.cc#oldcode78 ui/views/controls/menu/menu_controller.cc:78: const int ...
3 years, 7 months ago (2017-05-04 16:44:15 UTC) #15
msw
https://codereview.chromium.org/2861873002/diff/20001/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/2861873002/diff/20001/ash/shelf/shelf_view.cc#newcode1604 ash/shelf/shelf_view.cc:1604: WmWindow* shelf_window = WmWindow::Get(shelf_widget_->GetNativeWindow()); nit: add a comment to ...
3 years, 7 months ago (2017-05-05 17:34:19 UTC) #16
msw
Oh, please also post screenshots of the before/after in the bug.
3 years, 7 months ago (2017-05-05 17:34:43 UTC) #17
minch1
https://codereview.chromium.org/2861873002/diff/20001/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/2861873002/diff/20001/ash/shelf/shelf_view.cc#newcode1604 ash/shelf/shelf_view.cc:1604: WmWindow* shelf_window = WmWindow::Get(shelf_widget_->GetNativeWindow()); On 2017/05/05 17:34:18, msw wrote: ...
3 years, 7 months ago (2017-05-08 17:21:02 UTC) #18
dschuyler
I made a note that you may want to address, but overall I'm not sure ...
3 years, 7 months ago (2017-05-08 20:46:58 UTC) #22
minch1
On 2017/05/08 20:46:58, dschuyler wrote: > I made a note that you may want to ...
3 years, 7 months ago (2017-05-08 20:49:09 UTC) #23
dschuyler
On 2017/05/08 20:49:09, minch1 wrote: > On 2017/05/08 20:46:58, dschuyler wrote: > > I made ...
3 years, 7 months ago (2017-05-08 20:56:26 UTC) #24
minch1
On 2017/05/08 20:56:26, dschuyler wrote: > On 2017/05/08 20:49:09, minch1 wrote: > > On 2017/05/08 ...
3 years, 7 months ago (2017-05-08 21:37:06 UTC) #25
minch1
msw@, sadrul@, could you help review? Thanks. https://codereview.chromium.org/2861873002/diff/40001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/2861873002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1954 ui/views/controls/menu/menu_controller.cc:1954: // Place ...
3 years, 7 months ago (2017-05-09 16:25:21 UTC) #35
sadrul
https://codereview.chromium.org/2861873002/diff/40001/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/2861873002/diff/40001/ui/base/ui_base_types.h#newcode49 ui/base/ui_base_types.h:49: MENU_SOURCE_TOUCH_BOTTOM_ANCHOR = 5, I don't think these belong here.
3 years, 7 months ago (2017-05-09 17:10:54 UTC) #36
minch1
msw@, sadrul@, how about to do it like ps#5?
3 years, 7 months ago (2017-05-09 19:00:01 UTC) #41
sadrul
This looks better to me, yes. One minor comment though: https://codereview.chromium.org/2861873002/diff/80001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/2861873002/diff/80001/ui/views/controls/menu/menu_runner.h#newcode90 ...
3 years, 7 months ago (2017-05-10 01:25:40 UTC) #44
msw
+1 to Sadrul's comment, and some additional comments. https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc#newcode1647 ash/shelf/shelf_view.cc:1647: ? ...
3 years, 7 months ago (2017-05-10 22:18:23 UTC) #49
minch1
msw@, could you help review again? Thanks. https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc#newcode1735 ash/shelf/shelf_view.cc:1735: // Distinguish ...
3 years, 7 months ago (2017-05-11 16:34:03 UTC) #54
msw
lgtm with a nit https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/2861873002/diff/80001/ash/shelf/shelf_view.cc#newcode1647 ash/shelf/shelf_view.cc:1647: ? (owner_overflow_bubble_->bubble_view()->GetBubbleBounds()) On 2017/05/10 22:18:22, ...
3 years, 7 months ago (2017-05-11 17:13:40 UTC) #55
sadrul
lgtm
3 years, 7 months ago (2017-05-11 17:21:52 UTC) #56
minch1
https://codereview.chromium.org/2861873002/diff/100001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/2861873002/diff/100001/ui/views/controls/menu/menu_runner.h#newcode90 ui/views/controls/menu/menu_runner.h:90: // figure out it. For example the context menu ...
3 years, 7 months ago (2017-05-11 20:48:30 UTC) #63
minch1
3 years, 7 months ago (2017-05-11 20:48:33 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2861873002/120001
3 years, 7 months ago (2017-05-11 20:48:57 UTC) #65
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 20:54:25 UTC) #68
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f6b2be3d685c23dd16fe7878ad8c...

Powered by Google App Engine
This is Rietveld 408576698