#include "components/omnibox/browser/test_omnibox_view.h"
#include <algorithm>
#include "components/omnibox/browser/omnibox_controller.h"
#include "components/omnibox/browser/test_omnibox_client.h"
#include "components/omnibox/browser/test_omnibox_edit_model.h"
#include "ui/gfx/native_widget_types.h"
OmniboxView::State TestOmniboxView::CreateState(std::string text,
size_t sel_start,
size_t sel_end,
size_t all_sel_length) { … }
std::u16string TestOmniboxView::GetText() const { … }
void TestOmniboxView::SetWindowTextAndCaretPos(const std::u16string& text,
size_t caret_pos,
bool update_popup,
bool notify_text_changed) { … }
bool TestOmniboxView::IsSelectAll() const { … }
void TestOmniboxView::GetSelectionBounds(size_t* start, size_t* end) const { … }
size_t TestOmniboxView::GetAllSelectionsLength() const { … }
void TestOmniboxView::SelectAll(bool reversed) { … }
void TestOmniboxView::OnTemporaryTextMaybeChanged(
const std::u16string& display_text,
const AutocompleteMatch& match,
bool save_original_selection,
bool notify_text_changed) { … }
void TestOmniboxView::OnInlineAutocompleteTextMaybeChanged(
const std::u16string& display_text,
std::vector<gfx::Range> selections,
const std::u16string& prefix_autocompletion,
const std::u16string& inline_autocompletion) { … }
void TestOmniboxView::OnInlineAutocompleteTextCleared() { … }
void TestOmniboxView::OnRevertTemporaryText(const std::u16string& display_text,
const AutocompleteMatch& match) { … }
bool TestOmniboxView::OnAfterPossibleChange(bool allow_keyword_ui_change) { … }
gfx::NativeView TestOmniboxView::GetNativeView() const { … }
gfx::NativeView TestOmniboxView::GetRelativeWindowForPopup() const { … }
bool TestOmniboxView::IsImeComposing() const { … }
int TestOmniboxView::GetOmniboxTextLength() const { … }