Chromium Code Reviews| Index: athena/home/public/home_card.h |
| diff --git a/athena/home/public/home_card.h b/athena/home/public/home_card.h |
| index 3bc43ba1a412d8997114441ede1e00fed9f94da4..2f4e72c17fc9eb05be90f327dc27e6b20428d181 100644 |
| --- a/athena/home/public/home_card.h |
| +++ b/athena/home/public/home_card.h |
| @@ -20,6 +20,18 @@ class AppModelBuilder; |
| class ATHENA_EXPORT HomeCard { |
| public: |
| + enum State { |
| + // HomeCard is not visible. |
| + HIDDEN, |
| + |
| + // HomeCard is visible in the center of the screen as a normal mode. |
| + VISIBLE, |
|
oshima
2014/07/11 01:22:02
how about
VISIBLE_CENTERED
VISIBLE_BOTTOM
Jun Mukai
2014/07/11 18:18:28
Done.
|
| + |
| + // HomeCard is visible smaller at the bottom of the screen as a supplemental |
| + // widget. |
| + MINI_VISIBLE, |
| + }; |
| + |
| // Creates/deletes/gets the singleton object of the HomeCard |
| // implementation. Takes the ownership of |model_builder|. |
| static HomeCard* Create(AppModelBuilder* model_builder); |
| @@ -28,6 +40,8 @@ class ATHENA_EXPORT HomeCard { |
| virtual ~HomeCard() {} |
|
oshima
2014/07/11 01:22:02
description?
Jun Mukai
2014/07/11 18:18:28
added
|
| + virtual void SetState(State state) = 0; |
| + |
| // Registers a search_provider to the HomeCard. Receiver will take |
| // the ownership of the specified provider. |
| virtual void RegisterSearchProvider( |