Generalize the Previews UI |
||
Issue description
Right now it is assumed that when a Preview is shown, the UI shown to the user will be an Infobar.
Generalize this so that PreviewsInfobarDelegate::Create is only called from one generic place that can be used elsewhere.
Like:
DRP Previews
\ /
\ /
PreviewsTabHelper
|
|
PreviewsInfobarDelegate
,
Aug 16
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4 commit e4d006b5a68cf35da88d2d36b66ab822b8ce19a4 Author: Robert Ogden <robertogden@chromium.org> Date: Thu Aug 16 19:19:13 2018 Merge Previews UI Trigger code paths Cleans up the APIs to show the previews UI by abstracting away the InfoBar and leaving the Previews Tab Helper as the single point of entry to show a Previews UI. Also renames and moves the on dismiss callback so that it no longer has "infobar" in its name. Bug: 874523 Change-Id: I49735c52882d198cd9f6fe95725168691a88681d Reviewed-on: https://chromium-review.googlesource.com/1176544 Reviewed-by: Ryan Sturm <ryansturm@chromium.org> Reviewed-by: Evan Stade <estade@chromium.org> Commit-Queue: Robert Ogden <robertogden@chromium.org> Cr-Commit-Position: refs/heads/master@{#583766} [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/infobars/infobars_browsertest.cc [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/previews/previews_infobar_delegate.cc [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/previews/previews_infobar_delegate.h [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/previews/previews_infobar_delegate_unittest.cc [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/previews/previews_ui_tab_helper.cc [modify] https://crrev.com/e4d006b5a68cf35da88d2d36b66ab822b8ce19a4/chrome/browser/previews/previews_ui_tab_helper.h
,
Aug 17
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Aug 15