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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Fires query change notification. | 114 // Fires query change notification. |
115 void NotifyQueryChanged(); | 115 void NotifyQueryChanged(); |
116 | 116 |
117 // Overridden from views::TextfieldController: | 117 // Overridden from views::TextfieldController: |
118 void ContentsChanged(views::Textfield* sender, | 118 void ContentsChanged(views::Textfield* sender, |
119 const base::string16& new_contents) override; | 119 const base::string16& new_contents) override; |
120 bool HandleKeyEvent(views::Textfield* sender, | 120 bool HandleKeyEvent(views::Textfield* sender, |
121 const ui::KeyEvent& key_event) override; | 121 const ui::KeyEvent& key_event) override; |
122 bool HandleMouseEvent(views::Textfield* sender, | 122 bool HandleMouseEvent(views::Textfield* sender, |
123 const ui::MouseEvent& mouse_event) override; | 123 const ui::MouseEvent& mouse_event) override; |
| 124 |
124 bool HandleGestureEvent(views::Textfield* sender, | 125 bool HandleGestureEvent(views::Textfield* sender, |
125 const ui::GestureEvent& gesture_event) override; | 126 const ui::GestureEvent& gesture_event) override; |
126 | 127 |
127 // Overridden from views::ButtonListener: | 128 // Overridden from views::ButtonListener: |
128 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 129 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
129 | 130 |
130 // Overridden from SearchBoxModelObserver: | 131 // Overridden from SearchBoxModelObserver: |
131 void SpeechRecognitionButtonPropChanged() override; | 132 void SpeechRecognitionButtonPropChanged() override; |
132 void HintTextChanged() override; | 133 void HintTextChanged() override; |
133 void SelectionModelChanged() override; | 134 void SelectionModelChanged() override; |
(...skipping 22 matching lines...) Expand all Loading... |
156 const bool is_fullscreen_app_list_enabled_; | 157 const bool is_fullscreen_app_list_enabled_; |
157 // Whether the search box is active. | 158 // Whether the search box is active. |
158 bool is_search_box_active_ = false; | 159 bool is_search_box_active_ = false; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); | 161 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace app_list | 164 } // namespace app_list |
164 | 165 |
165 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 166 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
OLD | NEW |