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

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

Issue 149753002: Enables the 'hotword not listening' icon in the search box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix breaks Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ui/app_list/speech_ui_model_observer.h ('k') | ui/app_list/views/app_list_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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 private: 46 private:
47 bool signed_in_; 47 bool signed_in_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TestSigninDelegate); 49 DISALLOW_COPY_AND_ASSIGN(TestSigninDelegate);
50 }; 50 };
51 51
52 AppListTestViewDelegate::AppListTestViewDelegate() 52 AppListTestViewDelegate::AppListTestViewDelegate()
53 : dismiss_count_(0), 53 : dismiss_count_(0),
54 open_search_result_count_(0), 54 open_search_result_count_(0),
55 test_signin_delegate_(new TestSigninDelegate), 55 test_signin_delegate_(new TestSigninDelegate),
56 model_(new AppListTestModel) { 56 model_(new AppListTestModel),
57 speech_ui_(SPEECH_RECOGNITION_OFF) {
57 } 58 }
58 59
59 AppListTestViewDelegate::~AppListTestViewDelegate() {} 60 AppListTestViewDelegate::~AppListTestViewDelegate() {}
60 61
61 void AppListTestViewDelegate::SetSignedIn(bool signed_in) { 62 void AppListTestViewDelegate::SetSignedIn(bool signed_in) {
62 test_signin_delegate_->set_signed_in(signed_in); 63 test_signin_delegate_->set_signed_in(signed_in);
63 FOR_EACH_OBSERVER(AppListViewDelegateObserver, 64 FOR_EACH_OBSERVER(AppListViewDelegateObserver,
64 observers_, 65 observers_,
65 OnProfilesChanged()); 66 OnProfilesChanged());
66 } 67 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 observers_.AddObserver(observer); 127 observers_.AddObserver(observer);
127 } 128 }
128 129
129 void AppListTestViewDelegate::RemoveObserver( 130 void AppListTestViewDelegate::RemoveObserver(
130 AppListViewDelegateObserver* observer) { 131 AppListViewDelegateObserver* observer) {
131 observers_.RemoveObserver(observer); 132 observers_.RemoveObserver(observer);
132 } 133 }
133 134
134 } // namespace test 135 } // namespace test
135 } // namespace app_list 136 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/speech_ui_model_observer.h ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698