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

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

Issue 105773004: Introduces the speech recognition UI to app_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/app_list_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 "ui/app_list/search_box_model_observer.h" 10 #include "ui/app_list/search_box_model_observer.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void ButtonPressed(views::Button* sender, 74 virtual void ButtonPressed(views::Button* sender,
75 const ui::Event& event) OVERRIDE; 75 const ui::Event& event) OVERRIDE;
76 76
77 // Overridden from views::MenuButtonListener: 77 // Overridden from views::MenuButtonListener:
78 virtual void OnMenuButtonClicked(View* source, 78 virtual void OnMenuButtonClicked(View* source,
79 const gfx::Point& point) OVERRIDE; 79 const gfx::Point& point) OVERRIDE;
80 80
81 // Overridden from SearchBoxModelObserver: 81 // Overridden from SearchBoxModelObserver:
82 virtual void IconChanged() OVERRIDE; 82 virtual void IconChanged() OVERRIDE;
83 virtual void SpeechRecognitionButtonPropChanged() OVERRIDE; 83 virtual void SpeechRecognitionButtonPropChanged() OVERRIDE;
84 virtual void SetSpeechRecognitionButtonState(bool toggled) OVERRIDE;
85 virtual void HintTextChanged() OVERRIDE; 84 virtual void HintTextChanged() OVERRIDE;
86 virtual void SelectionModelChanged() OVERRIDE; 85 virtual void SelectionModelChanged() OVERRIDE;
87 virtual void TextChanged() OVERRIDE; 86 virtual void TextChanged() OVERRIDE;
88 87
89 SearchBoxViewDelegate* delegate_; // Not owned. 88 SearchBoxViewDelegate* delegate_; // Not owned.
90 AppListViewDelegate* view_delegate_; // Not owned. 89 AppListViewDelegate* view_delegate_; // Not owned.
91 AppListModel* model_; // Owned by AppListView. 90 AppListModel* model_; // Owned by AppListView.
92 91
93 scoped_ptr<AppListMenuViews> menu_; 92 scoped_ptr<AppListMenuViews> menu_;
94 93
95 views::ImageView* icon_view_; // Owned by views hierarchy. 94 views::ImageView* icon_view_; // Owned by views hierarchy.
96 views::ToggleImageButton* speech_button_; // Owned by views hierarchy. 95 views::ImageButton* speech_button_; // Owned by views hierarchy.
97 views::MenuButton* menu_button_; // Owned by views hierarchy. 96 views::MenuButton* menu_button_; // Owned by views hierarchy.
98 views::Textfield* search_box_; // Owned by views hierarchy. 97 views::Textfield* search_box_; // Owned by views hierarchy.
99 views::View* contents_view_; // Owned by views hierarchy. 98 views::View* contents_view_; // Owned by views hierarchy.
100 99
101 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); 100 DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
102 }; 101 };
103 102
104 } // namespace app_list 103 } // namespace app_list
105 104
106 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ 105 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_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