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

Unified Diff: chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc

Issue 9559005: aura: Implement app list M19 mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use a better way to get ceiling Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc b/chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc
index cf222442d217e089bf2cad63fe9d6e83c531cfd2..86eb9e1b2fdbfebf60c238b8e5b6b5abfe1dbf42 100644
--- a/chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/views/aura/app_list/app_list_view_delegate.cc
@@ -1,9 +1,11 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/aura/app_list/app_list_view_delegate.h"
+#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/ui/views/aura/app_list/app_list_model_builder.h"
#include "chrome/browser/ui/views/aura/app_list/chrome_app_list_item.h"
AppListViewDelegate::AppListViewDelegate() {
@@ -12,6 +14,13 @@ AppListViewDelegate::AppListViewDelegate() {
AppListViewDelegate::~AppListViewDelegate() {
}
+void AppListViewDelegate::BuildAppListModel(const std::string& query,
+ ash::AppListModel* model) {
+ AppListModelBuilder builder(ProfileManager::GetDefaultProfile(),
+ model);
+ builder.Build(query);
+}
+
void AppListViewDelegate::OnAppListItemActivated(
ash::AppListItemModel* item,
int event_flags) {

Powered by Google App Engine
This is Rietveld 408576698