#include "components/omnibox/browser/omnibox_controller.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram.h"
#include "base/trace_event/trace_event.h"
#include "components/omnibox/browser/autocomplete_classifier.h"
#include "components/omnibox/browser/autocomplete_controller_emitter.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_type.h"
#include "components/omnibox/browser/omnibox_client.h"
#include "components/omnibox/browser/omnibox_edit_model.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/omnibox_popup_selection.h"
#include "components/omnibox/browser/omnibox_popup_view.h"
#include "components/omnibox/browser/omnibox_prefs.h"
#include "components/omnibox/browser/page_classification_functions.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "ui/gfx/geometry/rect.h"
OmniboxController::OmniboxController(OmniboxView* view,
std::unique_ptr<OmniboxClient> client)
: … { … }
OmniboxController::~OmniboxController() = default;
void OmniboxController::StartAutocomplete(
const AutocompleteInput& input) const { … }
void OmniboxController::StopAutocomplete(bool clear_result) const { … }
void OmniboxController::StartZeroSuggestPrefetch() { … }
void OmniboxController::OnResultChanged(AutocompleteController* controller,
bool default_match_changed) { … }
void OmniboxController::ClearPopupKeywordMode() const { … }
std::u16string OmniboxController::GetHeaderForSuggestionGroup(
omnibox::GroupId suggestion_group_id) const { … }
bool OmniboxController::IsSuggestionHidden(
const AutocompleteMatch& match) const { … }
bool OmniboxController::IsSuggestionGroupHidden(
omnibox::GroupId suggestion_group_id) const { … }
void OmniboxController::SetSuggestionGroupHidden(
omnibox::GroupId suggestion_group_id,
bool hidden) const { … }
void OmniboxController::SetRichSuggestionBitmap(int result_index,
const SkBitmap& bitmap) { … }
void OmniboxController::OnSuggestionGroupVisibilityPrefChanged() { … }