blob: 446cc508769d8126c8135197ff6baa642d192ce9 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_PRESENTER_H_
#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_PRESENTER_H_
#include <cstddef>
#include <optional>
#include "chrome/browser/ui/views/omnibox/omnibox_popup_presenter_base.h"
class LocationBarView;
class OmniboxController;
// Implements subclass of OmniboxPopupPresenterBase to present a single WebUI
// into the Omnibox popup.
class OmniboxPopupPresenter : public OmniboxPopupPresenterBase {
public:
OmniboxPopupPresenter(LocationBarView* location_bar_view,
OmniboxController* controller);
OmniboxPopupPresenter(const OmniboxPopupPresenter&) = delete;
OmniboxPopupPresenter& operator=(const OmniboxPopupPresenter&) = delete;
~OmniboxPopupPresenter() override;
protected:
// OmniboxPopupPresenterBase overrides;
std::optional<size_t> GetShowingWebUIContentIndex() const override;
void ShowWebUIContent(size_t index) override;
};
#endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_PRESENTER_H_