Commit 65ccabd6 authored by David Black's avatar David Black Committed by Commit Bot

Remove proactive suggestions methods.

These methods are unused and were missed during earlier clean up.

Bug: b:157237955
Change-Id: Ia3f45af1f206cf817544705af4500ebcf77cf74f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2226916
Commit-Queue: David Black <dmblack@google.com>
Reviewed-by: default avatarDavid Black <dmblack@google.com>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775194}
parent 5c944ff9
......@@ -104,22 +104,6 @@ void AssistantViewDelegateImpl::OnOptInButtonPressed() {
observer.OnOptInButtonPressed();
}
void AssistantViewDelegateImpl::OnProactiveSuggestionsCloseButtonPressed() {
for (auto& observer : view_delegate_observers_)
observer.OnProactiveSuggestionsCloseButtonPressed();
}
void AssistantViewDelegateImpl::OnProactiveSuggestionsViewHoverChanged(
bool is_hovering) {
for (auto& observer : view_delegate_observers_)
observer.OnProactiveSuggestionsViewHoverChanged(is_hovering);
}
void AssistantViewDelegateImpl::OnProactiveSuggestionsViewPressed() {
for (auto& observer : view_delegate_observers_)
observer.OnProactiveSuggestionsViewPressed();
}
void AssistantViewDelegateImpl::OnSuggestionChipPressed(
const AssistantSuggestion* suggestion) {
for (AssistantViewDelegateObserver& observer : view_delegate_observers_)
......
......@@ -37,9 +37,6 @@ class AssistantViewDelegateImpl : public AssistantViewDelegate {
void OnNotificationButtonPressed(const std::string& notification_id,
int notification_button_index) override;
void OnOptInButtonPressed() override;
void OnProactiveSuggestionsCloseButtonPressed() override;
void OnProactiveSuggestionsViewHoverChanged(bool is_hovering) override;
void OnProactiveSuggestionsViewPressed() override;
void OnSuggestionChipPressed(const AssistantSuggestion* suggestion) override;
private:
......
......@@ -44,15 +44,6 @@ class COMPONENT_EXPORT(ASSISTANT_UI) AssistantViewDelegateObserver
// Invoked when the opt in button is pressed.
virtual void OnOptInButtonPressed() {}
// Invoked when the proactive suggestions close button is pressed.
virtual void OnProactiveSuggestionsCloseButtonPressed() {}
// Invoked when the hover state of the proactive suggestions view is changed.
virtual void OnProactiveSuggestionsViewHoverChanged(bool is_hovering) {}
// Invoked when the proactive suggestions view is pressed.
virtual void OnProactiveSuggestionsViewPressed() {}
// Invoked when a suggestion chip is pressed.
virtual void OnSuggestionChipPressed(const AssistantSuggestion* suggestion) {}
};
......@@ -113,15 +104,6 @@ class COMPONENT_EXPORT(ASSISTANT_UI) AssistantViewDelegate {
// Invoked when the opt in button is pressed.
virtual void OnOptInButtonPressed() {}
// Invoked when the proactive suggestions close button is pressed.
virtual void OnProactiveSuggestionsCloseButtonPressed() {}
// Invoked when the hover state of the proactive suggestions view is changed.
virtual void OnProactiveSuggestionsViewHoverChanged(bool is_hovering) {}
// Invoked when the proactive suggestions view is pressed.
virtual void OnProactiveSuggestionsViewPressed() {}
// Invoked when suggestion chip is pressed.
virtual void OnSuggestionChipPressed(
const AssistantSuggestion* suggestion) = 0;
......
......@@ -78,12 +78,6 @@ class COMPONENT_EXPORT(ASSISTANT_UI) MockAssistantViewDelegate
MOCK_METHOD(void, OnOptInButtonPressed, (), (override));
MOCK_METHOD(void, OnProactiveSuggestionsCloseButtonPressed, (), (override));
MOCK_METHOD(void, OnProactiveSuggestionsViewHoverChanged, (bool), (override));
MOCK_METHOD(void, OnProactiveSuggestionsViewPressed, (), (override));
MOCK_METHOD(void,
OnSuggestionChipPressed,
(const AssistantSuggestion*),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment