|
|
Created:
5 years, 9 months ago by Andre Modified:
5 years, 9 months ago CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, mac-views-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@aura-window Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMacViews: Refactor aura dependency from ExtensionPopup
Aura specific code in ExtensionPopup won't compile with MacViews.
Refactor them into an Aura specific subclass.
BUG=425229
Committed: https://crrev.com/53f125e71fe78a1fa0e457622a83487fce117062
Cr-Commit-Position: refs/heads/master@{#319579}
Patch Set 1 : #Patch Set 2 : #
Total comments: 7
Patch Set 3 : Fix for msw and rebase #
Messages
Total messages: 33 (17 generated)
Patchset #1 (id:1) has been deleted
Patchset #2 (id:40001) has been deleted
Patchset #3 (id:80001) has been deleted
Patchset #1 (id:20001) has been deleted
andresantoso@chromium.org changed reviewers: + finnur@chromium.org, msw@chromium.org
Michael, Finnur, PTAL. https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... File chrome/browser/ui/views/extensions/extension_popup_aura.cc (right): https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup_aura.cc:42: if (widget == GetWidget()) { This check was not there, but seems like it should be there? https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup_aura.cc:59: aura::client::GetActivationClient(root_window)->AddObserver(this); This moved here from ExtensionPopup::ShowPopup().
I suspect msw is a better candidate to review this, but LGTM if he's happy with it.
Just minor vague concerns; I recall this code being touchy and crashy :) https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... File chrome/browser/ui/views/extensions/extension_popup.cc (right): https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup.cc:151: if (active && widget == anchor_widget()) I feel like I had to explicitly check the NativeWindow of these widgets for some reason, but I can't recall under what conditions that would be necessary, and my latest change here doesn't explain why that would be the case... This should probably be fine, but watch out for any regressions (might be win aero/classic theme, cros, or win8 specific). https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... File chrome/browser/ui/views/extensions/extension_popup_aura.cc (right): https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup_aura.cc:42: if (widget == GetWidget()) { On 2015/03/06 00:59:39, Andre wrote: > This check was not there, but seems like it should be there? Probably, unless this was also observing the anchor widget. https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup_aura.cc:59: aura::client::GetActivationClient(root_window)->AddObserver(this); On 2015/03/06 00:59:39, Andre wrote: > This moved here from ExtensionPopup::ShowPopup(). Is it okay that this will call AddObserver multiple times? (ie. user has devtools open, clicks bubble, away, and back)
Patchset #3 (id:110001) has been deleted
Patchset #3 (id:110001) has been deleted
https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... File chrome/browser/ui/views/extensions/extension_popup.cc (right): https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup.cc:151: if (active && widget == anchor_widget()) On 2015/03/06 19:26:49, msw wrote: > I feel like I had to explicitly check the NativeWindow of these widgets for some > reason, but I can't recall under what conditions that would be necessary, and my > latest change here doesn't explain why that would be the case... This should > probably be fine, but watch out for any regressions (might be win aero/classic > theme, cros, or win8 specific). Ack, thanks! https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... File chrome/browser/ui/views/extensions/extension_popup_aura.cc (right): https://codereview.chromium.org/980663003/diff/90001/chrome/browser/ui/views/... chrome/browser/ui/views/extensions/extension_popup_aura.cc:59: aura::client::GetActivationClient(root_window)->AddObserver(this); On 2015/03/06 19:26:49, msw wrote: > On 2015/03/06 00:59:39, Andre wrote: > > This moved here from ExtensionPopup::ShowPopup(). > > Is it okay that this will call AddObserver multiple times? > (ie. user has devtools open, clicks bubble, away, and back) Good point. I moved it to Create() above.
lgtm
The CQ bit was checked by andresantoso@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from finnur@chromium.org Link to the patchset: https://codereview.chromium.org/980663003/#ps130001 (title: "Fix for msw and rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980663003/130001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) Timed out jobs are not retried to avoid causing additional load on the builders with large pending queues.
The CQ bit was checked by andresantoso@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980663003/130001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) Timed out jobs are not retried to avoid causing additional load on the builders with large pending queues.
The CQ bit was checked by andresantoso@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980663003/130001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) Timed out jobs are not retried to avoid causing additional load on the builders with large pending queues.
The CQ bit was checked by andresantoso@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980663003/130001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) Timed out jobs are not retried to avoid causing additional load on the builders with large pending queues.
The CQ bit was checked by andresantoso@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980663003/130001
Message was sent while issue was closed.
Committed patchset #3 (id:130001)
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/53f125e71fe78a1fa0e457622a83487fce117062 Cr-Commit-Position: refs/heads/master@{#319579} |