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

Issue 547303003: Keep reference view pressed while extension actions have a popup (Closed)

Created:
6 years, 3 months ago by Devlin
Modified:
6 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Keep reference view pressed while extension actions have a popup The reference view for an extension popup is either the extension action button itself (if the extension action is visible on the main bar) or the wrench menu/chevron (if the action is overflowed). When a popup is opened, the reference view should remain pressed for the duration of the popup. BUG=414944 BUG=415171 Committed: https://crrev.com/7ff971438e42ae6577ee4d6223485908e597ffac Cr-Commit-Position: refs/heads/master@{#296057}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : MenuButton::PressedLock #

Total comments: 12

Patch Set 3 : Sky's + Tests #

Patch Set 4 : Win compile fix #

Total comments: 4

Patch Set 5 : VIEWS_EXPORT fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -117 lines) Patch
M chrome/browser/ui/views/extensions/extension_action_view_controller.h View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_action_view_controller.cc View 1 6 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_action_view_delegate.h View 1 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.h View 1 4 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.cc View 1 5 chunks +17 lines, -27 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M ui/views/controls/button/menu_button.h View 1 2 3 4 5 chunks +28 lines, -3 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 6 chunks +52 lines, -22 lines 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 1 2 4 chunks +51 lines, -10 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 9 chunks +19 lines, -22 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
Devlin
Hey Scott, please take a look when you have time - I'd be interested in ...
6 years, 3 months ago (2014-09-18 18:40:55 UTC) #5
sky
https://codereview.chromium.org/547303003/diff/60001/ui/views/controls/button/menu_button.h File ui/views/controls/button/menu_button.h (right): https://codereview.chromium.org/547303003/diff/60001/ui/views/controls/button/menu_button.h#newcode52 ui/views/controls/button/menu_button.h:52: // Increases the |menus_visible_| count by one and sets ...
6 years, 3 months ago (2014-09-18 20:02:24 UTC) #6
Devlin
https://codereview.chromium.org/547303003/diff/60001/ui/views/controls/button/menu_button.h File ui/views/controls/button/menu_button.h (right): https://codereview.chromium.org/547303003/diff/60001/ui/views/controls/button/menu_button.h#newcode52 ui/views/controls/button/menu_button.h:52: // Increases the |menus_visible_| count by one and sets ...
6 years, 3 months ago (2014-09-18 20:53:51 UTC) #7
sky
Is there a reason all the buttons can't extend MenuButton? On Thu, Sep 18, 2014 ...
6 years, 3 months ago (2014-09-18 22:16:56 UTC) #8
Devlin
They do all extend MenuButton (which is how Patch Set 1 works), but then it ...
6 years, 3 months ago (2014-09-18 22:21:46 UTC) #9
sky
Is the button you need to update always supplied to MenuRunner? On Thu, Sep 18, ...
6 years, 3 months ago (2014-09-19 02:50:31 UTC) #10
Devlin
On 2014/09/19 02:50:31, sky wrote: > Is the button you need to update always supplied ...
6 years, 3 months ago (2014-09-19 17:48:58 UTC) #13
sky
I only looked at the ui/views side. I like this route much better. https://codereview.chromium.org/547303003/diff/120001/ui/views/controls/button/menu_button.cc File ...
6 years, 3 months ago (2014-09-19 21:21:59 UTC) #14
Devlin
https://codereview.chromium.org/547303003/diff/120001/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://codereview.chromium.org/547303003/diff/120001/ui/views/controls/button/menu_button.cc#newcode137 ui/views/controls/button/menu_button.cc:137: //SetState(STATE_NORMAL); On 2014/09/19 21:21:59, sky wrote: > Fix these. ...
6 years, 3 months ago (2014-09-19 22:37:49 UTC) #15
sky
https://codereview.chromium.org/547303003/diff/160001/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://codereview.chromium.org/547303003/diff/160001/ui/views/controls/button/menu_button.cc#newcode173 ui/views/controls/button/menu_button.cc:173: RequestFocus(); Don't you want to ignore pressed/released too? https://codereview.chromium.org/547303003/diff/160001/ui/views/controls/button/menu_button.cc#newcode218 ...
6 years, 3 months ago (2014-09-22 16:06:11 UTC) #16
Devlin
https://codereview.chromium.org/547303003/diff/160001/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://codereview.chromium.org/547303003/diff/160001/ui/views/controls/button/menu_button.cc#newcode173 ui/views/controls/button/menu_button.cc:173: RequestFocus(); On 2014/09/22 16:06:11, sky wrote: > Don't you ...
6 years, 3 months ago (2014-09-22 16:22:38 UTC) #17
sky
Ok, LGTM then
6 years, 3 months ago (2014-09-22 17:02:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/547303003/160001
6 years, 3 months ago (2014-09-22 17:13:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/17789)
6 years, 3 months ago (2014-09-22 18:01:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/547303003/180001
6 years, 3 months ago (2014-09-22 20:26:46 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:180001) as 6e69e3ce3d1ab596b571931b028db4a66b7440a2
6 years, 3 months ago (2014-09-22 21:45:48 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 21:46:38 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7ff971438e42ae6577ee4d6223485908e597ffac
Cr-Commit-Position: refs/heads/master@{#296057}

Powered by Google App Engine
This is Rietveld 408576698