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

Unified Diff: ui/app_list/cocoa/apps_search_box_controller.mm

Issue 69813002: Adds the speech recognition button to the app-list searchbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/apps_search_box_controller.mm
diff --git a/ui/app_list/cocoa/apps_search_box_controller.mm b/ui/app_list/cocoa/apps_search_box_controller.mm
index 93a96cb63c127e5abedf7081698299d82d10b349..1ef31e308aa167873f0e11c364c610730a05eb52 100644
--- a/ui/app_list/cocoa/apps_search_box_controller.mm
+++ b/ui/app_list/cocoa/apps_search_box_controller.mm
@@ -53,6 +53,8 @@ class SearchBoxModelObserverBridge : public SearchBoxModelObserver {
void SetSearchText(const base::string16& text);
virtual void IconChanged() OVERRIDE;
+ virtual void SpeechRecognitionButtonPropChanged() OVERRIDE;
+ virtual void SetSpeechRecognitionButtonState(bool toggled) OVERRIDE;
virtual void HintTextChanged() OVERRIDE;
virtual void SelectionModelChanged() OVERRIDE;
virtual void TextChanged() OVERRIDE;
@@ -96,6 +98,17 @@ void SearchBoxModelObserverBridge::IconChanged() {
GetModel()->icon(), base::mac::GetSRGBColorSpace())];
}
+void SearchBoxModelObserverBridge::SpeechRecognitionButtonPropChanged() {
+ // TODO(mukai): implement.
+ NOTIMPLEMENTED();
+}
+
+void SearchBoxModelObserverBridge::SetSpeechRecognitionButtonState(
+ bool toggled) {
+ // TODO(mukai): implement.
+ NOTIMPLEMENTED();
+}
+
void SearchBoxModelObserverBridge::HintTextChanged() {
[[[parent_ searchTextField] cell] setPlaceholderString:
base::SysUTF16ToNSString(GetModel()->hint_text())];
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698