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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Overridden from views::ButtonListener: | 105 // Overridden from views::ButtonListener: |
106 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 106 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
107 | 107 |
108 // Overridden from views::MenuButtonListener: | 108 // Overridden from views::MenuButtonListener: |
109 void OnMenuButtonClicked(views::MenuButton* source, | 109 void OnMenuButtonClicked(views::MenuButton* source, |
110 const gfx::Point& point, | 110 const gfx::Point& point, |
111 const ui::Event* event) override; | 111 const ui::Event* event) override; |
112 | 112 |
113 // Overridden from SearchBoxModelObserver: | 113 // Overridden from SearchBoxModelObserver: |
114 void IconChanged() override; | |
115 void SpeechRecognitionButtonPropChanged() override; | 114 void SpeechRecognitionButtonPropChanged() override; |
116 void HintTextChanged() override; | 115 void HintTextChanged() override; |
117 void SelectionModelChanged() override; | 116 void SelectionModelChanged() override; |
118 void TextChanged() override; | 117 void TextChanged() override; |
119 | 118 |
120 // Overridden from SpeechUIModelObserver: | 119 // Overridden from SpeechUIModelObserver: |
121 void OnSpeechRecognitionStateChanged( | 120 void OnSpeechRecognitionStateChanged( |
122 SpeechRecognitionState new_state) override; | 121 SpeechRecognitionState new_state) override; |
123 | 122 |
124 SearchBoxViewDelegate* delegate_; // Not owned. | 123 SearchBoxViewDelegate* delegate_; // Not owned. |
125 AppListViewDelegate* view_delegate_; // Not owned. | 124 AppListViewDelegate* view_delegate_; // Not owned. |
126 AppListModel* model_; // Owned by the profile-keyed service. | 125 AppListModel* model_; // Owned by the profile-keyed service. |
127 | 126 |
128 std::unique_ptr<AppListMenuViews> menu_; | 127 std::unique_ptr<AppListMenuViews> menu_; |
129 | 128 |
130 views::View* content_container_; // Owned by views hierarchy. | 129 views::View* content_container_; // Owned by views hierarchy. |
131 views::ImageView* icon_view_; // Owned by views hierarchy. | |
132 SearchBoxImageButton* back_button_; // Owned by views hierarchy. | 130 SearchBoxImageButton* back_button_; // Owned by views hierarchy. |
133 SearchBoxImageButton* speech_button_; // Owned by views hierarchy. | 131 SearchBoxImageButton* speech_button_; // Owned by views hierarchy. |
134 views::MenuButton* menu_button_; // Owned by views hierarchy. | 132 views::MenuButton* menu_button_; // Owned by views hierarchy. |
135 views::Textfield* search_box_; // Owned by views hierarchy. | 133 views::Textfield* search_box_; // Owned by views hierarchy. |
136 views::View* contents_view_; // Owned by views hierarchy. | 134 views::View* contents_view_; // Owned by views hierarchy. |
137 | 135 |
138 SearchBoxFocus focused_view_; // Which element has TAB'd focus. | 136 SearchBoxFocus focused_view_; // Which element has TAB'd focus. |
139 | 137 |
140 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); | 138 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); |
141 }; | 139 }; |
142 | 140 |
143 } // namespace app_list | 141 } // namespace app_list |
144 | 142 |
145 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 143 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
OLD | NEW |