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

Unified Diff: ui/app_list/test/app_list_test_view_delegate.cc

Issue 302653002: Introduce the MicButtonTargeter class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test in progress Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/test/app_list_test_view_delegate.cc
diff --git a/ui/app_list/test/app_list_test_view_delegate.cc b/ui/app_list/test/app_list_test_view_delegate.cc
index ab712bfadbd1ea2224b1f6bd8701ad77da792a66..4052ea60160b06a1417c6168ef4bd0be200bba03 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -52,6 +52,7 @@ class TestSigninDelegate : public SigninDelegate {
AppListTestViewDelegate::AppListTestViewDelegate()
: dismiss_count_(0),
+ toggle_speech_recognition_count_(0),
open_search_result_count_(0),
test_signin_delegate_(new TestSigninDelegate),
model_(new AppListTestModel),
@@ -67,6 +68,12 @@ void AppListTestViewDelegate::SetSignedIn(bool signed_in) {
OnProfilesChanged());
}
+int AppListTestViewDelegate::GetToggleSpeechRecognitionCountAndReset() {
+ int count = toggle_speech_recognition_count_;
+ toggle_speech_recognition_count_ = 0;
+ return count;
+}
+
bool AppListTestViewDelegate::ForceNativeDesktop() const {
return false;
}
@@ -114,6 +121,10 @@ void AppListTestViewDelegate::Dismiss() {
++dismiss_count_;
}
+void AppListTestViewDelegate::ToggleSpeechRecognition() {
+ ++toggle_speech_recognition_count_;
+}
+
gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() {
return gfx::ImageSkia();
}

Powered by Google App Engine
This is Rietveld 408576698