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

Issue 489183005: Make a ShowExtensionActionPopup function (Closed)

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

Description

Make a ShowExtensionActionPopup function More-or-less consolidate calls to show an ExtensionAction's popup into ExtensionActionAPI. This has the happy effect of reducing the amount of piping we have to do in the UI code (cutting a few steps out of the Browser -> BrowserWindow -> Toolbar -> BrowserActionsContainer -> BrowserActionView chain), and, more importantly, lets page action command executions happen in the BrowserActionsContainer when the redesign is enabled. Hopefully, this means that we can stop showing page actions in the location bar with the switch enabled - but that's another patch. BUG=397259 TBR=sky@chromium.org (minor changes to test_browser_window) Committed: https://crrev.com/9a1800e4df575c7f7035cfbfddb84dcf879d217c Cr-Commit-Position: refs/heads/master@{#292462}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Finnur's #

Total comments: 4

Patch Set 3 : Peter's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -218 lines) Patch
M chrome/browser/extensions/api/extension_action/extension_action_api.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 5 chunks +39 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_action_manager.h View 1 chunk +13 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_action_manager.cc View 1 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.h View 1 4 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 2 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 2 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 1 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/location_bar/location_bar.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 2 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 7 chunks +18 lines, -33 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 chunks +0 lines, -18 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 2 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Devlin
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-26 23:07:27 UTC) #1
Devlin
Patchset #1 (id:20001) has been deleted
6 years, 3 months ago (2014-08-26 23:07:34 UTC) #2
Devlin
Patchset #1 (id:40001) has been deleted
6 years, 3 months ago (2014-08-26 23:07:40 UTC) #3
Devlin
rdevlin.cronin@chromium.org changed reviewers: + finnur@chromium.org
6 years, 3 months ago (2014-08-26 23:57:54 UTC) #4
Devlin
Hey Finnur - sorry to spam you with reviews. And I promise this one's not ...
6 years, 3 months ago (2014-08-26 23:57:54 UTC) #5
Finnur
> Hey Finnur - sorry to spam you with reviews. No worries, happy to see ...
6 years, 3 months ago (2014-08-27 11:52:50 UTC) #6
Finnur
And now, with comments... https://codereview.chromium.org/489183005/diff/60001/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/489183005/diff/60001/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode855 chrome/browser/extensions/api/extension_action/extension_action_api.cc:855: // We only allow the ...
6 years, 3 months ago (2014-08-27 11:53:02 UTC) #7
Devlin
https://codereview.chromium.org/489183005/diff/60001/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/489183005/diff/60001/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode855 chrome/browser/extensions/api/extension_action/extension_action_api.cc:855: // We only allow the a popup in the ...
6 years, 3 months ago (2014-08-27 15:43:22 UTC) #8
Finnur
Fair enough. LGTM
6 years, 3 months ago (2014-08-27 15:46:42 UTC) #9
Devlin
rdevlin.cronin@chromium.org changed reviewers: + avi@chromium.org, pkasting@chromium.org
6 years, 3 months ago (2014-08-27 15:49:59 UTC) #10
Devlin
+Peter for c/b/ui/[^cocoa] +Avi for c/b/ui/cocoa
6 years, 3 months ago (2014-08-27 15:49:59 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/489183005/diff/80001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/489183005/diff/80001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode907 chrome/browser/ui/views/toolbar/browser_actions_container.cc:907: const Extension* extension, bool grant_active_tab) { Nit: One ...
6 years, 3 months ago (2014-08-27 19:41:19 UTC) #12
Devlin
https://codereview.chromium.org/489183005/diff/80001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/489183005/diff/80001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode907 chrome/browser/ui/views/toolbar/browser_actions_container.cc:907: const Extension* extension, bool grant_active_tab) { On 2014/08/27 19:41:19, ...
6 years, 3 months ago (2014-08-27 20:47:16 UTC) #13
Avi (use Gerrit)
Cocoa stuff LGTM
6 years, 3 months ago (2014-08-28 17:49:28 UTC) #14
Devlin
rdevlin.cronin@chromium.org changed reviewers: + sky@chromium.org
6 years, 3 months ago (2014-08-28 19:07:26 UTC) #15
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 3 months ago (2014-08-28 19:07:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/489183005/100001
6 years, 3 months ago (2014-08-28 19:09:22 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-28 20:10:20 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:100001) as 176d5cfaa8edbc502c146771fc393597a073dfd5
6 years, 3 months ago (2014-08-28 21:07:12 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:02:14 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9a1800e4df575c7f7035cfbfddb84dcf879d217c
Cr-Commit-Position: refs/heads/master@{#292462}

Powered by Google App Engine
This is Rietveld 408576698