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 "ui/app_list/speech_ui_model_observer.h" | 8 #include "ui/app_list/speech_ui_model_observer.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 class BoundsAnimator; | 13 class BoundsAnimator; |
14 class ImageButton; | 14 class ImageButton; |
| 15 class ImageView; |
15 class Label; | 16 class Label; |
16 } | 17 } |
17 | 18 |
18 namespace app_list { | 19 namespace app_list { |
19 | 20 |
20 class AppListViewDelegate; | 21 class AppListViewDelegate; |
21 class SpeechCardView; | 22 class SpeechCardView; |
22 | 23 |
23 // SpeechView provides the card-like UI for the search-by-speech. | 24 // SpeechView provides the card-like UI for the search-by-speech. |
24 class SpeechView : public views::View, | 25 class SpeechView : public views::View, |
(...skipping 19 matching lines...) Expand all Loading... |
44 | 45 |
45 // Overridden from SpeechUIModelObserver: | 46 // Overridden from SpeechUIModelObserver: |
46 virtual void OnSpeechSoundLevelChanged(uint8 level) OVERRIDE; | 47 virtual void OnSpeechSoundLevelChanged(uint8 level) OVERRIDE; |
47 virtual void OnSpeechResult(const base::string16& result, | 48 virtual void OnSpeechResult(const base::string16& result, |
48 bool is_final) OVERRIDE; | 49 bool is_final) OVERRIDE; |
49 virtual void OnSpeechRecognitionStateChanged( | 50 virtual void OnSpeechRecognitionStateChanged( |
50 SpeechRecognitionState new_state) OVERRIDE; | 51 SpeechRecognitionState new_state) OVERRIDE; |
51 | 52 |
52 AppListViewDelegate* delegate_; | 53 AppListViewDelegate* delegate_; |
53 | 54 |
| 55 views::ImageView* logo_; |
54 views::View* indicator_; | 56 views::View* indicator_; |
55 views::ImageButton* mic_button_; | 57 views::ImageButton* mic_button_; |
56 views::Label* speech_result_; | 58 views::Label* speech_result_; |
57 scoped_ptr<views::BoundsAnimator> indicator_animator_; | 59 scoped_ptr<views::BoundsAnimator> indicator_animator_; |
58 | 60 |
59 DISALLOW_COPY_AND_ASSIGN(SpeechView); | 61 DISALLOW_COPY_AND_ASSIGN(SpeechView); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace app_list | 64 } // namespace app_list |
63 | 65 |
64 #endif // UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ | 66 #endif // UI_APP_LIST_VIEWS_SPEECH_VIEW_H_ |
OLD | NEW |