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

Side by Side Diff: ash/shell/app_list.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 | « no previous file | chrome/browser/ui/app_list/app_list_view_delegate.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "ash/session_state_delegate.h" 7 #include "ash/session_state_delegate.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell/example_factory.h" 9 #include "ash/shell/example_factory.h"
10 #include "ash/shell/toplevel_window.h" 10 #include "ash/shell/toplevel_window.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return &speech_ui_; 258 return &speech_ui_;
259 } 259 }
260 260
261 virtual void GetShortcutPathForApp( 261 virtual void GetShortcutPathForApp(
262 const std::string& app_id, 262 const std::string& app_id,
263 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE { 263 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE {
264 callback.Run(base::FilePath()); 264 callback.Run(base::FilePath());
265 } 265 }
266 266
267 virtual void OpenSearchResult(app_list::SearchResult* result, 267 virtual void OpenSearchResult(app_list::SearchResult* result,
268 bool auto_launch,
268 int event_flags) OVERRIDE { 269 int event_flags) OVERRIDE {
269 const ExampleSearchResult* example_result = 270 const ExampleSearchResult* example_result =
270 static_cast<const ExampleSearchResult*>(result); 271 static_cast<const ExampleSearchResult*>(result);
271 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags); 272 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags);
272 } 273 }
273 274
274 virtual void InvokeSearchResultAction(app_list::SearchResult* result, 275 virtual void InvokeSearchResultAction(app_list::SearchResult* result,
275 int action_index, 276 int action_index,
276 int event_flags) OVERRIDE { 277 int event_flags) OVERRIDE {
277 NOTIMPLEMENTED(); 278 NOTIMPLEMENTED();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 }; 366 };
366 367
367 } // namespace 368 } // namespace
368 369
369 app_list::AppListViewDelegate* CreateAppListViewDelegate() { 370 app_list::AppListViewDelegate* CreateAppListViewDelegate() {
370 return new ExampleAppListViewDelegate; 371 return new ExampleAppListViewDelegate;
371 } 372 }
372 373
373 } // namespace shell 374 } // namespace shell
374 } // namespace ash 375 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698