OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SEARCH_BOX_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool HandleKeyEvent(views::Textfield* sender, | 96 bool HandleKeyEvent(views::Textfield* sender, |
97 const ui::KeyEvent& key_event) override; | 97 const ui::KeyEvent& key_event) override; |
98 | 98 |
99 // Overridden from views::ButtonListener: | 99 // Overridden from views::ButtonListener: |
100 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 100 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
101 | 101 |
102 // Overridden from SearchBoxModelObserver: | 102 // Overridden from SearchBoxModelObserver: |
103 void SpeechRecognitionButtonPropChanged() override; | 103 void SpeechRecognitionButtonPropChanged() override; |
104 void HintTextChanged() override; | 104 void HintTextChanged() override; |
105 void SelectionModelChanged() override; | 105 void SelectionModelChanged() override; |
106 void TextChanged() override; | 106 void Update() override; |
107 | 107 |
108 // Overridden from SpeechUIModelObserver: | 108 // Overridden from SpeechUIModelObserver: |
109 void OnSpeechRecognitionStateChanged( | 109 void OnSpeechRecognitionStateChanged( |
110 SpeechRecognitionState new_state) override; | 110 SpeechRecognitionState new_state) override; |
111 | 111 |
112 SearchBoxViewDelegate* delegate_; // Not owned. | 112 SearchBoxViewDelegate* delegate_; // Not owned. |
113 AppListViewDelegate* view_delegate_; // Not owned. | 113 AppListViewDelegate* view_delegate_; // Not owned. |
114 AppListModel* model_; // Owned by the profile-keyed service. | 114 AppListModel* model_; // Owned by the profile-keyed service. |
115 | 115 |
116 views::View* content_container_; // Owned by views hierarchy. | 116 views::View* content_container_; // Owned by views hierarchy. |
117 SearchBoxImageButton* back_button_; // Owned by views hierarchy. | 117 SearchBoxImageButton* back_button_; // Owned by views hierarchy. |
118 SearchBoxImageButton* speech_button_; // Owned by views hierarchy. | 118 SearchBoxImageButton* speech_button_; // Owned by views hierarchy. |
119 views::Textfield* search_box_; // Owned by views hierarchy. | 119 views::Textfield* search_box_; // Owned by views hierarchy. |
120 views::View* contents_view_; // Owned by views hierarchy. | 120 views::View* contents_view_; // Owned by views hierarchy. |
121 | 121 |
122 SearchBoxFocus focused_view_; // Which element has TAB'd focus. | 122 SearchBoxFocus focused_view_; // Which element has TAB'd focus. |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); | 124 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace app_list | 127 } // namespace app_list |
128 | 128 |
129 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 129 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
OLD | NEW |