summaryrefslogtreecommitdiffstats
path: root/athena/home/home_card_impl.h
diff options
context:
space:
mode:
authormukai <mukai@chromium.org>2014-10-10 14:07:50 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-10 21:08:08 +0000
commit2ba30fe7f0c4640d3007b3357f0d0ab89637919e (patch)
treea41089d1a6e4e1d6c1751c1be7092105e490ff82 /athena/home/home_card_impl.h
parent3f6b84cd4ebdc209f3d607f2336e6f43aadcd2df (diff)
downloadchromium_src-2ba30fe7f0c4640d3007b3357f0d0ab89637919e.zip
chromium_src-2ba30fe7f0c4640d3007b3357f0d0ab89637919e.tar.gz
chromium_src-2ba30fe7f0c4640d3007b3357f0d0ab89637919e.tar.bz2
Adds full-functional search results for Athena on Chrome.
BUG=380875, 421444 R=oshima@chromium.org, xiyuan@chromium.org TBR=pkasting@chromium.org, jar@chromium.org TEST=manually Review URL: https://codereview.chromium.org/640103002 Cr-Commit-Position: refs/heads/master@{#299186}
Diffstat (limited to 'athena/home/home_card_impl.h')
-rw-r--r--athena/home/home_card_impl.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/athena/home/home_card_impl.h b/athena/home/home_card_impl.h
index 0f7b330..98ea3a6 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);
};