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

Unified Diff: athena/home/home_card_impl.h

Issue 640103002: Adds full-functional search results for Athena on Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix DEPS Created 6 years, 2 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
« no previous file with comments | « athena/home/app_list_view_delegate.cc ('k') | athena/home/home_card_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_impl.h
diff --git a/athena/home/home_card_impl.h b/athena/home/home_card_impl.h
index 0f7b330503c2ee757deeff28f1da714c9cdb445f..98ea3a63b206e970f597ae0d236e7c4e4cd4018b 100644
--- a/athena/home/home_card_impl.h
+++ b/athena/home/home_card_impl.h
@@ -8,14 +8,11 @@
#include "athena/athena_export.h"
#include "athena/home/home_card_gesture_manager.h"
#include "athena/home/public/home_card.h"
+#include "athena/home/public/search_controller_factory.h"
#include "athena/input/public/accelerator_manager.h"
#include "athena/wm/public/window_manager_observer.h"
#include "ui/wm/public/activation_change_observer.h"
-namespace app_list {
-class SearchProvider;
-}
-
namespace aura {
class Window;
@@ -49,7 +46,8 @@ class ATHENA_EXPORT HomeCardImpl
public WindowManagerObserver,
public aura::client::ActivationChangeObserver {
public:
- explicit HomeCardImpl(AppModelBuilder* model_builder);
+ HomeCardImpl(scoped_ptr<AppModelBuilder> model_builder,
+ scoped_ptr<SearchControllerFactory> search_factory);
virtual ~HomeCardImpl();
void Init();
@@ -65,8 +63,6 @@ class ATHENA_EXPORT HomeCardImpl
// Overridden from HomeCard:
virtual void SetState(HomeCard::State state) override;
virtual State GetState() override;
- virtual void RegisterSearchProvider(
- app_list::SearchProvider* search_provider) override;
virtual void UpdateVirtualKeyboardBounds(
const gfx::Rect& bounds) override;
@@ -94,6 +90,7 @@ class ATHENA_EXPORT HomeCardImpl
aura::Window* lost_active) override;
scoped_ptr<AppModelBuilder> model_builder_;
+ scoped_ptr<SearchControllerFactory> search_factory_;
HomeCard::State state_;
@@ -108,10 +105,6 @@ class ATHENA_EXPORT HomeCardImpl
aura::client::ActivationClient* activation_client_; // Not owned
scoped_ptr<ui::LayerOwner> minimized_home_;
- // Right now HomeCard allows only one search provider.
- // TODO(mukai): port app-list's SearchController and Mixer.
- scoped_ptr<app_list::SearchProvider> search_provider_;
-
DISALLOW_COPY_AND_ASSIGN(HomeCardImpl);
};
« no previous file with comments | « athena/home/app_list_view_delegate.cc ('k') | athena/home/home_card_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698