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

Side by Side Diff: ui/app_list/test/app_list_test_view_delegate.cc

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/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_view.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ui/app_list/test/app_list_test_view_delegate.h" 5 #include "ui/app_list/test/app_list_test_view_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 AppListModel* AppListTestViewDelegate::GetModel() { 72 AppListModel* AppListTestViewDelegate::GetModel() {
73 return model_.get(); 73 return model_.get();
74 } 74 }
75 75
76 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { 76 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() {
77 return test_signin_delegate_.get(); 77 return test_signin_delegate_.get();
78 } 78 }
79 79
80 SpeechUIModel* AppListTestViewDelegate::GetSpeechUI() {
81 return &speech_ui_;
82 }
83
80 void AppListTestViewDelegate::GetShortcutPathForApp( 84 void AppListTestViewDelegate::GetShortcutPathForApp(
81 const std::string& app_id, 85 const std::string& app_id,
82 const base::Callback<void(const base::FilePath&)>& callback) { 86 const base::Callback<void(const base::FilePath&)>& callback) {
83 callback.Run(base::FilePath()); 87 callback.Run(base::FilePath());
84 } 88 }
85 89
86 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, 90 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result,
87 int event_flags) { 91 int event_flags) {
88 ++open_search_result_count_; 92 ++open_search_result_count_;
89 } 93 }
(...skipping 24 matching lines...) Expand all
114 observers_.AddObserver(observer); 118 observers_.AddObserver(observer);
115 } 119 }
116 120
117 void AppListTestViewDelegate::RemoveObserver( 121 void AppListTestViewDelegate::RemoveObserver(
118 app_list::AppListViewDelegateObserver* observer) { 122 app_list::AppListViewDelegateObserver* observer) {
119 observers_.RemoveObserver(observer); 123 observers_.RemoveObserver(observer);
120 } 124 }
121 125
122 } // namespace test 126 } // namespace test
123 } // namespace app_list 127 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698