| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/app_list/app_list_export.h" | 11 #include "ui/app_list/app_list_export.h" |
| 12 #include "ui/app_list/speech_ui_model_observer.h" | 12 #include "ui/app_list/speech_ui_model_observer.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 class BoundsAnimator; | 17 class BoundsAnimator; |
| 18 class ImageButton; | 18 class ImageButton; |
| 19 class ImageView; | 19 class ImageView; |
| 20 class Label; | 20 class Label; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace app_list { | 23 namespace app_list { |
| 24 | 24 |
| 25 class AppListViewDelegate; | 25 class AppListViewDelegate; |
| 26 class SpeechCardView; | |
| 27 | 26 |
| 28 // SpeechView provides the card-like UI for the search-by-speech. | 27 // SpeechView provides the card-like UI for the search-by-speech. |
| 29 class APP_LIST_EXPORT SpeechView : public views::View, | 28 class APP_LIST_EXPORT SpeechView : public views::View, |
| 30 public views::ButtonListener, | 29 public views::ButtonListener, |
| 31 public SpeechUIModelObserver { | 30 public SpeechUIModelObserver { |
| 32 public: | 31 public: |
| 33 explicit SpeechView(AppListViewDelegate* delegate); | 32 explicit SpeechView(AppListViewDelegate* delegate); |
| 34 ~SpeechView() override; | 33 ~SpeechView() override; |
| 35 | 34 |
| 36 // Reset to the original state. | 35 // Reset to the original state. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 61 views::ImageButton* mic_button_; | 60 views::ImageButton* mic_button_; |
| 62 views::Label* speech_result_; | 61 views::Label* speech_result_; |
| 63 std::unique_ptr<views::BoundsAnimator> indicator_animator_; | 62 std::unique_ptr<views::BoundsAnimator> indicator_animator_; |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(SpeechView); | 64 DISALLOW_COPY_AND_ASSIGN(SpeechView); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace app_list | 67 } // namespace app_list |
| 69 | 68 |
| 70 #endif // UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ | 69 #endif // UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ |
| OLD | NEW |