| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ASH_ASSISTANT_UI_MAIN_STAGE_ASSISTANT_ERROR_ELEMENT_VIEW_H_ |
| #define ASH_ASSISTANT_UI_MAIN_STAGE_ASSISTANT_ERROR_ELEMENT_VIEW_H_ |
| |
| #include "ash/assistant/model/ui/assistant_error_element.h" |
| #include "ash/assistant/ui/main_stage/assistant_text_element_view.h" |
| #include "base/component_export.h" |
| |
| namespace ash { |
| |
| // AssistantErrorElementView is the visual representation of an |
| // AssistantErrorElement. AssistantErrorElementView uses the same rendering |
| // logic as AssistantTextElementView. |
| class COMPONENT_EXPORT(ASSISTANT_UI) AssistantErrorElementView |
| : public AssistantTextElementView { |
| public: |
| explicit AssistantErrorElementView( |
| const AssistantErrorElement* error_element); |
| |
| // AssistantTextElementView: |
| const char* GetClassName() const override; |
| }; |
| |
| } // namespace ash |
| |
| #endif // ASH_ASSISTANT_UI_MAIN_STAGE_ASSISTANT_ERROR_ELEMENT_VIEW_H_ |