| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |