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

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

Issue 151903007: Introduces UMA for app-list voice search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_main_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return &speech_ui_; 82 return &speech_ui_;
83 } 83 }
84 84
85 void AppListTestViewDelegate::GetShortcutPathForApp( 85 void AppListTestViewDelegate::GetShortcutPathForApp(
86 const std::string& app_id, 86 const std::string& app_id,
87 const base::Callback<void(const base::FilePath&)>& callback) { 87 const base::Callback<void(const base::FilePath&)>& callback) {
88 callback.Run(base::FilePath()); 88 callback.Run(base::FilePath());
89 } 89 }
90 90
91 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, 91 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result,
92 bool auto_launch,
92 int event_flags) { 93 int event_flags) {
93 ++open_search_result_count_; 94 ++open_search_result_count_;
94 } 95 }
95 96
96 base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() { 97 base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() {
97 return base::TimeDelta(); 98 return base::TimeDelta();
98 } 99 }
99 100
100 void AppListTestViewDelegate::Dismiss() { 101 void AppListTestViewDelegate::Dismiss() {
101 ++dismiss_count_; 102 ++dismiss_count_;
(...skipping 25 matching lines...) Expand all
127 observers_.AddObserver(observer); 128 observers_.AddObserver(observer);
128 } 129 }
129 130
130 void AppListTestViewDelegate::RemoveObserver( 131 void AppListTestViewDelegate::RemoveObserver(
131 AppListViewDelegateObserver* observer) { 132 AppListViewDelegateObserver* observer) {
132 observers_.RemoveObserver(observer); 133 observers_.RemoveObserver(observer);
133 } 134 }
134 135
135 } // namespace test 136 } // namespace test
136 } // namespace app_list 137 } // 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_main_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698