Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: ui/app_list/views/search_box_view.h

Issue 2846733004: Optimization: not sending answer server requests for voice queries. (Closed)
Patch Set: Last nits Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698