assistant_web_view_delegate.h 852 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_ASSISTANT_UI_ASSISTANT_WEB_VIEW_DELEGATE_H_
  5. #define ASH_ASSISTANT_UI_ASSISTANT_WEB_VIEW_DELEGATE_H_
  6. #include "base/component_export.h"
  7. namespace views {
  8. class Widget;
  9. } // namespace views
  10. namespace ash {
  11. // A delegate of web container views in assistant/ui.
  12. class COMPONENT_EXPORT(ASSISTANT_UI) AssistantWebViewDelegate {
  13. public:
  14. virtual ~AssistantWebViewDelegate() = default;
  15. // Updates the visibility of the back button in Assistant web container.
  16. virtual void UpdateBackButtonVisibility(views::Widget* widget,
  17. bool visibility) = 0;
  18. };
  19. } // namespace ash
  20. #endif // ASH_ASSISTANT_UI_ASSISTANT_WEB_VIEW_DELEGATE_H_