OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ATHENA_HOME_PUBLIC_HOME_CARD_H_ | 5 #ifndef ATHENA_HOME_PUBLIC_HOME_CARD_H_ |
6 #define ATHENA_HOME_PUBLIC_HOME_CARD_H_ | 6 #define ATHENA_HOME_PUBLIC_HOME_CARD_H_ |
7 | 7 |
8 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
(...skipping 26 matching lines...) Expand all Loading... |
37 }; | 37 }; |
38 | 38 |
39 // Creates/deletes/gets the singleton object of the HomeCard | 39 // Creates/deletes/gets the singleton object of the HomeCard |
40 // implementation. Takes the ownership of |model_builder|. | 40 // implementation. Takes the ownership of |model_builder|. |
41 static HomeCard* Create(AppModelBuilder* model_builder); | 41 static HomeCard* Create(AppModelBuilder* model_builder); |
42 static void Shutdown(); | 42 static void Shutdown(); |
43 static HomeCard* Get(); | 43 static HomeCard* Get(); |
44 | 44 |
45 virtual ~HomeCard() {} | 45 virtual ~HomeCard() {} |
46 | 46 |
47 // Update the current state of the home card to |state|. | 47 // Updates/gets the current state of the home card. |
48 virtual void SetState(State state) = 0; | 48 virtual void SetState(State state) = 0; |
| 49 virtual State GetState() = 0; |
49 | 50 |
50 // Registers a search_provider to the HomeCard. Receiver will take | 51 // Registers a search_provider to the HomeCard. Receiver will take |
51 // the ownership of the specified provider. | 52 // the ownership of the specified provider. |
52 virtual void RegisterSearchProvider( | 53 virtual void RegisterSearchProvider( |
53 app_list::SearchProvider* search_provider) = 0; | 54 app_list::SearchProvider* search_provider) = 0; |
54 | 55 |
55 // Called when the virtual keyboard changed has changed to |bounds|. An empty | 56 // Called when the virtual keyboard changed has changed to |bounds|. An empty |
56 // |bounds| indicates that the virtual keyboard is not visible anymore. | 57 // |bounds| indicates that the virtual keyboard is not visible anymore. |
57 virtual void UpdateVirtualKeyboardBounds( | 58 virtual void UpdateVirtualKeyboardBounds( |
58 const gfx::Rect& bounds) = 0; | 59 const gfx::Rect& bounds) = 0; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace athena | 62 } // namespace athena |
62 | 63 |
63 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ | 64 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ |
OLD | NEW |