#include "chrome/browser/ui/views/extensions/extensions_dialogs_utils.h"
#include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_button.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_container.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/url_formatter/elide_url.h"
#include "extensions/common/constants.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/layout/flex_layout_view.h"
#include "ui/views/widget/widget.h"
namespace {
ExtensionsToolbarContainer* GetExtensionsToolbarContainer(
BrowserView* browser_view) { … }
views::View* GetDialogAnchorView(
ExtensionsToolbarContainer* container,
const std::vector<extensions::ExtensionId>& extension_ids) { … }
}
ExtensionsToolbarContainer* GetExtensionsToolbarContainer(Browser* browser) { … }
ExtensionsToolbarContainer* GetExtensionsToolbarContainer(
gfx::NativeWindow parent) { … }
ui::ImageModel GetIcon(ToolbarActionViewController* action,
content::WebContents* web_contents) { … }
std::u16string GetCurrentHost(content::WebContents* web_contents) { … }
void ShowDialog(gfx::NativeWindow parent,
const extensions::ExtensionId& extension_id,
std::unique_ptr<ui::DialogModel> dialog_model) { … }
void ShowDialog(ExtensionsToolbarContainer* container,
const std::vector<extensions::ExtensionId>& extension_ids,
std::unique_ptr<ui::DialogModel> dialog_model) { … }
void ShowDialog(Browser* browser,
std::unique_ptr<ui::DialogModel> dialog_model) { … }